Lines Matching refs:Ctx
29 M.reset(new Module("MyModule", Ctx));
31 FunctionType::get(PointerType::getUnqual(Ctx), Type::getInt32Ty(Ctx),
36 EntryBB = BasicBlock::Create(Ctx, "entry", F);
37 SwitchCase1BB = BasicBlock::Create(Ctx, "switch.case.1", F);
38 SwitchCase2BB = BasicBlock::Create(Ctx, "switch.case.2", F);
39 ExitBB = BasicBlock::Create(Ctx, "exit", F);
41 AT = ArrayType::get(PointerType::getUnqual(Ctx), 3);
55 ConstantInt *One = ConstantInt::get(Type::getInt32Ty(Ctx), 1);
57 ConstantExpr::getIntToPtr(One, PointerType::getUnqual(Ctx));
65 LLVMContext Ctx;
84 GEPIndices.push_back(ConstantInt::get(Type::getInt32Ty(Ctx), 0));
99 Builder.CreateRet(ConstantPointerNull::get(PointerType::getUnqual(Ctx)));
101 Module *LinkedModule = new Module("MyModuleLinked", Ctx);
102 Ctx.setDiagnosticHandlerCallBack(expectNoDiags);
114 ArrayType *AT = ArrayType::get(PointerType::getUnqual(Ctx), 3);
134 static Module *getExternal(LLVMContext &Ctx, StringRef FuncName) {
136 Module *M = new Module("ExternalModule", Ctx);
138 Type::getVoidTy(Ctx), PointerType::getUnqual(Ctx), false /*=isVarArgs*/);
144 BasicBlock *BB = BasicBlock::Create(Ctx, "", F);
150 static Module *getInternal(LLVMContext &Ctx) {
151 Module *InternalM = new Module("InternalModule", Ctx);
153 Type::getVoidTy(Ctx), PointerType::getUnqual(Ctx), false /*=isVarArgs*/);
159 BasicBlock *BB = BasicBlock::Create(Ctx, "", F);
163 StructType *STy = StructType::create(Ctx, PointerType::get(Ctx, 0));
174 std::unique_ptr<Module> InternalM(getInternal(Ctx));
175 std::unique_ptr<Module> EmptyM(new Module("EmptyModule1", Ctx));
176 Ctx.setDiagnosticHandlerCallBack(expectNoDiags);
181 std::unique_ptr<Module> InternalM(getInternal(Ctx));
182 std::unique_ptr<Module> EmptyM(new Module("EmptyModule1", Ctx));
183 Ctx.setDiagnosticHandlerCallBack(expectNoDiags);
199 Ctx.setDiagnosticHandlerCallBack(expectNoDiags);
207 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo"));
208 std::unique_ptr<Module> SourceM(getExternal(Ctx, "bar"));
225 LLVMContext Ctx;
227 LLVMContextSetDiagnosticHandler(wrap(&Ctx), diagnosticHandler, &Err);
229 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo"));
230 std::unique_ptr<Module> SourceM(getExternal(Ctx, "foo"));
284 Ctx.setDiagnosticHandlerCallBack(expectNoDiags);
353 Ctx.setDiagnosticHandlerCallBack(expectNoDiags);