Home | History | Annotate | Download | only in Linker

Lines Matching defs:Ctx

30     M.reset(new Module("MyModule", Ctx));
32 Type::getInt8PtrTy(Ctx), Type::getInt32Ty(Ctx), false /*=isVarArg*/);
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(Type::getInt8PtrTy(Ctx), 3);
54 ConstantInt *One = ConstantInt::get(Type::getInt32Ty(Ctx), 1);
56 Type::getInt8PtrTy(Ctx));
64 LLVMContext Ctx;
83 GEPIndices.push_back(ConstantInt::get(Type::getInt32Ty(Ctx), 0));
98 Builder.CreateRet(ConstantPointerNull::get(Type::getInt8PtrTy(Ctx)));
100 Module *LinkedModule = new Module("MyModuleLinked", Ctx);
101 Ctx.setDiagnosticHandler(expectNoDiags);
113 ArrayType *AT = ArrayType::get(Type::getInt8PtrTy(Ctx), 3);
133 static Module *getExternal(LLVMContext &Ctx, StringRef FuncName) {
135 Module *M = new Module("ExternalModule", Ctx);
137 Type::getVoidTy(Ctx), Type::getInt8PtrTy(Ctx), false /*=isVarArgs*/);
143 BasicBlock *BB = BasicBlock::Create(Ctx, "", F);
149 static Module *getInternal(LLVMContext &Ctx) {
150 Module *InternalM = new Module("InternalModule", Ctx);
152 Type::getVoidTy(Ctx), Type::getInt8PtrTy(Ctx), false /*=isVarArgs*/);
158 BasicBlock *BB = BasicBlock::Create(Ctx, "", F);
162 StructType *STy = StructType::create(Ctx, PointerType::get(FTy, 0));
173 std::unique_ptr<Module> InternalM(getInternal(Ctx));
174 std::unique_ptr<Module> EmptyM(new Module("EmptyModule1", Ctx));
175 Ctx.setDiagnosticHandler(expectNoDiags);
180 std::unique_ptr<Module> InternalM(getInternal(Ctx));
181 std::unique_ptr<Module> EmptyM(new Module("EmptyModule1", Ctx));
182 Ctx.setDiagnosticHandler(expectNoDiags);
198 Ctx.setDiagnosticHandler(expectNoDiags);
206 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo"));
207 std::unique_ptr<Module> SourceM(getExternal(Ctx, "bar"));
219 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo"));
220 std::unique_ptr<Module> SourceM(getExternal(Ctx, "foo"));
230 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo"));
231 std::unique_ptr<Module> SourceM(getExternal(Ctx, "bar"));
248 LLVMContext Ctx;
250 LLVMContextSetDiagnosticHandler(wrap(&Ctx), diagnosticHandler, &Err);
252 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo"));
253 std::unique_ptr<Module> SourceM(getExternal(Ctx, "foo"));
307 Ctx.setDiagnosticHandler(expectNoDiags);