Improve and simplify casts.

This commit is contained in:
Christoffer Lerno
2023-03-01 18:49:47 +01:00
parent 0314f9534f
commit 0dcad6f5cf
44 changed files with 691 additions and 740 deletions

View File

@@ -321,6 +321,8 @@ INLINE void llvm_set_alignment(LLVMValueRef alloca, AlignSize alignment);
INLINE AlignSize llvm_type_or_alloca_align(LLVMValueRef dest, Type *type);
INLINE LLVMValueRef llvm_zext_trunc(GenContext *c, LLVMValueRef data, LLVMTypeRef type);
INLINE LLVMValueRef llvm_sext_trunc(GenContext *c, LLVMValueRef data, LLVMTypeRef type);
INLINE void llvm_value_ext_trunc(GenContext *c, BEValue *value, Type *type);
// -- Constants --
void llvm_emit_typeid(GenContext *c, BEValue *be_value, Type *type);