Home
last modified time | relevance | path

Searched refs:Module_val (Results 1 – 10 of 10) sorted by relevance

/llvm-project/llvm/bindings/ocaml/bitwriter/
H A Dbitwriter_ocaml.c27 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 Dlinker_ocaml.c30 if (LLVMLinkModules2(Module_val(Dst), Module_val(Src))) in llvm_link_modules()
/llvm-project/llvm/bindings/ocaml/executionengine/
H A Dexecutionengine_ocaml.c59 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 Danalysis_ocaml.c32 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 Dllvm_ocaml.c319 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 Dllvm_ocaml.h52 #define Module_val(v) ((LLVMModuleRef)from_val(v)) macro
/llvm-project/llvm/bindings/ocaml/transforms/utils/
H A Dtransform_utils_ocaml.c32 return to_val(LLVMCloneModule(Module_val(M))); in llvm_clone_module()
/llvm-project/llvm/bindings/ocaml/target/
H A Dtarget_ocaml.c339 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 Dpassbuilder_ocaml.c28 LLVMRunPasses(Module_val(M), String_val(Passes), TargetMachine_val(TM), in llvm_run_passes()
/llvm-project/llvm/bindings/ocaml/debuginfo/
H A Ddebuginfo_ocaml.c149 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()