Lines Matching defs:Module
151 Module = nullptr;
160 else if (Module)
161 LLVMDisposeModule(Module);
165 Module = LLVMModuleCreateWithName("simple_module");
167 LLVMSetTarget(Module, HostTriple.c_str());
169 Function = LLVMAddFunction(Module, "simple_function",
178 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error);
185 Module = LLVMModuleCreateWithName("simple_module");
187 LLVMSetTarget(Module, HostTriple.c_str());
191 Module, "llvm.experimental.stackmap",
195 Function = LLVMAddFunction(Module, "simple_function",
208 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error);
215 Module = LLVMModuleCreateWithName("simple_module");
217 LLVMSetTarget(Module, HostTriple.c_str());
220 LLVMValueRef GlobalVar = LLVMAddGlobal(Module, LLVMInt32Type(), "intVal");
224 Function = LLVMAddFunction(Module, "getGlobal",
235 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error);
244 Module, "setGlobal", LLVMFunctionType(LLVMVoidType(), ParamTypes, 1, 0));
255 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error);
281 0, LLVMCreateMCJITCompilerForModule(&Engine, Module, &Options,
290 LLVMRunPassManager(pass, Module);
302 LLVMCreateFunctionPassManagerForModule(Module);
315 for (LLVMValueRef value = LLVMGetFirstFunction(Module);
320 LLVMRunPassManager(modulePasses, Module);
326 LLVMModuleRef Module;