Lines Matching refs:Ctx

29     M.reset(new Module("MyModule", Ctx));  in SetUp()
31 Type::getInt8PtrTy(Ctx), Type::getInt32Ty(Ctx), false /*=isVarArg*/); in SetUp()
35 EntryBB = BasicBlock::Create(Ctx, "entry", F); in SetUp()
36 SwitchCase1BB = BasicBlock::Create(Ctx, "switch.case.1", F); in SetUp()
37 SwitchCase2BB = BasicBlock::Create(Ctx, "switch.case.2", F); in SetUp()
38 ExitBB = BasicBlock::Create(Ctx, "exit", F); in SetUp()
40 AT = ArrayType::get(Type::getInt8PtrTy(Ctx), 3); in SetUp()
53 ConstantInt *One = ConstantInt::get(Type::getInt32Ty(Ctx), 1); in SetUp()
55 Type::getInt8PtrTy(Ctx)); in SetUp()
63 LLVMContext Ctx; member in __anon596f68b70111::LinkModuleTest
82 GEPIndices.push_back(ConstantInt::get(Type::getInt32Ty(Ctx), 0)); in TEST_F()
97 Builder.CreateRet(ConstantPointerNull::get(Type::getInt8PtrTy(Ctx))); in TEST_F()
99 Module *LinkedModule = new Module("MyModuleLinked", Ctx); in TEST_F()
100 Ctx.setDiagnosticHandlerCallBack(expectNoDiags); in TEST_F()
112 ArrayType *AT = ArrayType::get(Type::getInt8PtrTy(Ctx), 3); in TEST_F()
132 static Module *getExternal(LLVMContext &Ctx, StringRef FuncName) { in getExternal() argument
134 Module *M = new Module("ExternalModule", Ctx); in getExternal()
136 Type::getVoidTy(Ctx), Type::getInt8PtrTy(Ctx), false /*=isVarArgs*/); in getExternal()
142 BasicBlock *BB = BasicBlock::Create(Ctx, "", F); in getExternal()
148 static Module *getInternal(LLVMContext &Ctx) { in getInternal() argument
149 Module *InternalM = new Module("InternalModule", Ctx); in getInternal()
151 Type::getVoidTy(Ctx), Type::getInt8PtrTy(Ctx), false /*=isVarArgs*/); in getInternal()
157 BasicBlock *BB = BasicBlock::Create(Ctx, "", F); in getInternal()
161 StructType *STy = StructType::create(Ctx, PointerType::get(FTy, 0)); in getInternal()
172 std::unique_ptr<Module> InternalM(getInternal(Ctx)); in TEST_F()
173 std::unique_ptr<Module> EmptyM(new Module("EmptyModule1", Ctx)); in TEST_F()
174 Ctx.setDiagnosticHandlerCallBack(expectNoDiags); in TEST_F()
179 std::unique_ptr<Module> InternalM(getInternal(Ctx)); in TEST_F()
180 std::unique_ptr<Module> EmptyM(new Module("EmptyModule1", Ctx)); in TEST_F()
181 Ctx.setDiagnosticHandlerCallBack(expectNoDiags); in TEST_F()
197 Ctx.setDiagnosticHandlerCallBack(expectNoDiags); in TEST_F()
205 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo")); in TEST_F()
206 std::unique_ptr<Module> SourceM(getExternal(Ctx, "bar")); in TEST_F()
223 LLVMContext Ctx; in TEST_F() local
225 LLVMContextSetDiagnosticHandler(wrap(&Ctx), diagnosticHandler, &Err); in TEST_F()
227 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo")); in TEST_F()
228 std::unique_ptr<Module> SourceM(getExternal(Ctx, "foo")); in TEST_F()
282 Ctx.setDiagnosticHandlerCallBack(expectNoDiags); in TEST_F()
351 Ctx.setDiagnosticHandlerCallBack(expectNoDiags); in TEST_F()