/llvm-project/llvm/bindings/ocaml/bitwriter/ |
H A D | bitwriter_ocaml.c | 27 int Result = LLVMWriteBitcodeToFile(Module_val(M), String_val(Path)); in llvm_write_bitcode_file() 42 Result = LLVMWriteBitcodeToFD(Module_val(M), Int_val(FD), 0, Unbuffered); in llvm_write_bitcode_to_fd() 48 return to_val(LLVMWriteBitcodeToMemoryBuffer(Module_val(M))); in llvm_write_bitcode_to_memory_buffer()
|
/llvm-project/llvm/bindings/ocaml/linker/ |
H A D | linker_ocaml.c | 30 if (LLVMLinkModules2(Module_val(Dst), Module_val(Src))) in llvm_link_modules()
|
/llvm-project/llvm/bindings/ocaml/executionengine/ |
H A D | executionengine_ocaml.c | 59 if (LLVMCreateMCJITCompilerForModule(&MCJIT, Module_val(M), &Options, in llvm_ee_create() 73 LLVMAddModule(ExecutionEngine_val(EE), Module_val(M)); in llvm_ee_add_module() 81 if (LLVMRemoveModule(ExecutionEngine_val(EE), Module_val(M), &RemovedModule, in llvm_ee_remove_module()
|
/llvm-project/llvm/bindings/ocaml/analysis/ |
H A D | analysis_ocaml.c | 32 LLVMVerifyModule(Module_val(M), LLVMReturnStatusAction, &Message); in llvm_verify_module() 54 LLVMVerifyModule(Module_val(M), LLVMAbortProcessAction, 0); in llvm_assert_valid_module()
|
/llvm-project/llvm/bindings/ocaml/llvm/ |
H A D | llvm_ocaml.c | 319 LLVMDisposeModule(Module_val(M)); in llvm_dispose_module() 325 return caml_copy_string(LLVMGetTarget(Module_val(M))); in llvm_target_triple() 330 LLVMSetTarget(Module_val(M), String_val(Trip)); in llvm_set_target_triple() 336 return caml_copy_string(LLVMGetDataLayout(Module_val(M))); in llvm_data_layout() 341 LLVMSetDataLayout(Module_val(M), String_val(Layout)); in llvm_set_data_layout() 347 LLVMDumpModule(Module_val(M)); in llvm_dump_module() 355 if (LLVMPrintModuleToFile(Module_val(M), String_val(Filename), &Message)) in llvm_print_module() 363 char *ModuleCStr = LLVMPrintModuleToString(Module_val(M)); in llvm_string_of_llmodule() 372 LLVMContextRef C = LLVMGetModuleContext(Module_val(M)); in llvm_get_module_context() 379 const char *Name = LLVMGetModuleIdentifier(Module_val( in llvm_get_module_identifier() 1436 DEFINE_ITERATORS(global,Global,Module_val,LLVMValueRef,Value_val,LLVMGetGlobalParent) DEFINE_ITERATORS() argument 1569 DEFINE_ITERATORS(function,Function,Module_val,LLVMValueRef,Value_val,LLVMGetGlobalParent) DEFINE_ITERATORS() argument [all...] |
H A D | llvm_ocaml.h | 52 #define Module_val(v) ((LLVMModuleRef)from_val(v)) macro
|
/llvm-project/llvm/bindings/ocaml/transforms/utils/ |
H A D | transform_utils_ocaml.c | 32 return to_val(LLVMCloneModule(Module_val(M))); in llvm_clone_module()
|
/llvm-project/llvm/bindings/ocaml/target/ |
H A D | target_ocaml.c | 339 TargetMachine_val(Machine), Module_val(Module), in llvm_targetmachine_emit_to_file() 355 Module_val(Module), Int_val(FileType), in llvm_targetmachine_emit_to_memory_buffer()
|
/llvm-project/llvm/bindings/ocaml/transforms/passbuilder/ |
H A D | passbuilder_ocaml.c | 28 LLVMRunPasses(Module_val(M), String_val(Passes), TargetMachine_val(TM), in llvm_run_passes()
|
/llvm-project/llvm/bindings/ocaml/debuginfo/ |
H A D | debuginfo_ocaml.c | 149 return Val_int(LLVMGetModuleDebugMetadataVersion(Module_val(Module))); in llvm_get_module_debug_metadata_version() 202 return alloc_dibuilder(LLVMCreateDIBuilder(Module_val(M))); in llvm_dibuilder() 1019 return Val_bool(LLVMIsNewDbgInfoFormat(Module_val(Module))); in llvm_is_new_dbg_info_format() 1024 LLVMSetIsNewDbgInfoFormat(Module_val(Module), Bool_val(UseNewFormat)); in llvm_set_is_new_dbg_info_format()
|