reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Function.h
  172   LLVMContext &getContext() const;

References

include/llvm/Analysis/OptimizationRemarkEmitter.h
   80     if (F->getContext().getRemarkStreamer() ||
   81         F->getContext().getDiagHandlerPtr()->isAnyRemarkEnabled()) {
   95     return (F->getContext().getRemarkStreamer() ||
   96             F->getContext().getDiagHandlerPtr()->isAnyRemarkEnabled(PassName));
include/llvm/Analysis/ScalarEvolution.h
  479   LLVMContext &getContext() const { return F.getContext(); }
include/llvm/CodeGen/CommandFlags.inc
  374     auto &Ctx = F.getContext();
include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
   76     LLVMContext &Ctx = Fn.getContext();
  102     LLVMContext &Ctx = Fn.getContext();
  128     LLVMContext &Ctx = Fn.getContext();
  162         MF.getFunction().getContext().getRemarkStreamer() ||
  163         MF.getFunction().getContext().getDiagHandlerPtr()->isAnyRemarkEnabled(
  175     if (MF.getFunction().getContext().getRemarkStreamer() ||
  177             .getContext()
include/llvm/IR/Function.h
  236                  Attribute::get(getContext(), Kind, Val));
  252         getContext(), AttributeList::FunctionIndex, Kind));
include/llvm/Transforms/Utils/EscapeEnumerator.h
   40         Builder(F.getContext()), Done(false),
lib/Analysis/CallGraphSCCPass.cpp
  178       F->getContext().yield();
lib/Analysis/LoopPass.cpp
  275         F.getContext().yield();
  398   OptPassGate &Gate = F->getContext().getOptPassGate();
lib/Analysis/MemoryBuiltins.cpp
  455   if (FTy->getParamType(0) != Type::getInt8PtrTy(F->getContext()))
  532     LLVMContext &Ctx = ObjectSize->getFunction()->getContext();
lib/Analysis/MemorySSA.cpp
 1512   LiveOnEntryDef.reset(new MemoryDef(F.getContext(), nullptr, nullptr,
lib/Analysis/OptimizationRemarkEmitter.cpp
   26   if (!F->getContext().getDiagnosticsHotnessRequested())
   79       F->getContext().getDiagnosticsHotnessThreshold()) {
   83   F->getContext().diagnose(OptDiag);
   95   if (Fn.getContext().getDiagnosticsHotnessRequested())
  117   if (F.getContext().getDiagnosticsHotnessRequested())
lib/Analysis/RegionPass.cpp
  287   OptPassGate &Gate = F.getContext().getOptPassGate();
lib/AsmParser/LLParser.cpp
 2900     FwdVal = BasicBlock::Create(F.getContext(), Name, &F);
 2934     FwdVal = BasicBlock::Create(F.getContext(), "", &F);
 3009       GetVal(Name, Type::getLabelTy(F.getContext()), Loc, /*IsCall=*/false));
 3014       GetVal(ID, Type::getLabelTy(F.getContext()), Loc, /*IsCall=*/false));
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  674         MF->getFunction().getContext(), {dwarf::DW_OP_LLVM_entry_value, 1});
lib/CodeGen/AtomicExpandPass.cpp
  647   LLVMContext &Ctx = F->getContext();
 1097   LLVMContext &Ctx = F->getContext();
lib/CodeGen/DwarfEHPrepare.cpp
  162   LLVMContext &Ctx = Fn.getContext();
  202   LLVMContext &Ctx = Fn.getContext();
lib/CodeGen/GlobalISel/CallLowering.cpp
  173   CCState CCInfo(F.getCallingConv(), F.isVarArg(), MF, ArgLocs, F.getContext());
  194           F.getContext(), F.getCallingConv(), EVT(CurVT));
  199           F.getContext(), F.getCallingConv(), CurVT);
  411   CCState CCInfo1(CalleeCC, false, MF, ArgLocs1, F.getContext());
  417   CCState CCInfo2(CallerCC, false, MF, ArgLocs2, F.getContext());
lib/CodeGen/GlobalISel/CombinerHelper.cpp
  925   LLVMContext &C = MF.getFunction().getContext();
 1039   LLVMContext &C = MF.getFunction().getContext();
 1147   LLVMContext &C = MF.getFunction().getContext();
lib/CodeGen/GlobalISel/IRTranslator.cpp
  515   Type *PtrIRTy = Type::getInt8PtrTy(MF->getFunction().getContext());
 1659           DL->getABITypeAlignment(Info.memVT.getTypeForEVT(F->getContext())));
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  395   auto &Ctx = MIRBuilder.getMF().getFunction().getContext();
  493   auto &Ctx = MIRBuilder.getMF().getFunction().getContext();
 1677     LLVMContext &Ctx = MIRBuilder.getMF().getFunction().getContext();
 1688     LLVMContext &Ctx = MIRBuilder.getMF().getFunction().getContext();
 1982     LLVMContext &Ctx = MIRBuilder.getMF().getFunction().getContext();
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
  308   auto IntN = IntegerType::get(getMF().getFunction().getContext(),
  341   ConstantInt *CI = ConstantInt::get(getMF().getFunction().getContext(), Val);
  348   auto &Ctx = getMF().getFunction().getContext();
  356   auto &Ctx = getMF().getFunction().getContext();
lib/CodeGen/IndirectBrExpandPass.cpp
   98         (void)new UnreachableInst(F.getContext(), IBr);
  161       (void)new UnreachableInst(F.getContext(), IBr);
  195     SwitchBB = BasicBlock::Create(F.getContext(), "switch_bb", &F);
lib/CodeGen/MIRParser/MIParser.cpp
 1887   Expr = DIExpression::get(MF.getFunction().getContext(), Elements);
 1989   Loc = DILocation::get(MF.getFunction().getContext(), Line, Column, Scope,
 2299   LLVMContext &Ctx = MF.getFunction().getContext();
 2857   if (parseOptionalScope(MF.getFunction().getContext(), SSID))
lib/CodeGen/MIRPrinter.cpp
  797     const LLVMContext &Context = MF->getFunction().getContext();
lib/CodeGen/MachineInstr.cpp
 1728       Context = &MF->getFunction().getContext();
lib/CodeGen/MachineOptimizationRemarkEmitter.cpp
   53   LLVMContext &Ctx = MF.getFunction().getContext();
   74   if (MF.getFunction().getContext().getDiagnosticsHotnessRequested())
lib/CodeGen/MachinePipeliner.cpp
  663     UndefValue::get(Type::getVoidTy(MF.getFunction().getContext()));
lib/CodeGen/MachineVerifier.cpp
 1359         = Intrinsic::getAttributes(MF->getFunction().getContext(),
lib/CodeGen/PreISelIntrinsicLowering.cpp
   33   Type *Int32Ty = Type::getInt32Ty(F.getContext());
   35   Type *Int8Ty = Type::getInt8Ty(F.getContext());
lib/CodeGen/PrologEpilogInserter.cpp
  277     F.getContext().diagnose(DiagStackSize);
lib/CodeGen/RegAllocGreedy.cpp
 2776   LLVMContext &Ctx = MF->getFunction().getContext();
lib/CodeGen/ResetMachineFunctionPass.cpp
   71           F.getContext().diagnose(DiagFallback);
lib/CodeGen/SafeStack.cpp
  209         StackPtrTy(Type::getInt8PtrTy(F.getContext())),
  210         IntPtrTy(DL.getIntPtrType(F.getContext())),
  211         Int32Ty(Type::getInt32Ty(F.getContext())),
  212         Int8Ty(Type::getInt8Ty(F.getContext())) {}
  470   MDNode *Weights = MDBuilder(F.getContext())
lib/CodeGen/ScheduleDAGInstrs.cpp
  116                              Type::getVoidTy(mf.getFunction().getContext()))), Topo(SUnits, &ExitSU) {
lib/CodeGen/SelectionDAG/FastISel.cpp
 1785     ResultReg += TLI.getNumRegisters(FuncInfo.Fn->getContext(), AggValueVTs[i]);
 2001         IntegerType::get(FuncInfo.Fn->getContext(), VT.getSizeInBits());
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
   98       TLI->CanLowerReturn(CC, *MF, Fn->isVarArg(), Outs, Fn->getContext());
  284         unsigned NumRegisters = TLI->getNumRegisters(Fn->getContext(), VT);
  539         unsigned NumRegisters = TLI->getNumRegisters(Fn->getContext(), VT);
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 1015   Context = &MF->getFunction().getContext();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1843       LLVMContext &Context = F->getContext();
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  504     Fn.getContext().diagnose(DiagFallback);
lib/CodeGen/ShadowStackGCLowering.cpp
  103   Type *VoidPtr = Type::getInt8PtrTy(F.getContext());
  116   Type *Int32Ty = Type::getInt32Ty(F.getContext());
  150       ConstantInt::get(Type::getInt32Ty(F.getContext()), 0),
  151       ConstantInt::get(Type::getInt32Ty(F.getContext()), 0)};
  289   LLVMContext &Context = F.getContext();
lib/CodeGen/SjLjEHPrepare.cpp
  192     Type *Int32Ty = Type::getInt32Ty(F.getContext());
  246     Value *TrueValue = ConstantInt::getTrue(F.getContext());
  420         ConstantInt::get(Type::getInt32Ty(F.getContext()), I + 1);
lib/CodeGen/StackProtector.cpp
  509       MDNode *Weights = MDBuilder(F->getContext())
  524   LLVMContext &Context = F->getContext();
lib/CodeGen/TargetInstrInfo.cpp
 1127   DIExpression *Expr = DIExpression::get(MF->getFunction().getContext(), {});;
lib/CodeGen/VirtRegMap.cpp
  442         MF->getFunction().getContext().emitError(
lib/CodeGen/WasmEHPrepare.cpp
  174   IRBuilder<> IRB(F.getContext());
  203   IRBuilder<> IRB(F.getContext());
lib/CodeGen/WinEHPrepare.cpp
  731       FuncletToken = ConstantTokenNone::get(F.getContext());
lib/ExecutionEngine/ExecutionEngine.cpp
  436   Type* PPInt8Ty = Type::getInt8PtrTy(Fn->getContext())->getPointerTo();
  457       GVArgs.push_back(PTOGV(CArgv.reset(Fn->getContext(), this, argv)));
  465         GVArgs.push_back(PTOGV(CEnv.reset(Fn->getContext(), this, EnvVars)));
lib/ExecutionEngine/ExecutionEngineBindings.cpp
  191       Attrs = Attrs.addAttribute(F.getContext(), AttributeList::FunctionIndex,
lib/IR/AutoUpgrade.cpp
   42   if (Arg0Type != VectorType::get(Type::getFloatTy(F->getContext()), 4))
  510         Type::getInt1Ty(F->getContext())
  833     F->setAttributes(Intrinsic::getAttributes(F->getContext(), id));
lib/IR/Constants.cpp
 1467     F->getContext().pImpl->BlockAddresses[std::make_pair(F, BB)];
 1476 : Constant(Type::getInt8PtrTy(F->getContext()), Value::BlockAddressVal,
 1490       F->getContext().pImpl->BlockAddresses.lookup(std::make_pair(F, BB));
lib/IR/Core.cpp
 2431   Attribute Attr = Attribute::get(Func->getContext(), A, V);
lib/IR/DiagnosticInfo.cpp
  262   LLVMContext &Ctx = Fn.getContext();
  283   LLVMContext &Ctx = Fn.getContext();
  311   LLVMContext &Ctx = Fn.getContext();
lib/IR/Function.cpp
  177   AL = AL.addParamAttributes(Parent->getContext(), getArgNo(), B);
  253   if (!getContext().shouldDiscardValueNames())
  268     setAttributes(Intrinsic::getAttributes(getContext(), IntID));
  383   PAL = PAL.addAttribute(getContext(), i, Kind);
  389   PAL = PAL.addAttribute(getContext(), i, Attr);
  395   PAL = PAL.addAttributes(getContext(), i, Attrs);
  401   PAL = PAL.addParamAttribute(getContext(), ArgNo, Kind);
  407   PAL = PAL.addParamAttribute(getContext(), ArgNo, Attr);
  413   PAL = PAL.addParamAttributes(getContext(), ArgNo, Attrs);
  419   PAL = PAL.removeAttribute(getContext(), i, Kind);
  425   PAL = PAL.removeAttribute(getContext(), i, Kind);
  431   PAL = PAL.removeAttributes(getContext(), i, Attrs);
  437   PAL = PAL.removeParamAttribute(getContext(), ArgNo, Kind);
  443   PAL = PAL.removeParamAttribute(getContext(), ArgNo, Kind);
  449   PAL = PAL.removeParamAttributes(getContext(), ArgNo, Attrs);
  455   PAL = PAL.addDereferenceableAttr(getContext(), i, Bytes);
  461   PAL = PAL.addDereferenceableParamAttr(getContext(), ArgNo, Bytes);
  467   PAL = PAL.addDereferenceableOrNullAttr(getContext(), i, Bytes);
  474   PAL = PAL.addDereferenceableOrNullParamAttr(getContext(), ArgNo, Bytes);
  480   return getContext().getGC(*this);
  485   getContext().setGC(*this, std::move(Str));
  491   getContext().deleteGC(*this);
 1504   auto *CPN = ConstantPointerNull::get(Type::getInt1PtrTy(getContext(), 0));
 1517         ConstantPointerNull::get(Type::getInt1PtrTy(getContext(), 0)));
 1536   MDBuilder MDB(getContext());
 1582   MDBuilder MDB(getContext());
lib/IR/LegacyPassManager.cpp
  235   F->getContext().diagnose(R); // Not using ORE for layering reasons.
  271     F->getContext().diagnose(FR);
 1586     F.getContext().yield();
lib/IR/Pass.cpp
  167   OptPassGate &Gate = F.getContext().getOptPassGate();
  207   OptPassGate &Gate = F->getContext().getOptPassGate();
lib/IR/Verifier.cpp
 2141   Assert(&Context == &F.getContext(),
lib/Linker/IRMover.cpp
  661   F->setAttributes(mapAttributeTypes(F->getContext(), F->getAttributes()));
lib/ProfileData/InstrProf.cpp
 1039   LLVMContext &C = F.getContext();
lib/Target/AArch64/AArch64CallLowering.cpp
  392                  F.getContext());
  579   CCState OutInfo(CalleeCC, false, MF, OutLocs, CallerF.getContext());
  843     CCState OutInfo(CalleeCC, false, MF, OutLocs, F.getContext());
lib/Target/AArch64/AArch64FastISel.cpp
  297     Context = &FuncInfo.Fn->getContext();
lib/Target/AArch64/AArch64InstructionSelector.cpp
 3660   LLVMContext &Ctx = MF.getFunction().getContext();
lib/Target/AArch64/AArch64RegisterInfo.cpp
  235   F.getContext().diagnose(DiagnosticInfoUnsupported{F, "AArch64 doesn't support"
lib/Target/AArch64/AArch64StackTagging.cpp
  479       ArrayType::get(Type::getInt8Ty(F->getContext()), AlignedSize - Size);
  684           MetadataAsValue::get(F->getContext(), LocalAsMetadata::get(Info.AI)));
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  875       Type::getInt64Ty(I.getParent()->getParent()->getContext());
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  934     MF.getFunction().getContext().diagnose(DiagStackSize);
  951       LLVMContext &Ctx = MF.getFunction().getContext();
  991       LLVMContext &Ctx = MF.getFunction().getContext();
 1011     LLVMContext &Ctx = MF.getFunction().getContext();
 1018     LLVMContext &Ctx = MF.getFunction().getContext();
lib/Target/AMDGPU/AMDGPUCallLowering.cpp
  450   CCState CCInfo(F.getCallingConv(), F.isVarArg(), MF, ArgLocs, F.getContext());
  574   CCState CCInfo(CC, F.isVarArg(), MF, ArgLocs, F.getContext());
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
  407   auto Int64Ty = Type::getInt64Ty(Func.getContext());
  416   auto Int8PtrTy = Type::getInt8PtrTy(Func.getContext(),
  840   auto Int64Ty = Type::getInt64Ty(Func.getContext());
  850       Type::getInt8PtrTy(Func.getContext(), AMDGPUAS::GLOBAL_ADDRESS);
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
 1190                                Type::getInt8Ty(MF.getFunction().getContext()),
 1651       Fn.getContext().diagnose(BadLDSDecl);
 1664     Fn.getContext().diagnose(BadInit);
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  765       LLVMContext &context = CI->getParent()->getParent()->getContext();
 1672   LLVMContext &context = CI->getParent()->getParent()->getContext();
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  202     LLVMContext &C = MI->getParent()->getParent()->getFunction().getContext();
  266     LLVMContext &C = MI->getParent()->getParent()->getFunction().getContext();
  390     LLVMContext &C = MI->getParent()->getParent()->getFunction().getContext();
lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp
  126   BasicBlock *NewRetBlock = BasicBlock::Create(F.getContext(), Name, &F);
  130     ReturnInst::Create(F.getContext(), nullptr, NewRetBlock);
  136     ReturnInst::Create(F.getContext(), PN, NewRetBlock);
  184       ConstantInt *BoolTrue = ConstantInt::getTrue(F.getContext());
  186         DummyReturnBB = BasicBlock::Create(F.getContext(),
  190         ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB);
  217       UnreachableBlock = BasicBlock::Create(F.getContext(),
  219       new UnreachableInst(F.getContext(), UnreachableBlock);
  247       ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock);
lib/Target/AMDGPU/AMDILCFGStructurizer.cpp
 1591   LLVMContext &Ctx = LoopHeader->getParent()->getFunction().getContext();
lib/Target/AMDGPU/SIFrameLowering.cpp
  582       PointerType::get(Type::getInt64Ty(MF.getFunction().getContext()),
  627           PointerType::get(Type::getInt64Ty(MF.getFunction().getContext()),
lib/Target/AMDGPU/SIISelLowering.cpp
 4639     LLVMContext &Ctx = MF.getFunction().getContext();
lib/Target/AMDGPU/SIInstrInfo.cpp
  517   LLVMContext &C = MF->getFunction().getContext();
lib/Target/AMDGPU/SIMemoryLegalizer.cpp
  448   Func.getContext().diagnose(Diag);
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
  568       LLVMContext &Ctx = F.getContext();
  584   LLVMContext &Ctx = F.getContext();
lib/Target/ARM/ARMBaseInstrInfo.cpp
 1673       Create(MF.getFunction().getContext(),
 1684       Create(MF.getFunction().getContext(),
lib/Target/ARM/ARMBaseRegisterInfo.cpp
  466         ConstantInt::get(Type::getInt32Ty(MF.getFunction().getContext()), Val);
lib/Target/ARM/ARMExpandPseudoInsts.cpp
 1417             ARMConstantPoolSymbol::Create(MF->getFunction().getContext(),
lib/Target/ARM/ARMFastISel.cpp
  133       Context = &funcInfo.Fn->getContext();
 2952   LLVMContext *Context = &MF->getFunction().getContext();
lib/Target/ARM/ARMFrameLowering.cpp
 2410         MF.getFunction().getContext(), "__STACK_LIMIT", PCLabelId, 0);
lib/Target/ARM/ARMISelLowering.cpp
 9356     ARMConstantPoolMBB::Create(F.getContext(), DispatchBB, PCLabelId, PCAdj);
 9642       Type *Int32Ty = Type::getInt32Ty(MF->getFunction().getContext());
 9743       Type *Int32Ty = Type::getInt32Ty(MF->getFunction().getContext());
10145     Type *Int32Ty = Type::getInt32Ty(MF->getFunction().getContext());
lib/Target/ARM/ARMLegalizerInfo.cpp
  367   LLVMContext &Ctx = MIRBuilder.getMF().getFunction().getContext();
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
 2182     ? TD->getABITypeAlignment(Type::getInt64Ty(Func.getContext()))
lib/Target/ARM/ARMTargetMachine.cpp
  291       F.getContext().emitError("Function '" + F.getName() + "' uses ARM "
lib/Target/ARM/ThumbRegisterInfo.cpp
   72           Type::getInt32Ty(MBB.getParent()->getFunction().getContext()), Val);
   91            Type::getInt32Ty(MBB.getParent()->getFunction().getContext()), Val);
lib/Target/BPF/BPFRegisterInfo.cpp
   52       F.getContext().diagnose(DiagStackSize);
lib/Target/Hexagon/HexagonCommonGEP.cpp
 1285   Ctx = &F.getContext();
lib/Target/Hexagon/HexagonConstPropagation.cpp
  285         MF(Fn), CX(Fn.getFunction().getContext()) {}
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  209         : Ctx(Exp->getParent()->getParent()->getContext()) {
  569       LLVMContext &Ctx = CurLoop->getHeader()->getParent()->getContext();
lib/Target/Mips/Mips16HardFloat.cpp
  480   new UnreachableInst(FStub->getContext(), BB);
lib/Target/Mips/MipsCallLowering.cpp
   67     SplitLength = TLI.getNumRegistersForCallingConv(F.getContext(),
   74           F.getContext(), F.getCallingConv(), VT);
  440                        F.getContext());
  486                      F.getContext());
  612                      F.getContext());
  656                        F.getContext());
  682     MVT RegisterVT = TLI.getRegisterTypeForCallingConv(F.getContext(),
  685         F.getContext(), F.getCallingConv(), VT);
lib/Target/Mips/MipsConstantIslandPass.cpp
 1657               Type::getInt32Ty(MF->getFunction().getContext());
lib/Target/Mips/MipsFastISel.cpp
  261     Context = &funcInfo.Fn->getContext();
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
 1226               IntegerType::get(MF->getFunction().getContext(), 32);
lib/Target/NVPTX/NVPTXISelLowering.cpp
 2534         unsigned NumRegs = TLI->getNumRegisters(F->getContext(), ObjectVT);
 2585           EVT VecVT = EVT::getVectorVT(F->getContext(), LoadVT, NumElts);
 2590               EltVT.getTypeForEVT(F->getContext()), ADDRESS_SPACE_PARAM));
lib/Target/PowerPC/PPCFastISel.cpp
  103           Context(&FuncInfo.Fn->getContext()) {}
lib/Target/RISCV/RISCVFrameLowering.cpp
  138     MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
  178       MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
lib/Target/RISCV/RISCVISelLowering.cpp
 2264     MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
 2418         MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
 2434         MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
 2485     F.getContext().diagnose(DiagnosticInfoUnsupported{
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  199     Context = &FuncInfo.Fn->getContext();
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  351   auto &Context = BB->getParent()->getFunction().getContext();
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  741   LLVMContext &C = F.getContext();
  875   LLVMContext &C = F.getContext();
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
   38     unsigned NumRegs = TLI.getNumRegisters(F.getContext(), VT);
   39     MVT RegisterVT = TLI.getRegisterType(F.getContext(), VT);
lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
  115         Type::getFloatTy(MF.getFunction().getContext())));
  120         Type::getDoubleTy(MF.getFunction().getContext())));
lib/Target/X86/X86InstrInfo.cpp
 5320       Ty = Type::getFloatTy(MF.getFunction().getContext());
 5322       Ty = Type::getDoubleTy(MF.getFunction().getContext());
 5324       Ty = Type::getFP128Ty(MF.getFunction().getContext());
 5326       Ty = VectorType::get(Type::getInt32Ty(MF.getFunction().getContext()),16);
 5329       Ty = VectorType::get(Type::getInt32Ty(MF.getFunction().getContext()), 8);
 5331       Ty = VectorType::get(Type::getInt32Ty(MF.getFunction().getContext()), 2);
 5333       Ty = VectorType::get(Type::getInt32Ty(MF.getFunction().getContext()), 4);
 7637     Expr = DIExpression::get(MI.getMF()->getFunction().getContext(), Ops);
lib/Target/X86/X86WinEHState.cpp
  377   Value *FI8 = Builder.CreateBitCast(F, Type::getInt8PtrTy(F->getContext()));
  390   LLVMContext &Context = ParentFunc->getContext();
lib/Target/XCore/XCoreInstrInfo.cpp
  445         Type::getInt32Ty(MBB.getParent()->getFunction().getContext()), Value);
lib/Transforms/Coroutines/CoroFrame.cpp
  397   LLVMContext &C = F.getContext();
 1357   IRBuilder<> Builder(F.getContext());
lib/Transforms/Coroutines/CoroSplit.cpp
  111       FKind(FKind), Builder(OrigF.getContext()) {
  119       FKind(Kind::Continuation), Builder(OrigF.getContext()),
  265   LLVMContext &C = F.getContext();
  673   auto &Context = NewF->getContext();
  836   LLVMContext &C = F.getContext();
 1258       ReturnBB = BasicBlock::Create(F.getContext(), "coro.return", &F,
 1384   LLVMContext &Context = F.getContext();
lib/Transforms/Coroutines/Coroutines.cpp
  328     auto *Undef = UndefValue::get(Type::getInt8PtrTy(F.getContext()));
lib/Transforms/IPO/ArgumentPromotion.cpp
  231   NF->setAttributes(AttributeList::get(F->getContext(), PAL.getFnAttributes(),
  263             ConstantInt::get(Type::getInt32Ty(F->getContext()), 0), nullptr};
  265           Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i);
  290                   (ElTy->isStructTy() ? Type::getInt32Ty(F->getContext())
  291                                       : Type::getInt64Ty(F->getContext()));
  338         AttributeList::get(F->getContext(), CallPAL.getFnAttributes(),
  393       Value *Idxs[2] = {ConstantInt::get(Type::getInt32Ty(F->getContext()), 0),
  397         Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i);
lib/Transforms/IPO/Attributor.cpp
 3584       Instruction *AI = new AllocaInst(Type::getInt8Ty(F->getContext()), AS,
 3605             BI, ConstantInt::get(F->getContext(), APInt(8, 0, false)), Size,
 3606             ConstantInt::get(Type::getInt1Ty(F->getContext()), false)};
lib/Transforms/IPO/DeadArgumentElimination.cpp
  191       PAL = AttributeList::get(Fn.getContext(), PAL.getFnAttributes(),
  828       NRetTy = Type::getVoidTy(F->getContext());
  846   AttributeSet RetAttrs = AttributeSet::get(F->getContext(), RAttrs);
  850       F->getContext(), Attribute::AllocSize);
  855       AttributeList::get(F->getContext(), FnAttrs, RetAttrs, ArgAttrVec);
  888     AttributeSet RetAttrs = AttributeSet::get(F->getContext(), RAttrs);
  908               F->getContext(),
  928         F->getContext(), Attribute::AllocSize);
  931         F->getContext(), FnAttrs, RetAttrs, ArgAttrVec);
 1068         ReturnInst::Create(F->getContext(), RetVal, RI);
lib/Transforms/IPO/GlobalOpt.cpp
 2121   F->setAttributes(StripAttr(F->getContext(), F->getAttributes(), A));
 2126     CS.setAttributes(StripAttr(F->getContext(), CS.getAttributes(), A));
lib/Transforms/IPO/Inliner.cpp
 1014           Callee.getContext().getDiagHandlerPtr()->isMissedOptRemarkEnabled(
lib/Transforms/IPO/LowerTypeTests.cpp
 1574     MDNode *MD = MDNode::get(F->getContext(),
lib/Transforms/IPO/MergeFunctions.cpp
  463       auto &Context = New->getContext();
  700     BB = BasicBlock::Create(F->getContext(), "", NewG);
lib/Transforms/IPO/PartialInlining.cpp
  776       Callee->getContext().getDiagHandlerPtr()->isMissedOptRemarkEnabled(
lib/Transforms/IPO/SampleProfile.cpp
 1418   LLVMContext &Ctx = F.getContext();
 1536   F.getContext().diagnose(DiagnosticInfoSampleProfile(
 1643       F.getContext().diagnose(DiagnosticInfoSampleProfile(
 1656       F.getContext().diagnose(DiagnosticInfoSampleProfile(
lib/Transforms/InstCombine/InstructionCombining.cpp
 3518       F.getContext(), TargetFolder(DL),
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2707   ObjectSizeOffsetVisitor ObjSizeVis(DL, TLI, F.getContext(), ObjSizeOpts);
lib/Transforms/Instrumentation/BoundsChecking.cpp
  147   ObjectSizeOffsetEvaluator ObjSizeEval(DL, &TLI, F.getContext(), EvalOpts);
  185     TrapBB = BasicBlock::Create(Fn->getContext(), "trap", Fn);
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
 1832                                          ConstantInt::getTrue(F.getContext()));
 1845   Value *MergedCondition = ConstantInt::getTrue(F.getContext());
 1874   MDBuilder MDB(F.getContext());
 1919                         ConstantInt::getTrue(F.getContext()) :
 1920                         ConstantInt::getFalse(F.getContext());
 1944                         ConstantInt::getTrue(F.getContext()) :
 1945                         ConstantInt::getFalse(F.getContext());
 1970           ConstantInt::getTrue(F.getContext()), Cond);
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  352   auto &Ctx = Func.getContext();
lib/Transforms/Instrumentation/PoisonChecking.cpp
  257   auto * const Int1Ty = Type::getInt1Ty(F.getContext());
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  660   MDNode *MD = MDNode::get(F.getContext(), ValueAsMetadata::get(&F));
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
  253   Type *Int64Ty = Type::getInt64Ty(I->getParent()->getParent()->getContext());
lib/Transforms/Scalar/ConstantHoisting.cpp
  932   this->Ctx = &Fn.getContext();
lib/Transforms/Scalar/LoopDistribute.cpp
  861     LLVMContext &Ctx = F->getContext();
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 2236   LLVMContext &Context = Func->getContext();
lib/Transforms/Scalar/Reg2Mem.cpp
   86       Constant::getNullValue(Type::getInt32Ty(F.getContext())),
   87       Type::getInt32Ty(F.getContext()), "reg2mem alloca point", &*I);
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1471       auto *FTy = FunctionType::get(Type::getVoidTy(F->getContext()), DomainTy,
 2400   LLVMContext &Ctx = F.getContext();
 2446   LLVMContext &Ctx = F.getContext();
lib/Transforms/Scalar/SROA.cpp
 4560   C = &F.getContext();
lib/Transforms/Scalar/StructurizeCFG.cpp
  723   LLVMContext &Context = Func->getContext();
 1020       MDNode *MD = MDNode::get(R->getEntry()->getParent()->getContext(), {});
lib/Transforms/Scalar/TailRecursionElimination.cpp
  572     BasicBlock *NewEntry = BasicBlock::Create(F->getContext(), "", F, OldEntry);
lib/Transforms/Utils/BypassSlowDivision.cpp
  264   DivRemPair.BB = BasicBlock::Create(MainBB->getParent()->getContext(), "",
  287   DivRemPair.BB = BasicBlock::Create(MainBB->getParent()->getContext(), "",
lib/Transforms/Utils/CallPromotionUtils.cpp
  397   LLVMContext &Ctx = Callee->getContext();
lib/Transforms/Utils/CloneFunction.cpp
  123       AttributeList::get(NewFunc->getContext(), OldAttrs.getFnAttributes(),
lib/Transforms/Utils/CodeExtractor.cpp
 1110     StructArgTy = StructType::get(newFunction->getContext(), ArgTypes);
lib/Transforms/Utils/EscapeEnumerator.cpp
   67   LLVMContext &C = F.getContext();
lib/Transforms/Utils/InlineFunction.cpp
  690             ConstantTokenNone::get(Caller->getContext());
  723           UnwindDestToken = ConstantTokenNone::get(Caller->getContext());
  849     DummyNodes.push_back(MDTuple::getTemporary(CalledFunc->getContext(), None));
  866     MDNode *NewM = MDNode::get(CalledFunc->getContext(), NewOps);
  946   MDBuilder MDB(CalledFunc->getContext());
 1108                             MDNode::get(CalledFunc->getContext(), NoAliases)));
 1134                                 MDNode::get(CalledFunc->getContext(), Scopes)));
 1394   auto &Ctx = Fn->getContext();
lib/Transforms/Utils/LowerMemIntrinsics.cpp
  329     BasicBlock::Create(F->getContext(), "copy_backwards_loop", F, CopyForwardBB);
  349     BasicBlock::Create(F->getContext(), "copy_forward_loop", F, ExitBB);
  377     = BasicBlock::Create(F->getContext(), "loadstoreloop", F, NewBB);
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
   63     UnreachableBlock = BasicBlock::Create(F.getContext(),
   65     new UnreachableInst(F.getContext(), UnreachableBlock);
   86   BasicBlock *NewRetBlock = BasicBlock::Create(F.getContext(),
   91     ReturnInst::Create(F.getContext(), nullptr, NewRetBlock);
   97     ReturnInst::Create(F.getContext(), PN, NewRetBlock);
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2921         IntegerType::get(F->getContext(), MinBWs[VL[0]].first), VL.size());
 3478       auto *MinTy = IntegerType::get(F->getContext(), MinBWs[ScalarRoot].first);
 4257     auto *MinTy = IntegerType::get(F->getContext(), MinBWs[ScalarRoot].first);
tools/bugpoint/ExtractFunction.cpp
  231   Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext());
tools/bugpoint/Miscompilation.cpp
  844             ConstantDataArray::getString(F->getContext(), F->getName());
  854             2, Constant::getNullValue(Type::getInt32Ty(F->getContext())));
  875               BasicBlock::Create(F->getContext(), "entry", FuncWrapper);
  877               BasicBlock::Create(F->getContext(), "usecache", FuncWrapper);
  879               BasicBlock::Create(F->getContext(), "lookupfp", FuncWrapper);
  916             ReturnInst::Create(F->getContext(), DoCallBB);
  920             ReturnInst::Create(F->getContext(), Call, DoCallBB);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1788         llvm::LLVMContext &Ctx = F->getContext();
 2226         llvm::LLVMContext &Ctx = F->getContext();
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1871     llvm::LLVMContext &Ctx = F->getContext();
 4336         newFn->getContext(), oldAttrs.getFnAttributes(),
tools/clang/lib/CodeGen/TargetInfo.cpp
 7396         llvm::LLVMContext &Context = F->getContext();
tools/llvm-stress/llvm-stress.cpp
  673   BasicBlock *BB = BasicBlock::Create(F->getContext(), "BB", F);
  674   ReturnInst::Create(F->getContext(), BB);
  710     if (Instr.getType() == IntegerType::getInt1Ty(F->getContext()))
tools/polly/lib/Analysis/ScopDetection.cpp
 1696     F.getContext().diagnose(Diagnostic);
tools/polly/lib/CodeGen/IslExprBuilder.cpp
  598   LLVMContext &Context = F->getContext();
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  787   LLVMContext &Context = F->getContext();
 1283   LLVMContext &Context = F->getContext();
tools/polly/lib/CodeGen/LoopGenerators.cpp
   89   LLVMContext &Context = F->getContext();
tools/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp
  107   LLVMContext &Context = SubFn->getContext();
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
  131   LLVMContext &Context = SubFn->getContext();
tools/polly/lib/CodeGen/Utils.cpp
  144       BasicBlock::Create(F->getContext(), "polly.start", F);
  146       BasicBlock::Create(F->getContext(), "polly.exiting", F);
tools/polly/lib/Support/SCEVAffinator.cpp
  555   return visit(SE.getZero(Type::getInt32Ty(S->getFunction().getContext())));
tools/polly/lib/Transform/DeLICM.cpp
 1215       S->getFunction().getContext().diagnose(R);
 1248           S->getFunction().getContext().diagnose(R);
 1258           S->getFunction().getContext().diagnose(R);
 1270           S->getFunction().getContext().diagnose(R);
 1281           S->getFunction().getContext().diagnose(R);
 1305           S->getFunction().getContext().diagnose(R);
 1319           S->getFunction().getContext().diagnose(R);
tools/polly/lib/Transform/ZoneAlgo.cpp
  351         S->getFunction().getContext().diagnose(R);
  368       S->getFunction().getContext().diagnose(R);
  381       S->getFunction().getContext().diagnose(R);
unittests/Analysis/CGSCCPassManagerTest.cpp
 1173                                           Type::getInt8PtrTy(H2F.getContext()),
unittests/Analysis/DomTreeUpdaterTest.cpp
  181       BasicBlock::Create(F->getContext(), "new_entry", F, BB0);
  273   BranchInst::Create(BB1, BB2, ConstantInt::getTrue(F->getContext()), BB0);
  371   BranchInst::Create(BB1, BB3, ConstantInt::getTrue(F->getContext()), BB0);
  490   BranchInst::Create(BB1, BB2, ConstantInt::getTrue(F->getContext()), BB0);
  556       BasicBlock::Create(F->getContext(), "new_entry", F, BB0);
unittests/CodeGen/GlobalISel/MachineIRBuilderTest.cpp
   49   LLVMContext &Ctx = MF->getFunction().getContext();
unittests/IR/DominatorTreeTest.cpp
  241         BranchInst::Create(BB4, BB3, ConstantInt::getTrue(F.getContext()), BB1);
  267             BasicBlock::Create(F.getContext(), "new_entry", &F, BB0);