|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
examples/BrainF/BrainFDriver.cpp 76 Type::getInt32Ty(mod->getContext()),
77 {Type::getInt32Ty(mod->getContext()),
78 Type::getInt8Ty(mod->getContext())->getPointerTo()->getPointerTo()},
92 BasicBlock *bb = BasicBlock::Create(mod->getContext(), "main.0", main_func);
102 ReturnInst::Create(mod->getContext(),
103 ConstantInt::get(mod->getContext(), APInt(32, 0)), bb);
examples/ParallelJIT/ParallelJIT.cpp 50 LLVMContext &Context = M->getContext();
81 LLVMContext &Context = M->getContext();
include/llvm/Analysis/ObjCARCAnalysisUtils.h 280 M->getContext().getMDKindID("clang.imprecise_release");
285 M->getContext().getMDKindID("clang.arc.copy_on_escape");
290 M->getContext().getMDKindID("clang.arc.no_objc_arc_exceptions");
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h 448 SrcM.getContext());
487 ConstantInt::get(GVsM->getContext(), APInt(PtrBitWidth, StubAddr));
640 auto M = std::make_unique<Module>(NewName, SrcM.getContext());
include/llvm/IR/Module.h 265 return getContext().getDiagHandlerPtr()->isAnalysisRemarkEnabled(
lib/Analysis/CallGraphSCCPass.cpp 704 SCC.getCallGraph().getModule().getContext().getOptPassGate();
lib/AsmParser/Parser.cpp 35 M ? M->getContext() : Context, Slots, UpgradeDebugInfo,
153 if (LLParser(Asm, SM, Err, const_cast<Module *>(&M), nullptr, M.getContext())
182 if (LLParser(Asm, SM, Err, const_cast<Module *>(&M), nullptr, M.getContext())
lib/Bitcode/Reader/MetadataLoader.cpp 639 : MetadataList(TheModule.getContext(), Stream.SizeInBytes()),
640 ValueList(ValueList), Stream(Stream), Context(TheModule.getContext()),
lib/Bitcode/Writer/BitcodeWriter.cpp 2243 M.getContext().getSyncScopeNames(SSNs);
lib/Bitcode/Writer/ValueEnumerator.cpp 372 EnumerateType(Type::getMetadataTy(M.getContext()));
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 1417 if (RemarkStreamer *RS = M.getContext().getRemarkStreamer())
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp 80 LLVMContext &LLVMCtx = MMI->getModule()->getContext();
274 MMI->getModule()->getContext().emitError(LocCookie, Msg.str());
456 MMI->getModule()->getContext().emitError(LocCookie, Msg.str());
lib/CodeGen/GlobalMerge.cpp 441 Type *Int32Ty = Type::getInt32Ty(M.getContext());
442 Type *Int8Ty = Type::getInt8Ty(M.getContext());
501 StructType *MergedTy = StructType::get(M.getContext(), Tys, true);
lib/CodeGen/HardwareLoops.cpp 218 IntegerType::get(M->getContext(), CounterBitWidth);
lib/CodeGen/LowerEmuTLS.cpp 85 LLVMContext &C = M.getContext();
lib/CodeGen/MIRParser/MIRParser.cpp 261 auto &Context = M.getContext();
lib/CodeGen/MachineInstr.cpp 2009 return MF->getMMI().getModule()->getContext().emitError(LocCookie, Msg);
lib/CodeGen/MachineOutliner.cpp 1099 LLVMContext &C = M.getContext();
lib/CodeGen/RegAllocBase.cpp 130 MI->getParent()->getParent()->getMMI().getModule()->getContext();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 2517 unsigned Align = DL->getPrefTypeAlignment(Type::getInt8PtrTy(M.getContext()));
lib/CodeGen/ShadowStackGCLowering.cpp 185 EltTys.push_back(Type::getInt32Ty(M.getContext()));
187 EltTys.push_back(Type::getInt32Ty(M.getContext()));
197 StackEntryTy = StructType::create(M.getContext(), "gc_stackentry");
lib/CodeGen/SjLjEHPrepare.cpp 85 Type *VoidPtrTy = Type::getInt8PtrTy(M.getContext());
86 Type *Int32Ty = Type::getInt32Ty(M.getContext());
475 "_Unwind_SjLj_Register", Type::getVoidTy(M.getContext()),
478 "_Unwind_SjLj_Unregister", Type::getVoidTy(M.getContext()),
482 {Type::getInt8PtrTy(M.getContext(),
lib/CodeGen/TargetLoweringBase.cpp 1686 Type *StackPtrTy = Type::getInt8PtrTy(M->getContext());
1716 Type *StackPtrTy = Type::getInt8PtrTy(M->getContext());
1772 PointerType *PtrTy = Type::getInt8PtrTy(M.getContext());
1782 new GlobalVariable(M, Type::getInt8PtrTy(M.getContext()), false,
lib/CodeGen/WasmEHPrepare.cpp 143 IRBuilder<> IRB(M.getContext());
lib/ExecutionEngine/Orc/IndirectionUtils.cpp 241 BasicBlock *EntryBlock = BasicBlock::Create(M.getContext(), "entry", &F);
lib/ExecutionEngine/Orc/Speculation.cpp 70 auto &MContext = M.getContext();
lib/FuzzMutate/IRMutator.cpp 27 LLVMContext &Context = M.getContext();
58 Types.push_back(Getter(M.getContext()));
lib/IR/AutoUpgrade.cpp 3821 M.getContext().diagnose(Diag);
3828 M.getContext().diagnose(DiagVersion);
3848 ID = MDString::get(M.getContext(), NewValue);
4003 Type *Int32Ty = Type::getInt32Ty(M.getContext());
4006 MDString::get(M.getContext(), ID->getString()),
4008 ModFlags->setOperand(I, MDNode::get(M.getContext(), Ops));
4025 MDString::get(M.getContext(), NewValue)};
4026 ModFlags->setOperand(I, MDNode::get(M.getContext(), Ops));
lib/IR/Core.cpp 469 return wrap(&unwrap(M)->getContext());
1203 LLVMContext &Context = unwrap(M)->getContext();
lib/IR/DIBuilder.cpp 34 : M(m), VMContext(M.getContext()), CUNode(CU),
lib/IR/DebugInfo.cpp 618 DebugTypeInfoRemoval Mapper(M.getContext());
lib/IR/Function.cpp 1098 getType(M->getContext(), id, Tys))
lib/IR/Instructions.cpp 664 Type *VoidTy = Type::getVoidTy(M->getContext());
665 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext());
lib/IR/IntrinsicInst.cpp 101 LLVMContext &Context = M->getContext();
lib/IR/LegacyPassManager.cpp 1863 M.getContext().yield();
lib/IR/Pass.cpp 63 OptPassGate &Gate = M.getContext().getOptPassGate();
lib/IR/Type.cpp 529 return getContext().pImpl->NamedStructTypes.lookup(Name);
lib/IR/Verifier.cpp 135 Context(M.getContext()) {}
5073 if (M.getContext().isODRUniquingDebugTypes())
lib/LTO/LTOBackend.cpp 439 Mod->getContext(), C.RemarksFilename, C.RemarksPasses, C.RemarksFormat,
494 Mod.getContext(), Conf.RemarksFilename, Conf.RemarksPasses,
525 assert(Mod.getContext().isODRUniquingDebugTypes() &&
529 return I->second.getLazyModule(Mod.getContext(),
lib/LTO/LTOCodeGenerator.cpp 158 assert(&Mod->getModule().getContext() == &Context &&
171 assert(&Mod->getModule().getContext() == &Context &&
lib/LTO/ThinLTOCodeGenerator.cpp 175 TheModule.getContext().diagnose(ThinLTODiagnosticInfo(
210 return loadModuleFromInput(Input, TheModule.getContext(),
lib/Linker/IRMover.cpp 447 SrcM->getContext().diagnose(LinkDiagnosticInfo(DS_Warning, Message));
1287 MDNode *Flag = MDNode::get(DstM.getContext(), FlagOps);
1337 replaceDstValue(MDNode::get(DstM.getContext(), MDs));
1347 replaceDstValue(MDNode::get(DstM.getContext(),
lib/Linker/LinkModules.cpp 60 SrcM->getContext().diagnose(LinkDiagnosticInfo(DS_Error, Message));
559 DstM.getContext().diagnose(LinkDiagnosticInfo(DS_Error, EIB.message()));
lib/ProfileData/InstrProf.cpp 320 ConstantDataArray::getString(M.getContext(), PGOFuncName, false);
951 LLVMContext &Ctx = M.getContext();
1135 Type *IntTy64 = Type::getInt64Ty(M.getContext());
1155 ConstantDataArray::getString(M.getContext(), InstrProfileOutput, true);
lib/Target/AArch64/AArch64ISelLowering.cpp12183 Addr = Builder.CreateBitCast(Addr, Type::getInt8PtrTy(M->getContext()));
12227 Type *Int64Ty = Type::getInt64Ty(M->getContext());
12231 Addr = Builder.CreateBitCast(Addr, Type::getInt8PtrTy(M->getContext()));
12290 Type::getInt8PtrTy(M.getContext()));
12294 "__security_check_cookie", Type::getVoidTy(M.getContext()),
12295 Type::getInt8PtrTy(M.getContext()));
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp 962 MDNode::get(Mod->getContext(), LowAndHigh));
lib/Target/AMDGPU/AMDGPUISelLowering.cpp 913 LLVMContext &Ctx = Fn.getParent()->getContext();
lib/Target/AMDGPU/AMDGPULibCalls.cpp 586 auto &Ctx = M->getContext();
1068 cnval = ConstantDataVector::get(M->getContext(), tmp);
1071 cnval = ConstantDataVector::get(M->getContext(), tmp);
lib/Target/AMDGPU/AMDGPULibFunc.cpp 915 LLVMContext& C = M.getContext();
989 LLVMContext &Ctx = M->getContext();
lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp 70 LLVMContext &Ctx = F.getParent()->getContext();
lib/Target/AMDGPU/AMDGPUMachineModuleInfo.cpp 22 LLVMContext &CTX = MMI.getModule()->getContext();
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp 107 auto &C = M.getContext();
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp 150 LLVMContext &Ctx = M.getContext();
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp 244 Type *I32Ty = Type::getInt32Ty(Mod->getContext());
257 MDNode *MD = MDNode::get(Mod->getContext(), None);
820 Constant::getNullValue(Type::getInt32Ty(Mod->getContext())),
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp 354 LLVMContext &Ctx = F.getParent()->getContext();
lib/Target/AMDGPU/AMDGPUUnifyMetadata.cpp 105 NamedMD->addOperand(MDNode::get(M.getContext(), MD));
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp 369 Context = &M.getContext();
370 Int32Type = Type::getInt32Ty(M.getContext());
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp 138 LLVMContext &Context = M.getContext();
lib/Target/ARM/ARMCodeGenPrepare.cpp 137 IRPromoter(Module *M) : M(M), Ctx(M->getContext()),
lib/Target/ARM/ARMISelLowering.cpp16541 Type::getInt8PtrTy(M.getContext()));
16545 "__security_check_cookie", Type::getVoidTy(M.getContext()),
16546 Type::getInt8PtrTy(M.getContext()));
16620 Addr = Builder.CreateBitCast(Addr, Type::getInt8PtrTy(M->getContext()));
16663 Type *Int32Ty = Type::getInt32Ty(M->getContext());
16669 Addr = Builder.CreateBitCast(Addr, Type::getInt8PtrTy(M->getContext()));
lib/Target/ARM/ARMParallelDSP.cpp 699 ConstantInt::get(IntegerType::get(M->getContext(), 64), 0) :
700 ConstantInt::get(IntegerType::get(M->getContext(), 32), 0);
714 IntegerType *Ty = IntegerType::get(M->getContext(), 32);
lib/Target/ARM/MVETailPredication.cpp 451 Type *Ty = IntegerType::get(M->getContext(), 32);
lib/Target/Hexagon/HexagonISelLowering.cpp 1789 auto &Cont = I.getCalledFunction()->getParent()->getContext();
3281 Value *Ext = Builder.CreateZExt(Cmp, Type::getInt32Ty(M->getContext()));
lib/Target/Mips/Mips16HardFloat.cpp 261 LLVMContext &Context = M->getContext();
380 LLVMContext &C = M->getContext();
450 LLVMContext &Context = M->getContext();
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp 221 Value *Idx = ConstantInt::get(Type::getInt32Ty(M->getContext()), i);
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp 64 LLVMContext &Context = F.getParent()->getContext();
lib/Target/SystemZ/SystemZTDC.cpp 98 auto &Ctx = M.getContext();
344 auto &Ctx = M.getContext();
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp 123 BasicBlock *BB = BasicBlock::Create(M->getContext(), "body", Wrapper);
183 ReturnInst::Create(M->getContext(), BB);
186 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB);
188 ReturnInst::Create(M->getContext(), Call, BB);
194 ReturnInst::Create(M->getContext(), Cast, BB);
213 BasicBlock *BB = BasicBlock::Create(M->getContext(), "body", Wrapper);
214 new UnreachableInst(M->getContext(), BB);
255 LLVMContext &C = M.getContext();
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 356 PointerType *Int8PtrTy = Type::getInt8PtrTy(M.getContext());
375 LLVMContext &C = CI->getModule()->getContext();
544 LLVMContext &C = BB->getModule()->getContext();
627 LLVMContext &C = M.getContext();
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp 105 LLVMContext &C = M.getContext();
lib/Target/X86/X86ISelLowering.cpp 2323 Type::getInt8PtrTy(M.getContext()));
2327 "__security_check_cookie", Type::getVoidTy(M.getContext()),
2328 Type::getInt8PtrTy(M.getContext()));
lib/Target/X86/X86InsertPrefetch.cpp 160 LLVMContext &Ctx = M.getContext();
lib/Target/X86/X86RetpolineThunks.cpp 199 LLVMContext &Ctx = M.getContext();
lib/Target/X86/X86WinEHState.cpp 174 Type *Int8PtrType = Type::getInt8PtrTy(TheModule->getContext());
177 Type::getInt32Ty(TheModule->getContext()),
178 {Int8PtrType, Type::getInt32Ty(TheModule->getContext())},
216 LLVMContext &Context = TheModule->getContext();
235 LLVMContext &Context = TheModule->getContext();
257 LLVMContext &Context = TheModule->getContext();
358 FunctionType::get(Type::getVoidTy(TheModule->getContext()), Int8PtrType,
lib/Transforms/CFGuard/CFGuard.cpp 238 GuardFnType = FunctionType::get(Type::getVoidTy(M.getContext()),
239 {Type::getInt8PtrTy(M.getContext())}, false);
lib/Transforms/Coroutines/CoroSplit.cpp 1418 LLVMContext &C = M.getContext();
lib/Transforms/Coroutines/Coroutines.cpp 95 : TheModule(M), Context(M.getContext()),
lib/Transforms/IPO/CalledValuePropagation.cpp 388 MDBuilder MDB(M.getContext());
lib/Transforms/IPO/CrossDSOCFI.cpp 103 LLVMContext &Ctx = M.getContext();
161 MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1);
lib/Transforms/IPO/FunctionImport.cpp 1096 assert(&DestModule.getContext() == &SrcModule->getContext() &&
1096 assert(&DestModule.getContext() == &SrcModule->getContext() &&
1122 MDNode::get(DestModule.getContext(),
1123 {MDString::get(DestModule.getContext(),
1166 MDNode::get(DestModule.getContext(),
1167 {MDString::get(DestModule.getContext(),
1255 return loadFile(Identifier, M.getContext());
lib/Transforms/IPO/LowerTypeTests.cpp 389 IntegerType *Int1Ty = Type::getInt1Ty(M.getContext());
390 IntegerType *Int8Ty = Type::getInt8Ty(M.getContext());
391 PointerType *Int8PtrTy = Type::getInt8PtrTy(M.getContext());
392 ArrayType *Int8Arr0Ty = ArrayType::get(Type::getInt8Ty(M.getContext()), 0);
393 IntegerType *Int32Ty = Type::getInt32Ty(M.getContext());
395 IntegerType *Int64Ty = Type::getInt64Ty(M.getContext());
396 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0);
630 Constant *ByteArrayConst = ConstantDataArray::get(M.getContext(), BAB.Bytes);
731 return ConstantInt::getFalse(M.getContext());
736 return ConstantInt::getTrue(M.getContext());
857 Constant *NewInit = ConstantStruct::getAnon(M.getContext(), GlobalInits);
993 MDNode::get(M.getContext(), {MinC, MaxC}));
1252 FunctionType::get(Type::getVoidTy(M.getContext()),
1258 BasicBlock::Create(M.getContext(), "entry", WeakInitializerFn);
1259 ReturnInst::Create(M.getContext(), BB);
1384 BasicBlock *BB = BasicBlock::Create(M.getContext(), "entry", F);
1489 Function::Create(FunctionType::get(Type::getVoidTy(M.getContext()),
1903 FunctionType::get(Type::getVoidTy(M.getContext()), false),
lib/Transforms/IPO/SampleProfile.cpp 1677 auto &Ctx = M.getContext();
1720 M.setProfileSummary(Reader->getSummary().getMD(M.getContext()),
lib/Transforms/IPO/StripSymbols.cpp 302 LLVMContext &C = M.getContext();
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp 96 GlobalMD = MDString::get(M.getContext(), NewName);
100 MetadataAsValue::get(M.getContext(), GlobalMD));
133 *MDNode::get(M.getContext(), {MD->getOperand(0), I->second}));
142 FunctionType::get(Type::getVoidTy(M.getContext()), false);
317 auto &Ctx = MergedM->getContext();
lib/Transforms/IPO/WholeProgramDevirt.cpp 478 Int8Ty(Type::getInt8Ty(M.getContext())),
479 Int8PtrTy(Type::getInt8PtrTy(M.getContext())),
480 Int32Ty(Type::getInt32Ty(M.getContext())),
481 Int64Ty(Type::getInt64Ty(M.getContext())),
482 IntPtrTy(M.getDataLayout().getIntPtrType(M.getContext(), 0)),
1051 FunctionType::get(Type::getVoidTy(M.getContext()), {Int8PtrTy}, true);
1072 BasicBlock *BB = BasicBlock::Create(M.getContext(), "", JT, nullptr);
1078 ReturnInst::Create(M.getContext(), nullptr, BB);
1136 M.getContext(), ArrayRef<Attribute>{Attribute::get(
1137 M.getContext(), Attribute::Nest)}));
1141 AttributeList::get(M.getContext(), Attrs.getFnAttributes(),
1288 MDNode::get(M.getContext(), {MinC, MaxC}));
1509 {ConstantDataArray::get(M.getContext(), B.Before.Bytes),
1511 ConstantDataArray::get(M.getContext(), B.After.Bytes)});
1697 Type::getVoidTy(M.getContext()))
1744 Type::getVoidTy(M.getContext()))
1753 auto True = ConstantInt::getTrue(M.getContext());
lib/Transforms/Instrumentation/AddressSanitizer.cpp 591 C = &(M.getContext());
757 C = &(M.getContext());
1254 ConstantInt::get(Type::getInt32Ty(M.getContext()), MD.LineNo),
1255 ConstantInt::get(Type::getInt32Ty(M.getContext()), MD.ColumnNo),
2074 MDNode *MD = MDNode::get(M.getContext(), ValueAsMetadata::get(G));
lib/Transforms/Instrumentation/CGProfile.cpp 85 LLVMContext &Context = M.getContext();
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 551 Ctx = &M.getContext();
733 AL = AL.addAttribute(M.getContext(), AttributeList::FunctionIndex,
735 AL = AL.addAttribute(M.getContext(), AttributeList::FunctionIndex,
737 AL = AL.addAttribute(M.getContext(), AttributeList::ReturnIndex,
739 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt);
740 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt);
747 AL = AL.addAttribute(M.getContext(), AttributeList::FunctionIndex,
749 AL = AL.addAttribute(M.getContext(), AttributeList::FunctionIndex,
751 AL = AL.addAttribute(M.getContext(), AttributeList::ReturnIndex,
753 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt);
754 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt);
760 AL = AL.addAttribute(M.getContext(), AttributeList::FunctionIndex,
762 AL = AL.addAttribute(M.getContext(), AttributeList::FunctionIndex,
764 AL = AL.addAttribute(M.getContext(), AttributeList::ReturnIndex,
773 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt);
lib/Transforms/Instrumentation/GCOVProfiling.cpp 565 Ctx = &M.getContext();
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp 268 Type *VoidTy = Type::getVoidTy(M.getContext());
273 Type *Int64Ty = Type::getInt64Ty(M.getContext());
371 C = &(M.getContext());
lib/Transforms/Instrumentation/InstrOrderFile.cpp 68 LLVMContext &Ctx = M.getContext();
119 LLVMContext &Ctx = M.getContext();
126 BasicBlock::Create(M.getContext(), "order_file_entry", &F, OrigEntry);
130 BasicBlock::Create(M.getContext(), "order_file_set", &F, OrigEntry);
lib/Transforms/Instrumentation/InstrProfiling.cpp 553 LLVMContext &Ctx = M.getContext();
554 auto *ReturnTy = Type::getVoidTy(M.getContext());
558 AL = AL.addParamAttribute(M.getContext(), 2, AK);
777 LLVMContext &Ctx = M->getContext();
894 auto &Ctx = M->getContext();
922 auto &Ctx = M->getContext();
946 auto *VoidTy = Type::getVoidTy(M->getContext());
947 auto *VoidPtrTy = Type::getInt8PtrTy(M->getContext());
948 auto *Int64Ty = Type::getInt64Ty(M->getContext());
961 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", RegisterF));
991 auto *Int32Ty = Type::getInt32Ty(M->getContext());
1007 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", User));
1033 auto *VoidTy = Type::getVoidTy(M->getContext());
1043 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", F));
lib/Transforms/Instrumentation/Instrumentation.cpp 63 Constant *StrConst = ConstantDataArray::getString(M.getContext(), Str);
lib/Transforms/Instrumentation/MemorySanitizer.cpp 684 Constant *StrConst = ConstantDataArray::getString(M.getContext(), Str);
938 C = &(M.getContext());
lib/Transforms/Instrumentation/PGOInstrumentation.cpp 819 Type *I8PtrTy = Type::getInt8PtrTy(M->getContext());
1141 auto &Ctx = M->getContext();
1420 auto &Ctx = M->getContext();
1524 auto &Ctx = M.getContext();
1556 M.setProfileSummary(PGOReader->getSummary(IsCS).getMD(M.getContext()),
1699 MDBuilder MDB(M->getContext());
1745 MDBuilder MDB(M->getContext());
lib/Transforms/Instrumentation/PoisonChecking.cpp 245 Type::getVoidTy(M->getContext()),
246 Type::getInt1Ty(M->getContext()));
lib/Transforms/Instrumentation/SanitizerCoverage.cpp 313 IRBuilder<> IRB(M.getContext());
362 C = &(M.getContext());
lib/Transforms/Instrumentation/ThreadSanitizer.cpp 201 IntptrTy = DL.getIntPtrType(M.getContext());
203 IRBuilder<> IRB(M.getContext());
205 Attr = Attr.addAttribute(M.getContext(), AttributeList::FunctionIndex,
238 Type *Ty = Type::getIntNTy(M.getContext(), BitSize);
lib/Transforms/Scalar/Float2Int.cpp 524 Ctx = &F.getParent()->getContext();
lib/Transforms/Scalar/PlaceSafepoints.cpp 634 FunctionType::get(Type::getVoidTy(M->getContext()), false) &&
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp 1295 Type *NewTy = Type::getInt8PtrTy(M->getContext(), AS);
1899 "__tmp_use", FunctionType::get(Type::getVoidTy(M->getContext()), true));
lib/Transforms/Scalar/Scalarizer.cpp 305 M.getContext().getMDKindID("llvm.mem.parallel_loop_access");
858 M.getContext().getMDKindID("llvm.mem.parallel_loop_access");
lib/Transforms/Utils/BuildLibCalls.cpp 913 AS = AttributeList::get(M->getContext(), AttributeList::FunctionIndex,
917 "__memcpy_chk", AttributeList::get(M->getContext(), AS), B.getInt8PtrTy(),
lib/Transforms/Utils/CloneModule.cpp 51 std::make_unique<Module>(M.getModuleIdentifier(), M.getContext());
lib/Transforms/Utils/CodeExtractor.cpp 810 StructTy = StructType::get(M->getContext(), paramTy);
1010 LLVMContext &Ctx = M->getContext();
1069 LLVMContext &Context = M->getContext();
lib/Transforms/Utils/EscapeEnumerator.cpp 22 LLVMContext &C = M->getContext();
lib/Transforms/Utils/ModuleUtils.cpp 24 IRBuilder<> IRB(M.getContext());
85 Type *Int8PtrTy = llvm::Type::getInt8PtrTy(M.getContext());
115 FunctionType::get(Type::getVoidTy(M.getContext()), InitArgTypes, false),
129 FunctionType::get(Type::getVoidTy(M.getContext()), false),
131 BasicBlock *CtorBB = BasicBlock::Create(M.getContext(), "", Ctor);
132 IRBuilder<> IRB(ReturnInst::Create(M.getContext(), CtorBB));
155 Ctor->getReturnType() == Type::getVoidTy(M.getContext()))
170 F->getReturnType() != Type::getVoidTy(M.getContext())) {
180 Type::getVoidTy(M.getContext()))
lib/Transforms/Utils/PredicateInfo.cpp 526 getType(M->getContext(), Intrinsic::ssa_copy, Ty))
lib/Transforms/Utils/SanitizerStats.cpp 25 StatTy = ArrayType::get(Type::getInt8PtrTy(M->getContext()), 2);
37 return StructType::get(M->getContext(), {Type::getInt8PtrTy(M->getContext()),
37 return StructType::get(M->getContext(), {Type::getInt8PtrTy(M->getContext()),
38 Type::getInt32Ty(M->getContext()),
77 PointerType *Int8PtrTy = Type::getInt8PtrTy(M->getContext());
78 IntegerType *Int32Ty = Type::getInt32Ty(M->getContext());
79 Type *VoidTy = Type::getVoidTy(M->getContext());
96 auto BB = BasicBlock::Create(M->getContext(), "", F);
lib/Transforms/Utils/SimplifyCFG.cpp 5052 LinearMultiplier = ConstantInt::get(M.getContext(), DistToPrev);
5071 BitMap = ConstantInt::get(M.getContext(), TableInt);
5393 Mod.getContext(), "switch.lookup", CommonDest->getParent(), CommonDest);
5439 LookupBB = BasicBlock::Create(Mod.getContext(), "switch.lookup",
5454 ConstantInt *TableMask = ConstantInt::get(Mod.getContext(), MaskInt);
5464 Shifted, Type::getInt1Ty(Mod.getContext()), "switch.lobit");
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp 951 StoreTy = Type::getIntNTy(F.getParent()->getContext(),
1102 LoadTy = Type::getIntNTy(F.getParent()->getContext(),
1258 bool Allows = TTI.allowsMisalignedMemoryAccesses(F.getParent()->getContext(),
tools/bugpoint/Miscompilation.cpp 815 BasicBlock *BB = BasicBlock::Create(Safe->getContext(), "entry", newMain);
819 ReturnInst::Create(Safe->getContext(), call, BB);
830 "getPointerToNamedFunction", Type::getInt8PtrTy(Safe->getContext()),
831 Type::getInt8PtrTy(Safe->getContext()));
tools/clang/lib/CodeGen/BackendUtil.cpp 1534 EmptyModule = std::make_unique<llvm::Module>("empty", M->getContext());
1602 Type *UsedElementType = Type::getInt8Ty(M->getContext())->getPointerTo(0);
1635 llvm::ConstantDataArray::get(M->getContext(), ModuleData);
1658 llvm::ConstantDataArray::get(M->getContext(), CmdData);
tools/clang/lib/CodeGen/CGBuiltin.cpp 3775 llvm::AttributeList::get(CGM.getModule().getContext(), 3U, B);
tools/clang/lib/CodeGen/CGExpr.cpp 3165 auto &Ctx = M->getContext();
tools/clang/lib/CodeGen/CGGPUBuiltin.cpp 24 llvm::Type *ArgTypes[] = {llvm::Type::getInt8PtrTy(M.getContext()),
25 llvm::Type::getInt8PtrTy(M.getContext())};
27 llvm::Type::getInt32Ty(M.getContext()), ArgTypes, false);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 4021 llvm::LLVMContext &C = M.getContext();
4062 llvm::LLVMContext &C = M.getContext();
tools/clang/lib/CodeGen/CodeGenAction.cpp 259 LLVMContext &Ctx = getModule()->getContext();
1076 LLVMContext &Ctx = TheModule->getContext();
tools/clang/lib/CodeGen/CodeGenFunction.cpp 62 Builder(cgm, cgm.getModule().getContext(), llvm::ConstantFolder(),
tools/clang/lib/CodeGen/CodeGenModule.cpp 99 VMContext(M.getContext()), Types(*this), VTables(*this),
103 llvm::LLVMContext &LLVMContext = M.getContext();
580 llvm::LLVMContext &Ctx = TheModule.getContext();
642 llvm::LLVMContext &Ctx = TheModule.getContext();
4767 llvm::IntegerType::get(getModule().getContext(),
5650 llvm::LLVMContext &Ctx = TheModule.getContext();
5660 llvm::LLVMContext &Ctx = TheModule.getContext();
5691 llvm::LLVMContext &Ctx = TheModule.getContext();
tools/clang/lib/CodeGen/CodeGenTBAA.cpp 36 Features(Features), MContext(MContext), MDHelper(M.getContext()),
tools/clang/lib/CodeGen/CodeGenTypes.h 120 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); }
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 2673 llvm::LLVMContext &Context = CGM.getModule().getContext();
2798 : CGM(ABI.CGM), VMContext(CGM.getModule().getContext()), CXXABI(ABI) {}
tools/clang/lib/CodeGen/TargetInfo.cpp 6517 llvm::LLVMContext &Ctx = M->getContext();
8872 llvm::LLVMContext &Ctx = CGM.getModule().getContext();
tools/clang/unittests/CodeGen/IncrementalProcessingTest.cpp 98 M->getContext());
tools/lldb/source/Expression/IRExecutionUnit.cpp 260 m_module_up->getContext().setInlineAsmDiagnosticHandler(ReportInlineAsmError,
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp 248 llvm::Type::getVoidTy(m_module.getContext()), params, true);
272 llvm::Type::getVoidTy(m_module.getContext()), params, true);
281 m_i8ptr_ty = llvm::Type::getInt8PtrTy(m_module.getContext());
290 m_intptr_ty = llvm::Type::getIntNTy(m_module.getContext(),
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp 357 ConstantInt::get(llvm::Type::getInt64Ty(m_module->getContext()),
366 MDNode *persistent_global_md = MDNode::get(m_module->getContext(), value_ref);
421 Type *i8_ptr_ty = Type::getInt8PtrTy(m_module->getContext());
422 Type *i32_ty = Type::getInt32Ty(m_module->getContext());
423 Type *i8_ty = Type::getInt8Ty(m_module->getContext());
852 Type *sel_ptr_type = Type::getInt8PtrTy(m_module->getContext());
856 type_array[0] = llvm::Type::getInt8PtrTy(m_module->getContext());
874 _objc_meth_var_name_, Type::getInt8PtrTy(m_module->getContext()));
1007 type_array[0] = llvm::Type::getInt8PtrTy(m_module->getContext());
1025 _objc_class_name_, Type::getInt8PtrTy(m_module->getContext()));
1122 MDNode *persistent_global_md = MDNode::get(m_module->getContext(), value_ref);
1750 LLVMContext &context(m_module->getContext());
1849 m_intptr_ty = llvm::Type::getIntNTy(m_module->getContext(),
1885 llvm::Type *int8_ty = Type::getInt8Ty(m_module->getContext());
tools/llvm-exegesis/lib/Assembler.cpp 76 Type *const ReturnType = Type::getInt32Ty(Module->getContext());
78 Type::getInt8Ty(Module->getContext()), 0 /*default address space*/);
tools/llvm-link/llvm-link.cpp 222 return loadFile(argv0, Identifier, DestModule.getContext(), false);
tools/llvm-stress/llvm-stress.cpp 156 LLVMContext &Context = M->getContext();
tools/opt/Debugify.cpp 72 LLVMContext &Ctx = M.getContext();
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp 462 StructType::create(M->getContext(), LocMembers, StructName, false);
479 M->getContext(), "Source location dummy.", true);
tools/polly/lib/CodeGen/PerfMonitor.cpp 65 : M(M), Builder(M->getContext()), S(S) {
129 FinalStartBB = BasicBlock::Create(M->getContext(), "start", ExitFn);
219 BasicBlock *Start = BasicBlock::Create(M->getContext(), "start", InitFn);
221 BasicBlock::Create(M->getContext(), "earlyreturn", InitFn);
222 BasicBlock *InitBB = BasicBlock::Create(M->getContext(), "initbb", InitFn);
unittests/Analysis/ProfileSummaryInfoTest.cpp 199 MDBuilder MDB(M->getContext());
242 MDBuilder MDB(M->getContext());
unittests/Analysis/TBAATest.cpp 34 auto &C = M->getContext();
unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp 187 FunctionType::get(Type::getVoidTy(M.getContext()), {}, false),
190 BasicBlock::Create(M.getContext(), "entry", BarImpl);
unittests/IR/CFGBuilder.cpp 90 auto *BB = BasicBlock::Create(F->getParent()->getContext(), BlockName, F);
unittests/IR/IRBuilderTest.cpp 637 MDBuilder MDB(M->getContext());
unittests/IR/ManglerTest.cpp 31 Type *VoidTy = Type::getVoidTy(Mod.getContext());
32 Type *I32Ty = Type::getInt32Ty(Mod.getContext());