Lines Matching refs:Module

151     Module = nullptr;  in SetUp()
160 else if (Module) in TearDown()
161 LLVMDisposeModule(Module); in TearDown()
165 Module = LLVMModuleCreateWithName("simple_module"); in buildSimpleFunction()
167 LLVMSetTarget(Module, HostTriple.c_str()); in buildSimpleFunction()
169 Function = LLVMAddFunction(Module, "simple_function", in buildSimpleFunction()
178 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error); in buildSimpleFunction()
185 Module = LLVMModuleCreateWithName("simple_module"); in buildFunctionThatUsesStackmap()
187 LLVMSetTarget(Module, HostTriple.c_str()); in buildFunctionThatUsesStackmap()
191 Module, "llvm.experimental.stackmap", in buildFunctionThatUsesStackmap()
195 Function = LLVMAddFunction(Module, "simple_function", in buildFunctionThatUsesStackmap()
208 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error); in buildFunctionThatUsesStackmap()
215 Module = LLVMModuleCreateWithName("simple_module"); in buildModuleWithCodeAndData()
217 LLVMSetTarget(Module, HostTriple.c_str()); in buildModuleWithCodeAndData()
220 LLVMValueRef GlobalVar = LLVMAddGlobal(Module, LLVMInt32Type(), "intVal"); in buildModuleWithCodeAndData()
224 Function = LLVMAddFunction(Module, "getGlobal", in buildModuleWithCodeAndData()
235 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error); in buildModuleWithCodeAndData()
244 Module, "setGlobal", LLVMFunctionType(LLVMVoidType(), ParamTypes, 1, 0)); in buildModuleWithCodeAndData()
255 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error); in buildModuleWithCodeAndData()
281 0, LLVMCreateMCJITCompilerForModule(&Engine, Module, &Options, in buildMCJITEngine()
290 LLVMRunPassManager(pass, Module); in buildAndRunPasses()
302 LLVMCreateFunctionPassManagerForModule(Module); in buildAndRunOptPasses()
315 for (LLVMValueRef value = LLVMGetFirstFunction(Module); in buildAndRunOptPasses()
320 LLVMRunPassManager(modulePasses, Module); in buildAndRunOptPasses()
326 LLVMModuleRef Module; member in __anondb1e80810111::MCJITCAPITest
352 Module = LLVMModuleCreateWithName("simple_module"); in TEST_F()
353 LLVMSetTarget(Module, HostTriple.c_str()); in TEST_F()
354 LLVMValueRef GlobalVar = LLVMAddGlobal(Module, LLVMInt32Type(), "simple_value"); in TEST_F()
480 Module = LLVMModuleCreateWithName("testModule"); in TEST_F()
481 LLVMSetTarget(Module, HostTriple.c_str()); in TEST_F()
483 LLVMValueRef MappedFn = LLVMAddFunction(Module, "mapped_fn", FunctionType); in TEST_F()
485 Function = LLVMAddFunction(Module, "test_fn", FunctionType); in TEST_F()
493 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error); in TEST_F()