Home
last modified time | relevance | path

Searched refs:DataLayout_val (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/llvm/bindings/ocaml/target/
Dtarget_ocaml.c32 #define DataLayout_val(v) (*(LLVMTargetDataRef *)(Data_custom_val(v))) macro
35 LLVMDisposeTargetData(DataLayout_val(DataLayout)); in llvm_finalize_data_layout()
51 DataLayout_val(V) = DataLayout; in llvm_alloc_data_layout()
62 char *StringRep = LLVMCopyStringRepOfTargetData(DataLayout_val(TD)); in llvm_datalayout_as_string()
70 return Val_int(LLVMByteOrder(DataLayout_val(DL))); in llvm_datalayout_byte_order()
75 return Val_int(LLVMPointerSize(DataLayout_val(DL))); in llvm_datalayout_pointer_size()
80 return LLVMIntPtrTypeInContext(C, DataLayout_val(DL)); in llvm_datalayout_intptr_type()
85 return Val_int(LLVMPointerSizeForAS(DataLayout_val(DL), Int_val(AS))); in llvm_datalayout_qualified_pointer_size()
92 return LLVMIntPtrTypeForASInContext(C, DataLayout_val(DL), Int_val(AS)); in llvm_datalayout_qualified_intptr_type()
97 return caml_copy_int64(LLVMSizeOfTypeInBits(DataLayout_val(DL), Ty)); in llvm_datalayout_size_in_bits()
[all …]
/external/llvm/bindings/ocaml/target/
Dtarget_ocaml.c32 #define DataLayout_val(v) (*(LLVMTargetDataRef *)(Data_custom_val(v))) macro
35 LLVMDisposeTargetData(DataLayout_val(DataLayout)); in llvm_finalize_data_layout()
51 DataLayout_val(V) = DataLayout; in llvm_alloc_data_layout()
62 char *StringRep = LLVMCopyStringRepOfTargetData(DataLayout_val(TD)); in llvm_datalayout_as_string()
70 return Val_int(LLVMByteOrder(DataLayout_val(DL))); in llvm_datalayout_byte_order()
75 return Val_int(LLVMPointerSize(DataLayout_val(DL))); in llvm_datalayout_pointer_size()
80 return LLVMIntPtrTypeInContext(C, DataLayout_val(DL));; in llvm_datalayout_intptr_type()
85 return Val_int(LLVMPointerSizeForAS(DataLayout_val(DL), Int_val(AS))); in llvm_datalayout_qualified_pointer_size()
92 return LLVMIntPtrTypeForASInContext(C, DataLayout_val(DL), Int_val(AS)); in llvm_datalayout_qualified_intptr_type()
97 return caml_copy_int64(LLVMSizeOfTypeInBits(DataLayout_val(DL), Ty)); in llvm_datalayout_size_in_bits()
[all …]