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

References

gen/lib/Target/AArch64/AArch64GenDAGISel.inc
114563   case 3: return (!Subtarget->isSTRQroSlow() || MF->getFunction().hasOptSize());
114564   case 4: return (Subtarget->isLittleEndian()) && (!Subtarget->isSTRQroSlow() || MF->getFunction().hasOptSize());
114579   case 19: return ( !MF->getFunction().hasFnAttribute("branch-target-enforcement") );
114580   case 20: return ( MF->getFunction().hasFnAttribute("branch-target-enforcement") );
114582   case 22: return (!MF->getFunction().hasOptNone() || MF->getProperties().hasProperty(MachineFunctionProperties::Property::FailedISel) || !MF->getProperties().hasProperty(MachineFunctionProperties::Property::Legalized));
114586   case 26: return (!MF->getFunction().hasOptSize());
114587   case 27: return (!MF->getFunction().hasOptSize()) && (Subtarget->useAlternateSExtLoadCVTF32Pattern());
gen/lib/Target/AArch64/AArch64GenGlobalISel.inc
  112   if (!MF->getFunction().hasOptSize())
  114   if (!Subtarget->isSTRQroSlow() || MF->getFunction().hasOptSize())
  116   if ( MF->getFunction().hasFnAttribute("branch-target-enforcement") )
  118   if ( !MF->getFunction().hasFnAttribute("branch-target-enforcement") )
  120   if (!MF->getFunction().hasOptNone() || MF->getProperties().hasProperty(MachineFunctionProperties::Property::FailedISel) || !MF->getProperties().hasProperty(MachineFunctionProperties::Property::Legalized))
gen/lib/Target/X86/X86GenDAGISel.inc
253365   case 9: return (!Subtarget->slowIncDec() || MF->getFunction().hasOptSize());
253366   case 10: return (Subtarget->is64Bit()) && (!Subtarget->slowIncDec() || MF->getFunction().hasOptSize());
253377   case 21: return (MF->getFunction().hasMinSize());
253411   case 55: return (MF->getFunction().hasOptSize()) && (Subtarget->hasSSE1() && !Subtarget->hasAVX());
253412   case 56: return (Subtarget->hasAVX()) && (MF->getFunction().hasOptSize());
253467   case 111: return (MF->getFunction().hasOptSize());
253481   case 125: return (MF->getFunction().hasOptSize()) && (Subtarget->hasAVX() && !Subtarget->hasAVX512());
253482   case 126: return (MF->getFunction().hasOptSize() || !Subtarget->hasSSE41()) && (Subtarget->hasSSE1() && !Subtarget->hasAVX());
253483   case 127: return (Subtarget->hasAVX()) && (!MF->getFunction().hasOptSize());
253484   case 128: return (!MF->getFunction().hasOptSize()) && (Subtarget->hasSSE41() && !Subtarget->hasAVX());
253485   case 129: return (Subtarget->hasAVX512()) && (MF->getFunction().hasOptSize());
253486   case 130: return (Subtarget->hasAVX512()) && (!MF->getFunction().hasOptSize());
253513   case 157: return (!Subtarget->is64Bit()) && (MF->getFunction().hasOptSize());
253514   case 158: return (!Subtarget->isTargetWin64() ||Subtarget->getFrameLowering()->hasFP(*MF)) && (MF->getFunction().hasMinSize());
253528   case 172: return (MF->getFunction().hasOptSize()) && (Subtarget->hasSSE41() && !Subtarget->hasAVX());
253533   case 177: return (MF->getFunction().hasOptSize()) && (Subtarget->hasSSE2() && !Subtarget->hasAVX());
253551   case 195: return (Subtarget->hasAVX() && !Subtarget->hasAVX2()) && (MF->getFunction().hasMinSize());
253553   case 197: return (MF->getFunction().hasOptSize() || !Subtarget->hasSSE41()) && (Subtarget->hasSSE2() && !Subtarget->hasAVX());
gen/lib/Target/X86/X86GenFastISel.inc
11047   if ((Subtarget->hasAVX512()) && (MF->getFunction().hasOptSize())) {
11050   if ((MF->getFunction().hasOptSize() || !Subtarget->hasSSE41()) && (Subtarget->hasSSE2() && !Subtarget->hasAVX())) {
11053   if ((MF->getFunction().hasOptSize()) && (Subtarget->hasAVX() && !Subtarget->hasAVX512())) {
11071   if ((Subtarget->hasAVX512()) && (MF->getFunction().hasOptSize())) {
11074   if ((MF->getFunction().hasOptSize() || !Subtarget->hasSSE41()) && (Subtarget->hasSSE1() && !Subtarget->hasAVX())) {
11077   if ((MF->getFunction().hasOptSize()) && (Subtarget->hasAVX() && !Subtarget->hasAVX512())) {
gen/lib/Target/X86/X86GenGlobalISel.inc
  379   if (MF->getFunction().hasOptSize())
  381   if (MF->getFunction().hasMinSize())
  383   if (!MF->getFunction().hasOptSize())
  385   if (!Subtarget->slowIncDec() || MF->getFunction().hasOptSize())
  387   if (MF->getFunction().hasOptSize() || !Subtarget->hasSSE41())
include/llvm/Analysis/BlockFrequencyInfoImpl.h
 1348             F->getFunction(), getNode(&BB)))
include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
  264     return getMF().getFunction().getParent()->getDataLayout();
include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
   35                                        MBB->getParent()->getFunction(), Loc),
  162         MF.getFunction().getContext().getRemarkStreamer() ||
  163         MF.getFunction().getContext().getDiagHandlerPtr()->isAnyRemarkEnabled(
  175     if (MF.getFunction().getContext().getRemarkStreamer() ||
  176         MF.getFunction()
lib/CodeGen/Analysis.cpp
  736       classifyEHPersonality(MF.getFunction().getPersonalityFn()));
lib/CodeGen/AsmPrinter/ARMException.cpp
   62   const Function &F = MF->getFunction();
   71   if (!Asm->MF->getFunction().needsUnwindTableEntry() &&
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  651   const Function &F = MF->getFunction();
  935       MF->getFunction().needsUnwindTableEntry())
  945   return MAI->usesWindowsCFI() && MF->getFunction().needsUnwindTableEntry();
 1015   if (!MF.getFunction().hasPersonalityFn())
 1018       classifyEHPersonality(MF.getFunction().getPersonalityFn()));
 1137                                       MF->getFunction().getSubprogram(),
 1165   const Function &F = MF->getFunction();
 1668     const Function &F = MF.getFunction();
 1674     CurrentFnSym = getSymbol(&MF.getFunction());
 1797   const Function &F = MF->getFunction();
 2200                      !MF ? nullptr : MF->getFunction().getParent());
 2908                             !MF->getFunction().hasOptSize() &&
 3125   const Function &F = MF->getFunction();
 3181   const Function &F = MI.getMF()->getFunction();
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1332   const Function &GV = MF->getFunction();
 2831   const Function &GV = MF->getFunction();
lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
  175   auto *SP = MF->getFunction().getSubprogram();
  233         getDISubprogram(DIVar->getScope())->describes(&MF->getFunction())) {
lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
   89   const Function &F = MF->getFunction();
  145   auto &F = MBB->getParent()->getFunction();
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  674         MF->getFunction().getContext(), {dwarf::DW_OP_LLVM_entry_value, 1});
 1637   const auto *SP = MI->getMF()->getFunction().getSubprogram();
 1766         MF.getFunction().getSubprogram()->getUnit());
 1782   auto *SP = MF->getFunction().getSubprogram();
 1816   const DISubprogram *SP = MF->getFunction().getSubprogram();
lib/CodeGen/AsmPrinter/WinException.cpp
   66   const Function &F = MF->getFunction();
  101           GlobalValue::dropLLVMManglingEscape(MF->getFunction().getName());
  124   const Function &F = MF->getFunction();
  179   const Function &F = MF->getFunction();
  192   const Function &F = Asm->MF->getFunction();
  255     const Function &F = MF->getFunction();
  564         GlobalValue::dropLLVMManglingEscape(MF->getFunction().getName());
  659   const Function &F = MF->getFunction();
  968   const Function &F = MF->getFunction();
lib/CodeGen/BranchFolding.cpp
  120   if (skipFunction(MF.getFunction()))
  730   return EffectiveTailLen >= 2 && MF->getFunction().hasOptSize() &&
 1583       MF.getFunction().hasOptSize()) {
lib/CodeGen/BreakFalseDeps.cpp
  195   if (MF->getFunction().hasMinSize())
  220   if (MF->getFunction().hasMinSize())
  264   if (skipFunction(mf.getFunction()))
lib/CodeGen/CFGuardLongjmp.cpp
   67   if (!MF.getFunction().callsFunctionThatReturnsTwice())
lib/CodeGen/CFIInstrInserter.cpp
   52         !MF.getFunction().needsUnwindTableEntry())
lib/CodeGen/DeadMachineInstructionElim.cpp
   98   if (skipFunction(MF.getFunction()))
lib/CodeGen/EarlyIfConversion.cpp
  901   if (skipFunction(MF.getFunction()))
 1036   if (skipFunction(MF.getFunction()))
lib/CodeGen/ExecutionDomainFix.cpp
  414   if (skipFunction(mf.getFunction()))
lib/CodeGen/FEntryInserter.cpp
   38       MF.getFunction().getFnAttribute("fentry-call").getValueAsString();
lib/CodeGen/GCRootLowering.cpp
  309   if (!MF.getFunction().hasGC())
  312   FI = &getAnalysis<GCModuleInfo>().getFunctionInfo(MF.getFunction());
lib/CodeGen/GlobalISel/CallLowering.cpp
  171   const Function &F = MF.getFunction();
  183   const Function &F = MF.getFunction();
  403   const Function &F = MF.getFunction();
lib/CodeGen/GlobalISel/CombinerHelper.cpp
  807     return MF.getFunction().hasMinSize();
  808   return MF.getFunction().hasOptSize();
  925   LLVMContext &C = MF.getFunction().getContext();
  951           MF.getFunction().getAttributes(), TLI))
 1039   LLVMContext &C = MF.getFunction().getContext();
 1070           SrcPtrInfo.getAddrSpace(), MF.getFunction().getAttributes(), TLI))
 1147   LLVMContext &C = MF.getFunction().getContext();
 1177           SrcPtrInfo.getAddrSpace(), MF.getFunction().getAttributes(), TLI))
lib/CodeGen/GlobalISel/GISelKnownBits.cpp
   34       DL(MF.getFunction().getParent()->getDataLayout()) {}
lib/CodeGen/GlobalISel/IRTranslator.cpp
  212                                  MF->getFunction().getSubprogram(),
  213                                  &MF->getFunction().getEntryBlock());
  515   Type *PtrIRTy = Type::getInt8PtrTy(MF->getFunction().getContext());
 1173   Value *Global = TLI.getSDagStackGuard(*MF->getFunction().getParent());
 1737   const Constant *PersonalityFn = MF->getFunction().getPersonalityFn();
 2215   const Function &F = MF->getFunction();
lib/CodeGen/GlobalISel/InstructionSelect.cpp
  218                                       MF.getFunction().getSubprogram(),
lib/CodeGen/GlobalISel/Legalizer.cpp
  291                                       MF.getFunction().getSubprogram(),
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  333   const Function &F = MI.getParent()->getParent()->getFunction();
  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/Localizer.cpp
   35   TTI = &getAnalysis<TargetTransformInfoWrapperPass>().getTTI(MF.getFunction());
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/GlobalISel/RegBankSelect.cpp
  658   const Function &F = MF.getFunction();
lib/CodeGen/IfConversion.cpp
  292       if (MF.getFunction().hasMinSize()) {
  438   if (skipFunction(MF.getFunction()) || (PredicateFtor && !PredicateFtor(MF)))
lib/CodeGen/LexicalScopes.cpp
   53   if (Fn.getFunction().getSubprogram()->getUnit()->getEmissionKind() ==
  177     assert(cast<DISubprogram>(Scope)->describes(&MF->getFunction()));
lib/CodeGen/LiveDebugValues.cpp
 1423   if (!MF.getFunction().getSubprogram())
 1428   if (MF.getFunction().getSubprogram()->getUnit()->getEmissionKind() ==
lib/CodeGen/LiveDebugVariables.cpp
  986   if (!mf.getFunction().getSubprogram()) {
lib/CodeGen/LiveRangeShrink.cpp
  108   if (skipFunction(MF.getFunction()))
lib/CodeGen/MIRParser/MIParser.cpp
  615         if (parseIRBlock(BB, MF.getFunction()))
  631         MF.getFunction().getValueSymbolTable()->lookup(Name));
 1492   C = parseConstantValue(Source, Err, *MF.getFunction().getParent(),
 1734     const Module *M = MF.getFunction().getParent();
 1887   Expr = DIExpression::get(MF.getFunction().getContext(), Elements);
 1989   Loc = DILocation::get(MF.getFunction().getContext(), Line, Column, Scope,
 2299   LLVMContext &Ctx = MF.getFunction().getContext();
 2598     V = MF.getFunction().getValueSymbolTable()->lookup(Token.stringValue());
 2857   if (parseOptionalScope(MF.getFunction().getContext(), SSID))
 2985     initSlots2BasicBlocks(MF.getFunction(), Slots2BasicBlocks);
 2990   if (&F == &MF.getFunction())
 3021     initSlots2Values(MF.getFunction(), Slots2Values);
lib/CodeGen/MIRParser/MIRParser.cpp
  631   const Function &F = MF.getFunction();
  813   const auto &M = *MF.getFunction().getParent();
lib/CodeGen/MIRPrinter.cpp
  214   ModuleSlotTracker MST(MF.getFunction().getParent());
  215   MST.incorporateFunction(MF.getFunction());
  797     const LLVMContext &Context = MF->getFunction().getContext();
lib/CodeGen/MachineBasicBlock.cpp
  283   const Function &F = MF->getFunction();
lib/CodeGen/MachineBlockFrequencyInfo.cpp
  233   const Function &F = MBFI->getFunction()->getFunction();
  239   const Function &F = MBFI->getFunction()->getFunction();
lib/CodeGen/MachineBlockPlacement.cpp
 1259   if (!BB->getParent()->getFunction().hasProfileData())
 2028   if (F->getFunction().hasOptSize())
 2439   if (F->getFunction().hasProfileData() || ForceLoopColdBlock) {
 2481       (PreciseRotationCost && F->getFunction().hasProfileData());
 2745   if (F->getFunction().hasMinSize() ||
 2746       (F->getFunction().hasOptSize() && !TLI->alignLoopsWithOptSize()))
 2976   if (skipFunction(MF.getFunction()))
 3021     if (MF.getFunction().hasOptSize())
 3079        F->getFunction().getName().equals(ViewBlockFreqFuncName))) {
lib/CodeGen/MachineCSE.cpp
  872   if (CandidateBB->getParent()->getFunction().hasMinSize())
  882   if (skipFunction(MF.getFunction()))
lib/CodeGen/MachineCombiner.cpp
  642   OptSize = MF.getFunction().hasOptSize();
lib/CodeGen/MachineCopyPropagation.cpp
  641   if (skipFunction(MF.getFunction()))
lib/CodeGen/MachineFunction.cpp
  275   return getFunction().hasFnAttribute("split-stack");
  479   return getFunction().getName();
  512   ModuleSlotTracker MST(getFunction().getParent());
  513   MST.incorporateFunction(getFunction());
lib/CodeGen/MachineFunctionPass.cpp
   85                                             MF.getFunction().getSubprogram(),
lib/CodeGen/MachineInstr.cpp
 1460     F = &MF->getFunction();
 1728       Context = &MF->getFunction().getContext();
lib/CodeGen/MachineLICM.cpp
  305   if (skipFunction(MF.getFunction()))
lib/CodeGen/MachineOptimizationRemarkEmitter.cpp
   53   LLVMContext &Ctx = MF.getFunction().getContext();
   74   if (MF.getFunction().getContext().getDiagnosticsHotnessRequested())
lib/CodeGen/MachineOutliner.cpp
  909       if (C.getMF() && (SP = C.getMF()->getFunction().getSubprogram()))
 1121   const Function &ParentFn = FirstCand.getMF()->getFunction();
lib/CodeGen/MachinePipeliner.cpp
  196   if (skipFunction(mf.getFunction()))
  202   if (mf.getFunction().getAttributes().hasAttribute(
  663     UndefValue::get(Type::getVoidTy(MF.getFunction().getContext()));
lib/CodeGen/MachineRegisterInfo.cpp
  579   if (MF.getFunction().hasFnAttribute(Attribute::UWTable))
lib/CodeGen/MachineScheduler.cpp
  361   if (skipFunction(mf.getFunction()))
  399   if (skipFunction(mf.getFunction()))
lib/CodeGen/MachineSink.cpp
  301   if (skipFunction(MF.getFunction()))
  965   if (MI.getMF()->getFunction().getSubprogram() && MI.isCopy())
 1337   if (skipFunction(MF.getFunction()))
lib/CodeGen/MachineSizeOpts.cpp
   51   if (auto FunctionCount = MF->getFunction().getEntryCount())
   67   if (auto FunctionCount = MF->getFunction().getEntryCount())
lib/CodeGen/MachineVerifier.cpp
  663   const Function &F = MF->getFunction();
 1359         = Intrinsic::getAttributes(MF->getFunction().getContext(),
lib/CodeGen/OptimizePHIs.cpp
   74   if (skipFunction(Fn.getFunction()))
lib/CodeGen/PatchableFunction.cpp
   57   if (!MF.getFunction().hasFnAttribute("patchable-function"))
   61   Attribute PatchAttr = MF.getFunction().getFnAttribute("patchable-function");
lib/CodeGen/PeepholeOptimizer.cpp
 1594   if (skipFunction(MF.getFunction()))
lib/CodeGen/PostRASchedulerList.cpp
  282   if (skipFunction(Fn.getFunction()))
lib/CodeGen/PrologEpilogInserter.cpp
  216   const Function &F = MF.getFunction();
  281                                              MF.getFunction().getSubprogram(),
  598   const Function &F = MF.getFunction();
 1124   if (MF.getFunction().getCallingConv() == CallingConv::HiPE)
lib/CodeGen/ReachingDefAnalysis.cpp
  135   if (skipFunction(mf.getFunction()))
lib/CodeGen/RegAllocGreedy.cpp
 2776   LLVMContext &Ctx = MF->getFunction().getContext();
lib/CodeGen/RegAllocPBQP.cpp
  818   const Function &F = MF.getFunction();
lib/CodeGen/RegUsageInfoCollector.cpp
   86   switch (MF.getFunction().getCallingConv()) {
  118   if (MF.getFunction().use_empty()) {
  131   const Function &F = MF.getFunction();
lib/CodeGen/RegUsageInfoPropagate.cpp
  102   const Module &M = *MF.getFunction().getParent();
lib/CodeGen/ResetMachineFunctionPass.cpp
   69           const Function &F = MF.getFunction();
lib/CodeGen/ScheduleDAGInstrs.cpp
  116                              Type::getVoidTy(mf.getFunction().getContext()))), Topo(SUnits, &ExitSU) {
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  220       ForCodeSize = DAG.getMachineFunction().getFunction().hasOptSize();
 3678   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 3758   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 3816   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 3858   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 3917   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
12772     if (DAG.getMachineFunction().getFunction().hasOptSize())
12793   const Function &F = DAG.getMachineFunction().getFunction();
15496   bool NoVectors = DAG.getMachineFunction().getFunction().hasFnAttribute(
20192   if (DAG.getMachineFunction().getFunction().hasMinSize())
20233   if (DAG.getMachineFunction().getFunction().hasMinSize())
20441         const Function &F = DAG.getMachineFunction().getFunction();
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
 2050   const Function &F = DAG.getMachineFunction().getFunction();
 3164                           DAG.getMachineFunction().getFunction().hasOptSize()))
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 1015   Context = &MF->getFunction().getContext();
 1430     Alignment = MF->getFunction().hasOptSize()
 5740     return MF.getFunction().hasMinSize();
 5741   return MF.getFunction().hasOptSize();
 5808           SrcPtrInfo.getAddrSpace(), MF.getFunction().getAttributes()))
 5990           MF.getFunction().getAttributes()))
 6091           MF.getFunction().getAttributes()))
 8645   auto *Module = MF->getFunction().getParent();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1914   bool isVarArg = DAG.getMachineFunction().getFunction().isVarArg();
 1916     DAG.getMachineFunction().getFunction().getCallingConv();
 2480   Value *Global = TLI.getSDagStackGuard(*MF.getFunction().getParent());
 2516   const Module &M = *ParentBB->getParent()->getFunction().getParent();
 5351     const Function &F = DAG.getMachineFunction().getFunction();
 6369     const Module &M = *MF.getFunction().getParent();
 6466     assert(DAG.getMachineFunction().getFunction().hasGC() &&
10449       SwitchMBB->getParent()->getFunction().hasMinSize())
10572         !DefaultMBB->getParent()->getFunction().hasMinSize()) {
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  472     MST.incorporateFunction(MF->getFunction());
  481     return printMemOperand(OS, MMO, MF, MF->getFunction().getParent(),
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  221                         << IS.MF->getFunction().getName() << "\n");
  238                         << IS.MF->getFunction().getName() << "\n");
  420   const Function &Fn = mf.getFunction();
lib/CodeGen/SelectionDAG/TargetLowering.cpp
   53   const Function &F = DAG.getMachineFunction().getFunction();
 3862     AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
 4624   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
lib/CodeGen/ShrinkWrap.cpp
  463   if (skipFunction(MF.getFunction()) || MF.empty() || !isShrinkWrapEnabled(MF))
  480                              MF.getFunction().getSubprogram(), &MF.front());
  604            !(MF.getFunction().hasFnAttribute(Attribute::SanitizeAddress) ||
  605              MF.getFunction().hasFnAttribute(Attribute::SanitizeThread) ||
  606              MF.getFunction().hasFnAttribute(Attribute::SanitizeMemory) ||
  607              MF.getFunction().hasFnAttribute(Attribute::SanitizeHWAddress));
lib/CodeGen/StackColoring.cpp
 1178       skipFunction(Func.getFunction())) {
lib/CodeGen/StackSlotColoring.cpp
  488   if (skipFunction(MF.getFunction()))
lib/CodeGen/SwiftErrorValueTracking.cpp
   81   Fn = &MF->getFunction();
lib/CodeGen/TailDuplication.cpp
   73   if (skipFunction(MF.getFunction()))
lib/CodeGen/TailDuplicator.cpp
  560       MF->getFunction().hasOptSize())
lib/CodeGen/TargetFrameLoweringImpl.cpp
   34   assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) &&
   35          MF.getFunction().hasFnAttribute(Attribute::NoUnwind) &&
   36          !MF.getFunction().hasFnAttribute(Attribute::UWTable));
   89       isSafeForNoCSROpt(MF.getFunction()) &&
   90       isProfitableForNoCSROpt(MF.getFunction()))
  101   if (MF.getFunction().hasFnAttribute(Attribute::Naked))
  111   if (MF.getFunction().hasFnAttribute(Attribute::NoReturn) &&
  112         MF.getFunction().hasFnAttribute(Attribute::NoUnwind) &&
  113         !MF.getFunction().hasFnAttribute(Attribute::UWTable) &&
  131   if (LLVM_UNLIKELY(MF.getFunction().getCallingConv() == CallingConv::HHVM))
lib/CodeGen/TargetInstrInfo.cpp
 1127   DIExpression *Expr = DIExpression::get(MF->getFunction().getContext(), {});;
lib/CodeGen/TargetLoweringBase.cpp
 1824   const Function &F = MF.getFunction();
lib/CodeGen/TargetOptionsImpl.cpp
   29   const Function &F = MF.getFunction();
lib/CodeGen/TargetRegisterInfo.cpp
  433       getCallPreservedMask(MF, MF.getFunction().getCallingConv());
  443   return !MF.getFunction().hasFnAttribute("no-realign-stack");
  450   const Function &F = MF.getFunction();
lib/CodeGen/TwoAddressInstructionPass.cpp
 1682   if (skipFunction(Func.getFunction()))
lib/CodeGen/VirtRegMap.cpp
  442         MF->getFunction().getContext().emitError(
lib/CodeGen/XRayInstrumentation.cpp
  145   auto &F = MF.getFunction();
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
  310   if (skipFunction(F.getFunction()))
lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp
  395   if (skipFunction(mf.getFunction()))
lib/Target/AArch64/AArch64AsmPrinter.cpp
  128       bool Internal = MF.getFunction().hasInternalLinkage();
  693   const Function &F = MF->getFunction();
lib/Target/AArch64/AArch64BranchTargets.cpp
   60   const Function &F = MF.getFunction();
lib/Target/AArch64/AArch64CallLowering.cpp
  267     const Function &F = MF.getFunction();
  386   const Function &F = MF.getFunction();
  524   const Function &CallerF = MF.getFunction();
  568   const Function &CallerF = MF.getFunction();
  671   const Function &CallerF = MF.getFunction();
  782   const Function &F = MF.getFunction();
  924   const Function &F = MF.getFunction();
lib/Target/AArch64/AArch64CleanupLocalDynamicTLSPass.cpp
   44     if (skipFunction(MF.getFunction()))
lib/Target/AArch64/AArch64CollectLOH.cpp
  503   if (skipFunction(MF.getFunction()))
lib/Target/AArch64/AArch64CompressJumpTables.cpp
  144   if (ST.force32BitJumpTables() && !MF->getFunction().hasMinSize())
lib/Target/AArch64/AArch64CondBrTuning.cpp
  292   if (skipFunction(MF.getFunction()))
lib/Target/AArch64/AArch64ConditionOptimizer.cpp
  331   if (skipFunction(MF.getFunction()))
lib/Target/AArch64/AArch64ConditionalCompares.cpp
  931   if (skipFunction(MF.getFunction()))
  943   MinSize = MF.getFunction().hasMinSize();
lib/Target/AArch64/AArch64DeadRegisterDefinitionsPass.cpp
  188   if (skipFunction(MF.getFunction()))
lib/Target/AArch64/AArch64FalkorHWPFFix.cpp
  819   if (skipFunction(Fn.getFunction()))
lib/Target/AArch64/AArch64FastISel.cpp
 2297   if (FuncInfo.MF->getFunction().hasFnAttribute(
lib/Target/AArch64/AArch64FrameLowering.cpp
  220   if (MF.getFunction().hasFnAttribute(Attribute::NoRedZone))
  324   const Function &F = MF.getFunction();
  431   const Function &F = MF.getFunction();
  450   if (MF.getFunction().hasOptSize())
  817   const Function &F = MF.getFunction();
  828   const Function &F = MF.getFunction();
  841   const Function &F = MF.getFunction();
  885   if (MF.getFunction().getCallingConv() == CallingConv::GHC)
  941       Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv());
 1352   if (MF.getFunction().getCallingConv() == CallingConv::GHC)
 1403       Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv());
 1575              MF.getFunction().hasFnAttribute(Attribute::SanitizeHWAddress),
 1589       Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv());
 1693             Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv()) &&
 1769   AttributeList Attrs = MF.getFunction().getAttributes();
 1836   CallingConv::ID CC = MF.getFunction().getCallingConv();
 1889         MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack)) {
 1973     if (!MF.getFunction().hasFnAttribute(Attribute::NoUnwind)) {
 2178   if (MF.getFunction().getCallingConv() == CallingConv::GHC)
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
   55     ForCodeSize = MF.getFunction().hasOptSize();
lib/Target/AArch64/AArch64ISelLowering.cpp
 1384              BB->getParent()->getFunction().getPersonalityFn())) &&
 3140   bool IsWin64 = Subtarget->isCallingConvWin64(MF.getFunction().getCallingConv());
 3155   Function::const_arg_iterator CurOrigArg = MF.getFunction().arg_begin();
 3399   bool IsWin64 = Subtarget->isCallingConvWin64(MF.getFunction().getCallingConv());
 3567   const Function &CallerF = MF.getFunction();
 4689       !MF.getFunction().hasFnAttribute(Attribute::SpeculativeLoadHardening);
 4886   if (DAG.getMachineFunction().getFunction().hasFnAttribute(
 5415   if (Subtarget->isCallingConvWin64(MF.getFunction().getCallingConv()))
 8325   if (DAG.getMachineFunction().getFunction().hasFnAttribute(
 9336   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
10822   if (DAG.getMachineFunction().getFunction().hasMinSize())
11402   if (MF.getFunction().hasFnAttribute(Attribute::SpeculativeLoadHardening))
12362   if (DAG.getMachineFunction().getFunction().hasMinSize() &&
12400     assert(Entry->getParent()->getFunction().hasFnAttribute(
lib/Target/AArch64/AArch64ISelLowering.h
  472     bool NoFloat = DAG.getMachineFunction().getFunction().hasFnAttribute(
  536     return MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS &&
  537            MF->getFunction().hasFnAttribute(Attribute::NoUnwind);
lib/Target/AArch64/AArch64InstrInfo.cpp
 1959                      MI.getMF()->getFunction().needsUnwindTableEntry();
 5113     return C.getMF()->getFunction().hasFnAttribute("branch-target-enforcement");
 5281   const Function &F = MF.getFunction();
 5702   return MF.getFunction().hasMinSize();
lib/Target/AArch64/AArch64InstructionSelector.cpp
   64         !MF.getFunction().hasFnAttribute(Attribute::SpeculativeLoadHardening);
 1411         !MF.getFunction().hasFnAttribute(Attribute::SpeculativeLoadHardening);
 3660   LLVMContext &Ctx = MF.getFunction().getContext();
 4153       MI.getParent()->getParent()->getFunction().hasMinSize())
lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
 1815   if (skipFunction(Fn.getFunction()))
lib/Target/AArch64/AArch64MachineFunctionInfo.h
  131     if (MF.getFunction().hasFnAttribute(Attribute::NoRedZone))
lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp
  148   const Function &F = MF.getFunction();
lib/Target/AArch64/AArch64RedundantCopyElimination.cpp
  472   if (skipFunction(MF.getFunction()))
lib/Target/AArch64/AArch64RegisterInfo.cpp
   46   if (MF->getFunction().getCallingConv() == CallingConv::CFGuard_Check)
   50   if (MF->getFunction().getCallingConv() == CallingConv::GHC)
   54   if (MF->getFunction().getCallingConv() == CallingConv::AnyReg)
   56   if (MF->getFunction().getCallingConv() == CallingConv::AArch64_VectorCall)
   58   if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS)
   64       MF->getFunction().getAttributes().hasAttrSomewhere(
   67   if (MF->getFunction().getCallingConv() == CallingConv::PreserveMost)
   77   if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS &&
  116   bool SCS = MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack);
  133       MF.getFunction().getAttributes().hasAttrSomewhere(Attribute::SwiftError))
  214   if (MF.getFunction().hasFnAttribute(Attribute::SpeculativeLoadHardening))
  234   const Function &F = MF.getFunction();
lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
  692   if (skipFunction(MF.getFunction()))
lib/Target/AArch64/AArch64SpeculationHardening.cpp
  653   if (!MF.getFunction().hasFnAttribute(Attribute::SpeculativeLoadHardening))
lib/Target/AArch64/AArch64StorePairSuppress.cpp
  122   if (skipFunction(MF.getFunction()))
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  198   const Function &F = MF->getFunction();
  237   getNameWithPrefix(KernelName, &MF->getFunction());
  260   if (MFI->isEntryFunction() && STM.isAmdHsaOrMesa(MF->getFunction())) {
  262     getNameWithPrefix(SymbolName, &MF->getFunction()),
  444       std::make_pair(&MF.getFunction(), SIFunctionResourceInfo()));
  481       SIFunctionResourceInfo &Info = CallGraphResourceInfo[&MF.getFunction()];
  932     DiagnosticInfoStackSize DiagStackSize(MF.getFunction(),
  934     MF.getFunction().getContext().diagnose(DiagStackSize);
  951       LLVMContext &Ctx = MF.getFunction().getContext();
  952       DiagnosticInfoResourceLimit Diag(MF.getFunction(),
  968   for (auto &Arg : MF.getFunction().args()) {
  991       LLVMContext &Ctx = MF.getFunction().getContext();
  992       DiagnosticInfoResourceLimit Diag(MF.getFunction(),
 1011     LLVMContext &Ctx = MF.getFunction().getContext();
 1012     DiagnosticInfoResourceLimit Diag(MF.getFunction(), "user SGPRs",
 1018     LLVMContext &Ctx = MF.getFunction().getContext();
 1019     DiagnosticInfoResourceLimit Diag(MF.getFunction(), "local memory",
 1125   unsigned RsrcReg = getRsrcReg(MF.getFunction().getCallingConv());
 1127   if (AMDGPU::isCompute(MF.getFunction().getCallingConv())) {
 1149   if (MF.getFunction().getCallingConv() == CallingConv::AMDGPU_PS) {
 1172   auto CC = MF.getFunction().getCallingConv();
 1175   MD->setEntryPoint(CC, MF.getFunction().getName());
 1178   if (AMDGPU::isCompute(MF.getFunction().getCallingConv())) {
 1189   if (MF.getFunction().getCallingConv() == CallingConv::AMDGPU_PS) {
 1197     MD->setWave32(MF.getFunction().getCallingConv());
 1217   const Function &F = MF.getFunction();
lib/Target/AMDGPU/AMDGPUCallLowering.cpp
  268   const auto &F = MF.getFunction();
  302   CallingConv::ID CC = B.getMF().getFunction().getCallingConv();
  347   const Function &F = MF.getFunction();
  369   const Function &F = MF.getFunction();
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
  216   const Function &F = MF.getFunction();
  467   auto &Func = MF.getFunction();
  883   const Function &F = MF.getFunction();
  933   auto &Func = MF.getFunction();
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  912   const Function &Fn = MF.getFunction();
 1088   const Function &Fn = DAG.getMachineFunction().getFunction();
 1116   const Function &Fn = DAG.getMachineFunction().getFunction();
 1202       const Function &Fn = DAG.getMachineFunction().getFunction();
 1219   const Function &Fn = DAG.getMachineFunction().getFunction();
 4177       AMDGPUSubtarget::get(getTargetMachine(), MF.getFunction());
 4178   unsigned ExplicitArgOffset = ST.getExplicitKernelArgOffset(MF.getFunction());
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
 1190                                Type::getInt8Ty(MF.getFunction().getContext()),
 1648       const Function &Fn = MF.getFunction();
 1661     const Function &Fn = MF.getFunction();
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/AMDGPUMachineFunction.cpp
   21   IsEntryFunction(AMDGPU::isEntryFunctionCC(MF.getFunction().getCallingConv())),
   29   const Function &F = MF.getFunction();
lib/Target/AMDGPU/AMDGPURegisterInfo.cpp
   97   CallingConv::ID CC = MF->getFunction().getCallingConv();
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  340   return getOccupancyWithLocalMemSize(MFI->getLDSSize(), MF.getFunction());
  628              getOccupancyWithLocalMemSize(LDSSize, MF.getFunction()));
  637   const Function &F = MF.getFunction();
  687   const Function &F = MF.getFunction();
lib/Target/AMDGPU/AMDILCFGStructurizer.cpp
 1591   LLVMContext &Ctx = LoopHeader->getParent()->getFunction().getContext();
lib/Target/AMDGPU/GCNDPPCombine.cpp
  556   if (!ST.hasDPP() || skipFunction(MF.getFunction()))
lib/Target/AMDGPU/GCNRegBankReassign.cpp
  729   if (!ST->hasRegisterBanking() || skipFunction(MF.getFunction()))
lib/Target/AMDGPU/R600AsmPrinter.cpp
   73     switch (MF.getFunction().getCallingConv()) {
   82     switch (MF.getFunction().getCallingConv()) {
   97   if (AMDGPU::isCompute(MF.getFunction().getCallingConv())) {
lib/Target/AMDGPU/R600ClauseMergePass.cpp
  183   if (skipFunction(MF.getFunction()))
lib/Target/AMDGPU/R600ControlFlowFinalizer.cpp
  515     CFStack CFStack(ST, MF.getFunction().getCallingConv());
  522       if (MF.getFunction().getCallingConv() == CallingConv::AMDGPU_VS) {
lib/Target/AMDGPU/R600InstrInfo.cpp
  205   return !AMDGPU::isCompute(MF->getFunction().getCallingConv()) &&
  215   return (AMDGPU::isCompute(MF->getFunction().getCallingConv()) &&
lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp
  334   if (skipFunction(Fn.getFunction()))
lib/Target/AMDGPU/SIFixupVectorISel.cpp
  220   if (skipFunction(MF.getFunction()))
lib/Target/AMDGPU/SIFoldOperands.cpp
 1443   if (skipFunction(MF.getFunction()))
lib/Target/AMDGPU/SIFormMemoryClauses.cpp
  305   if (skipFunction(MF.getFunction()))
  323       MF.getFunction(), "amdgpu-max-memory-clause", MaxClause);
lib/Target/AMDGPU/SIFrameLowering.cpp
  408   const Function &F = MF.getFunction();
  540   const Function &Fn = MF.getFunction();
  562       switch (MF.getFunction().getCallingConv()) {
  582       PointerType::get(Type::getInt64Ty(MF.getFunction().getContext()),
  617       if (AMDGPU::isCompute(MF.getFunction().getCallingConv())) {
  627           PointerType::get(Type::getInt64Ty(MF.getFunction().getContext()),
lib/Target/AMDGPU/SIISelLowering.cpp
 1887   if (RequiresStackAccess && ST.isAmdHsaOrMesa(MF.getFunction())) {
 1921       assert(AMDGPU::isShader(MF.getFunction().getCallingConv()));
 2024   const Function &Fn = MF.getFunction();
 2025   FunctionType *FType = MF.getFunction().getFunctionType();
 2593   const Function &CallerF = MF.getFunction();
 2711   if (AMDGPU::isShader(MF.getFunction().getCallingConv())) {
 4635     DiagnosticInfoUnsupported NoTrap(MF.getFunction(),
 4639     LLVMContext &Ctx = MF.getFunction().getContext();
 4753     MF.getFunction(), "invalid addrspacecast", SL.getDebugLoc());
 5137   DiagnosticInfoUnsupported BadIntrin(DAG.getMachineFunction().getFunction(),
 5146   DiagnosticInfoUnsupported BadIntrin(DAG.getMachineFunction().getFunction(),
 5717     if (getSubtarget()->isAmdHsaOrMesa(MF.getFunction()))
 5724     if (!Subtarget->isAmdHsaOrMesa(MF.getFunction())) {
 5726           MF.getFunction(), "unsupported hsa intrinsic without hsa target",
 5946       MF.getFunction(), "intrinsic not supported on subtarget",
 6060     const Module *M = MF.getFunction().getParent();
 6160     switch (DAG.getMachineFunction().getFunction().getCallingConv()) {
 6824       unsigned WGSize = ST.getFlatWorkGroupSizes(MF.getFunction()).second;
lib/Target/AMDGPU/SIInsertSkips.cpp
  153   if (MF->getFunction().getCallingConv() != CallingConv::AMDGPU_PS ||
lib/Target/AMDGPU/SIInstrInfo.cpp
  419   const DataLayout &DL = MF.getFunction().getParent()->getDataLayout();
  514   DiagnosticInfoUnsupported IllegalCopy(MF->getFunction(),
  517   LLVMContext &C = MF->getFunction().getContext();
 1249     if (!AMDGPU::isShader(MF->getFunction().getCallingConv()) &&
 4649       (AMDGPU::isShader(MF.getFunction().getCallingConv()) &&
lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
 1830   if (skipFunction(MF.getFunction()))
lib/Target/AMDGPU/SILowerSGPRSpills.cpp
  186   const Function &F = MF.getFunction();
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
   31     Mode(MF.getFunction()),
   52   const Function &F = MF.getFunction();
  185                  MF.getFunction()));
  357       TRI->getCallPreservedMask(MF, MF.getFunction().getCallingConv());
lib/Target/AMDGPU/SIMemoryLegalizer.cpp
  446   const Function &Func = MI->getParent()->getParent()->getFunction();
lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
  268   if (skipFunction(MF.getFunction()))
lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
  294   if (skipFunction(MF.getFunction()))
lib/Target/AMDGPU/SIPeepholeSDWA.cpp
 1207   if (!ST.hasSDWA() || skipFunction(MF.getFunction()))
lib/Target/AMDGPU/SIRegisterInfo.cpp
 1738                                                        MF.getFunction());
lib/Target/AMDGPU/SIShrinkInstructions.cpp
  550   if (skipFunction(MF.getFunction()))
lib/Target/AMDGPU/SIWholeQuadMode.cpp
  313   bool WQMOutputs = MF.getFunction().hasFnAttribute("amdgpu-ps-wqm-outputs");
  881   CallingConv = MF.getFunction().getCallingConv();
lib/Target/ARC/ARCFrameLowering.cpp
  134   if (MF.getFunction().isVarArg()) {
  321   if (MF.getFunction().isVarArg()) {
lib/Target/ARC/ARCOptAddrMode.cpp
  487   if (skipFunction(MF.getFunction()))
lib/Target/ARC/ARCRegisterInfo.cpp
  131   return MF.getMMI().hasDebugInfo() || MF.getFunction().needsUnwindTableEntry();
lib/Target/ARM/A15SDOptimizer.cpp
  656   if (skipFunction(Fn.getFunction()))
lib/Target/ARM/ARMAsmPrinter.cpp
  112   const Function &F = MF.getFunction();
lib/Target/ARM/ARMBaseInstrInfo.cpp
 1673       Create(MF.getFunction().getContext(),
 1680     NewCPV = ARMConstantPoolConstant::Create(&MF.getFunction(), PCLabelId,
 1684       Create(MF.getFunction().getContext(),
 2002   if (MBB.getParent()->getFunction().hasOptSize()) {
 2031   if (Subtarget.isThumb2() && TBB.getParent()->getFunction().hasMinSize()) {
 4314       if (MF->getFunction().hasFnAttribute(Attribute::OptimizeForSize))
lib/Target/ARM/ARMBaseRegisterInfo.cpp
   73   const Function &F = MF->getFunction();
  115   if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS &&
  131       MF.getFunction().getAttributes().hasAttrSomewhere(Attribute::SwiftError))
  466         ConstantInt::get(Type::getInt32Ty(MF.getFunction().getContext()), Val);
lib/Target/ARM/ARMCallLowering.cpp
  196   const Function &F = MF.getFunction();
  245   const auto &F = MF.getFunction();
lib/Target/ARM/ARMExpandPseudoInsts.cpp
 1417             ARMConstantPoolSymbol::Create(MF->getFunction().getContext(),
lib/Target/ARM/ARMFastISel.cpp
 2952   LLVMContext *Context = &MF->getFunction().getContext();
lib/Target/ARM/ARMFrameLowering.cpp
   92   assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) &&
   93          MF.getFunction().hasFnAttribute(Attribute::NoUnwind) &&
   94          !MF.getFunction().hasFnAttribute(Attribute::UWTable));
  217   const Function &F = MF.getFunction();
  389   if (MF.getFunction().getCallingConv() == CallingConv::GHC)
  467     assert(getMaxFPOffset(MF.getFunction(), *AFI) <= FPOffset &&
  787   if (MF.getFunction().getCallingConv() == CallingConv::GHC)
 1596   if (MF.getFunction().hasFnAttribute(Attribute::Naked))
 1861   int MaxFPOffset = getMaxFPOffset(MF.getFunction(), *AFI);
 2254   if (MF.getFunction().isVarArg())
 2410         MF.getFunction().getContext(), "__STACK_LIMIT", PCLabelId, 0);
lib/Target/ARM/ARMISelLowering.cpp
 2068   auto Attr = MF.getFunction().getFnAttribute("disable-tail-calls");
 2093         MF.getFunction().hasStructRetAttr(), Outs, OutVals, Ins, DAG,
 2271   const Module *Mod = MF.getFunction().getParent();
 2559   const Function &CallerF = MF.getFunction();
 2689   const Function &F = MF.getFunction();
 2858   if (DAG.getMachineFunction().getFunction().hasFnAttribute("interrupt") &&
 2996                                  getFunction().getParent());
 3105       getTargetMachine().getSubtargetImpl(F.getFunction())->getRegisterInfo();
 3327   const Function &F = DAG.getMachineFunction().getFunction();
 3687       ARMConstantPoolConstant::Create(&MF.getFunction(), ARMPCLabelIndex,
 3968   Function::const_arg_iterator CurOrigArg = MF.getFunction().arg_begin();
 9131   const Function &F = DAG.getMachineFunction().getFunction();
 9348   const Function &F = MF->getFunction();
 9642       Type *Int32Ty = Type::getInt32Ty(MF->getFunction().getContext());
 9743       Type *Int32Ty = Type::getInt32Ty(MF->getFunction().getContext());
10039     if (!MF->getFunction().hasFnAttribute(Attribute::NoImplicitFloat) &&
10145     Type *Int32Ty = Type::getInt32Ty(MF->getFunction().getContext());
16069   if (DAG.getMachineFunction().getFunction().hasFnAttribute(
17121     assert(Entry->getParent()->getFunction().hasFnAttribute(
lib/Target/ARM/ARMISelLowering.h
  762       return MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS &&
  763           MF->getFunction().hasFnAttribute(Attribute::NoUnwind);
lib/Target/ARM/ARMLegalizerInfo.cpp
  367   LLVMContext &Ctx = MIRBuilder.getMF().getFunction().getContext();
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
 1997   if (skipFunction(Fn.getFunction()))
 2084   if (AssumeMisalignedLoadStores || skipFunction(Fn.getFunction()))
 2180   const Function &Func = MF->getFunction();
lib/Target/ARM/ARMOptimizeBarriersPass.cpp
   51   if (skipFunction(MF.getFunction()))
lib/Target/ARM/ARMSubtarget.cpp
  446   if (isThumb2() && MF.getFunction().hasMinSize())
  461   return isThumb2() && MF.getFunction().hasMinSize() &&
lib/Target/ARM/MLxExpansionPass.cpp
  371   if (skipFunction(Fn.getFunction()))
lib/Target/ARM/Thumb2SizeReduction.cpp
 1120   if (PredicateFtor && !PredicateFtor(MF.getFunction()))
 1130   OptimizeSize = MF.getFunction().hasOptSize();
lib/Target/ARM/ThumbRegisterInfo.cpp
   72           Type::getInt32Ty(MBB.getParent()->getFunction().getContext()), Val);
   91            Type::getInt32Ty(MBB.getParent()->getFunction().getContext()), Val);
lib/Target/AVR/AVRFrameLowering.cpp
   56   CallingConv::ID CallConv = MF.getFunction().getCallingConv();
  146   CallingConv::ID CallConv = MF.getFunction().getCallingConv();
lib/Target/AVR/AVRISelLowering.cpp
 1062   analyzeArguments(nullptr, &MF.getFunction(), &DL, 0, &Ins, CallConv, ArgLocs, CCInfo,
 1413   if (MF.getFunction().getAttributes().hasAttribute(
lib/Target/AVR/AVRRegisterInfo.cpp
   37   CallingConv::ID CC = MF->getFunction().getCallingConv();
lib/Target/BPF/BPFISelLowering.cpp
   42       DiagnosticInfoUnsupported(MF.getFunction(), Msg, DL.getDebugLoc()));
   54       DiagnosticInfoUnsupported(MF.getFunction(), Str, DL.getDebugLoc()));
  266   if (IsVarArg || MF.getFunction().hasStructRetAttr()) {
  421   if (MF.getFunction().getReturnType()->isAggregateType()) {
lib/Target/BPF/BPFMIChecking.cpp
   50     if (!skipFunction(MF.getFunction())) {
lib/Target/BPF/BPFMIPeephole.cpp
   61     if (skipFunction(MF.getFunction()))
  220     if (skipFunction(MF.getFunction()))
  316     if (skipFunction(MF.getFunction()))
lib/Target/BPF/BPFMISimplifyPatchable.cpp
   60     if (!skipFunction(MF.getFunction())) {
lib/Target/BPF/BPFRegisterInfo.cpp
   47       const Function &F = MF.getFunction();
lib/Target/BPF/BTFDebug.cpp
  847   auto *SP = MF->getFunction().getSubprogram();
 1033       auto *S = MI->getMF()->getFunction().getSubprogram();
lib/Target/Hexagon/HexagonBitSimplify.cpp
 2759   if (skipFunction(MF.getFunction()))
 3310   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonBitTracker.cpp
   63   for (const Argument &Arg : MF.getFunction().args()) {
lib/Target/Hexagon/HexagonCFGOptimizer.cpp
  116   if (skipFunction(Fn.getFunction()))
lib/Target/Hexagon/HexagonConstExtenders.cpp
 1945   if (skipFunction(MF.getFunction()))
 1947   if (MF.getFunction().hasPersonalityFn()) {
lib/Target/Hexagon/HexagonConstPropagation.cpp
  285         MF(Fn), CX(Fn.getFunction().getContext()) {}
 1893       const Function &F = MF.getFunction();
lib/Target/Hexagon/HexagonCopyToCombine.cpp
  461   if (skipFunction(MF.getFunction()))
  473   const Function &F = MF.getFunction();
lib/Target/Hexagon/HexagonEarlyIfConv.cpp
 1048   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonExpandCondsets.cpp
 1251   if (skipFunction(MF.getFunction()))
 1261                         MF.getFunction().getParent()));
 1289       LIS->print(dbgs() << "After coalescing\n", MF.getFunction().getParent()));
 1306       LIS->print(dbgs() << "After splitting\n", MF.getFunction().getParent()));
 1315                         MF.getFunction().getParent()));
 1323                  MF.getFunction().getParent());
lib/Target/Hexagon/HexagonFixupHwLoops.cpp
   92   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonFrameLowering.cpp
  227                  MF.getFunction().needsUnwindTableEntry();
  377     return MF.getFunction().hasOptNone() ||
  382     const Function &F = MF.getFunction();
  387     return MF.getFunction().hasMinSize();
  556   const auto &F = MF.getFunction();
  572   const auto &F = MF.getFunction();
  993   if (MF.getFunction().hasFnAttribute(Attribute::Naked))
lib/Target/Hexagon/HexagonGenInsert.cpp
 1500   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonGenMux.cpp
  378   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonGenPredicate.cpp
  496   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonHardwareLoops.cpp
  379   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
 1860   const Function &CurF = CurDAG->getMachineFunction().getFunction();
lib/Target/Hexagon/HexagonISelLowering.cpp
  348   auto Attr = MF.getFunction().getFnAttribute("disable-tail-calls");
  353     bool StructAttrFlag = MF.getFunction().hasStructRetAttr();
  702                         MF.getFunction().getFunctionType()->getNumParams());
 3124   const Function &CallerF = DAG.getMachineFunction().getFunction();
lib/Target/Hexagon/HexagonNewValueJump.cpp
  453   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonOptAddrMode.cpp
  778   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonPeephole.cpp
  110   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonRDFOpt.cpp
  282   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonSplitDouble.cpp
 1189   if (skipFunction(MF.getFunction()))
lib/Target/Hexagon/HexagonStoreWidening.cpp
  587   if (skipFunction(MFn.getFunction()))
lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
  217                  skipFunction(MF.getFunction());
lib/Target/Hexagon/RDFGraph.cpp
  750   const Function &F = MF.getFunction();
lib/Target/Lanai/LanaiISelLowering.cpp
  513   if (MF.getFunction().hasStructRetAttr()) {
  568   if (DAG.getMachineFunction().getFunction().hasStructRetAttr()) {
lib/Target/MSP430/MSP430AsmPrinter.cpp
  161   const auto *F = &ISR.getFunction();
  178   if (MF.getFunction().hasFnAttribute("interrupt")) {
lib/Target/MSP430/MSP430ISelLowering.cpp
  758   if (MF.getFunction().hasStructRetAttr()) {
lib/Target/MSP430/MSP430RegisterInfo.cpp
   40   const Function* F = &MF->getFunction();
lib/Target/Mips/MipsAsmPrinter.cpp
  428   bool IsNakedFunction = MF->getFunction().hasFnAttribute(Attribute::Naked);
lib/Target/Mips/MipsCCState.cpp
  103         originalTypeIsF128(MF.getFunction().getReturnType(), nullptr));
  105         MF.getFunction().getReturnType()->isFloatingPointTy());
  151     Function::const_arg_iterator FuncArg = MF.getFunction().arg_begin();
  163     assert(Ins[i].getOrigArgIndex() < MF.getFunction().arg_size());
lib/Target/Mips/MipsCallLowering.cpp
   59   const Function &F = MIRBuilder.getMF().getFunction();
  424     const Function &F = MF.getFunction();
  556   const Function &F = MF.getFunction();
lib/Target/Mips/MipsConstantIslandPass.cpp
 1657               Type::getInt32Ty(MF->getFunction().getContext());
lib/Target/Mips/MipsISelLowering.cpp
 3482   const Function &Func = DAG.getMachineFunction().getFunction();
 3722   if (MF.getFunction().hasStructRetAttr()) {
 3744   if (DAG.getMachineFunction().getFunction().hasFnAttribute("interrupt"))
lib/Target/Mips/MipsMachineFunction.cpp
   87     const GlobalValue *FName = &MF.getFunction();
  116     const GlobalValue *FName = &MF.getFunction();
lib/Target/Mips/MipsRegisterInfo.cpp
   95   const Function &F = MF->getFunction();
  230     if (MF.getFunction().hasFnAttribute("saveS2") || MipsFI->hasSaveS2())
lib/Target/Mips/MipsSEFrameLowering.cpp
  442   if (MF.getFunction().hasFnAttribute("interrupt"))
  590       MF.getFunction().getFnAttribute("interrupt").getValueAsString();
  734   if (MF.getFunction().hasFnAttribute("interrupt"))
  816     const Function &Func = MBB.getParent()->getFunction();
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
 1226               IntegerType::get(MF->getFunction().getContext(), 32);
lib/Target/Mips/MipsSEInstrInfo.cpp
  301   const Function &Func = MBB.getParent()->getFunction();
  332   const Function &Func = MBB.getParent()->getFunction();
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  403   const Function &F = MF.getFunction();
  448     emitGlobals(*MF->getFunction().getParent());
  454   F = &MF->getFunction();
  495   emitDemotedVars(&MF->getFunction(), O);
 1619   const Function &F = MF.getFunction();
 2010                      !MF ? nullptr : MF->getFunction().getParent());
 2024                        !MF ? nullptr : MF->getFunction().getParent());
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
  700   bool IsKernelFn = isKernelFunction(F->getFunction());
lib/Target/NVPTX/NVPTXISelLowering.cpp
  124     const Function &F = MF.getFunction();
 2470   const Function *F = &MF.getFunction();
 2666   Type *RetTy = MF.getFunction().getReturnType();
 4327   const Function &F = MF.getFunction();
lib/Target/NVPTX/NVPTXPeephole.cpp
  127   if (skipFunction(MF.getFunction()))
lib/Target/PowerPC/PPCAsmPrinter.cpp
  482   const Module *M = MF->getFunction().getParent();
  541   const Module *M = MF->getFunction().getParent();
 1362        MF->getFunction().getParent()->getPICLevel() == PICLevel::SmallPIC))
 1728   CurrentFnDescSym = getSymbol(&MF.getFunction());
lib/Target/PowerPC/PPCBranchCoalescing.cpp
  717   if (skipFunction(MF.getFunction()) || MF.empty())
lib/Target/PowerPC/PPCEarlyReturn.cpp
  171       if (skipFunction(MF.getFunction()))
lib/Target/PowerPC/PPCFrameLowering.cpp
  489   bool DisableRedZone = MF.getFunction().hasFnAttribute(Attribute::NoRedZone);
  549   if (MF.getFunction().hasFnAttribute(Attribute::Naked))
  786     MF.getFunction().needsUnwindTableEntry();
 1700         MF.getFunction().getCallingConv() == CallingConv::Fast) {
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  436     const Module *M = MF->getFunction().getParent();
 4389     const Module *Mod = MF->getFunction().getParent();
lib/Target/PowerPC/PPCISelLowering.cpp
 2852   const Module *M = DAG.getMachineFunction().getFunction().getParent();
 3756   Function::const_arg_iterator FuncArg = MF.getFunction().arg_begin();
 4200   Function::const_arg_iterator FuncArg = MF.getFunction().arg_begin();
 4644   auto &Caller = DAG.getMachineFunction().getFunction();
 4723   CallingConv::ID CallerCC = MF.getFunction().getCallingConv();
 4976   const Module *Mod = DAG.getMachineFunction().getFunction().getParent();
 5303       !callsShareTOCBase(&MF.getFunction(), Callee, DAG.getTarget())) {
10693   if (MF->getFunction().hasFnAttribute(Attribute::Naked))
14555   if (MF.getFunction().hasFnAttribute(Attribute::Naked))
15053     assert(Entry->getParent()->getFunction().hasFnAttribute(
15330   if (DAG.getMachineFunction().getFunction().hasMinSize() &&
lib/Target/PowerPC/PPCISelLowering.h
  665         MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS &&
  666         MF->getFunction().hasFnAttribute(Attribute::NoUnwind);
lib/Target/PowerPC/PPCInstrInfo.cpp
 4015           &MF->getFunction().getEntryBlock()) {
lib/Target/PowerPC/PPCMCInstLower.cpp
  113   const Module *M = MF->getFunction().getParent();
lib/Target/PowerPC/PPCMIPeephole.cpp
  125     if (skipFunction(MF.getFunction()))
lib/Target/PowerPC/PPCPreEmitPeephole.cpp
  166       if (skipFunction(MF.getFunction()) || !RunPreEmitPeephole)
lib/Target/PowerPC/PPCQPXLoadSplat.cpp
   58   if (skipFunction(MF.getFunction()))
lib/Target/PowerPC/PPCReduceCRLogicals.cpp
  413     if (skipFunction(MF.getFunction()))
lib/Target/PowerPC/PPCRegisterInfo.cpp
  144   if (MF->getFunction().getCallingConv() == CallingConv::AnyReg) {
  166   if (MF->getFunction().getCallingConv() == CallingConv::Cold) {
  205   if (MF->getFunction().getCallingConv() != CallingConv::CXX_FAST_TLS)
 1065   if (!MF.getFunction().hasFnAttribute(Attribute::Naked)) {
lib/Target/PowerPC/PPCVSXFMAMutate.cpp
  345       if (skipFunction(MF.getFunction()))
lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
  190     if (skipFunction(MF.getFunction()))
lib/Target/RISCV/RISCVFrameLowering.cpp
  138     MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
  139         MF.getFunction(), "Stack pointer required, but has been reserved."});
  178       MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
  179           MF.getFunction(), "Frame pointer required, but has been reserved."});
  387   if (MF.getFunction().hasFnAttribute("interrupt") && MFI.hasCalls()) {
lib/Target/RISCV/RISCVISelLowering.cpp
 1622   FunctionType *FType = MF.getFunction().getFunctionType();
 1880   const Function &Func = MF.getFunction();
 1887       MF.getFunction().getFnAttribute("interrupt").getValueAsString();
 2018   auto &Caller = MF.getFunction();
 2264     MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
 2265         MF.getFunction(),
 2282     if (!getTargetMachine().shouldAssumeDSOLocal(*MF.getFunction().getParent(),
 2418         MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
 2419             MF.getFunction(),
 2434         MF.getFunction().getContext().diagnose(DiagnosticInfoUnsupported{
 2435             MF.getFunction(),
 2452   const Function &Func = DAG.getMachineFunction().getFunction();
 2460       MF.getFunction().getFnAttribute("interrupt").getValueAsString();
 2479   const Function &F = MF.getFunction();
lib/Target/RISCV/RISCVISelLowering.h
  131     if (DAG.getMachineFunction().getFunction().hasMinSize())
lib/Target/RISCV/RISCVMergeBaseOffset.cpp
  259   if (skipFunction(Fn.getFunction()))
lib/Target/RISCV/RISCVRegisterInfo.cpp
   45   if (MF->getFunction().hasFnAttribute("interrupt")) {
  155   if (MF.getFunction().hasFnAttribute("interrupt")) {
lib/Target/Sparc/SparcISelLowering.cpp
  267   if (MF.getFunction().hasStructRetAttr()) {
  522   if (MF.getFunction().hasStructRetAttr()) {
  704     const Function &Fn = DAG.getMachineFunction().getFunction();
 1947     const Module *M = DAG.getMachineFunction().getFunction().getParent();
lib/Target/SystemZ/SystemZAsmPrinter.cpp
  556   if (MF->getFunction().getFnAttribute("mnop-mcount")
lib/Target/SystemZ/SystemZElimCompare.cpp
  624   if (skipFunction(F.getFunction()))
lib/Target/SystemZ/SystemZFrameLowering.cpp
   73   bool IsVarArg = MF.getFunction().isVarArg();
  141   bool IsVarArg = MF.getFunction().isVarArg();
  392     bool StoreBackchain = MF.getFunction().hasFnAttribute("backchain");
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
  349     const Function &F = MF.getFunction();
lib/Target/SystemZ/SystemZISelLowering.cpp
 3209   bool RealignOpt = !MF.getFunction().hasFnAttribute("no-realign-stack");
 3210   bool StoreBackchain = MF.getFunction().hasFnAttribute("backchain");
 3872   bool StoreBackchain = MF.getFunction().hasFnAttribute("backchain");
lib/Target/SystemZ/SystemZLDCleanup.cpp
   66   if (skipFunction(F.getFunction()))
lib/Target/SystemZ/SystemZRegisterInfo.cpp
  198   if (MF->getFunction().getCallingConv() == CallingConv::AnyReg)
  202       MF->getFunction().getAttributes().hasAttrSomewhere(
  216       MF.getFunction().getAttributes().hasAttrSomewhere(
lib/Target/SystemZ/SystemZShortenInst.cpp
  366   if (skipFunction(F.getFunction()))
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  280   const Function &F = MF->getFunction();
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
 1284           MF.getFunction().hasPersonalityFn())
 1293       MF.getFunction().hasPersonalityFn())
 1370       MF.getFunction().hasPersonalityFn())
lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
   95          MF.getFunction().hasPersonalityFn() && MF.getFrameInfo().hasCalls();
  121                        !MF.getFunction().hasFnAttribute(Attribute::NoRedZone);
lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
   55     ForCodeSize = MF.getFunction().hasOptSize();
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  351   auto &Context = BB->getParent()->getFunction().getContext();
  621       DiagnosticInfoUnsupported(MF.getFunction(), Msg, DL.getDebugLoc()));
  660       const Function &F = MF.getFunction();
  940   computeSignatureVTs(MF.getFunction().getFunctionType(), MF.getFunction(),
  940   computeSignatureVTs(MF.getFunction().getFunctionType(), MF.getFunction(),
lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
  112   if (MF.getFunction().hasPersonalityFn()) {
  117   if (MF.getFunction().hasPersonalityFn()) {
  340           MF.getFunction().getParent()->getFunction(
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
   55     const Function &CurrentFunc = MF.getFunction();
  198   const Function &F = MI->getMF()->getFunction();
lib/Target/WebAssembly/WebAssemblyMemIntrinsicResults.cpp
  188       getAnalysis<TargetLibraryInfoWrapperPass>().getTLI(MF.getFunction());
lib/Target/WebAssembly/WebAssemblyPeephole.cpp
  144       getAnalysis<TargetLibraryInfoWrapperPass>().getTLI(MF.getFunction());
lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
  115         Type::getFloatTy(MF.getFunction().getContext())));
  120         Type::getDoubleTy(MF.getFunction().getContext())));
lib/Target/X86/X86AsmPrinter.cpp
   69     bool Local = MF.getFunction().hasLocalLinkage();
lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
  673   if (DisableX86AvoidStoreForwardBlocks || skipFunction(MF.getFunction()) ||
lib/Target/X86/X86CallFrameOptimization.cpp
  143        (MF.getFunction().needsUnwindTableEntry() && !TFL->hasFP(MF))))
  248   if (skipFunction(MF.getFunction()) || !isLegal(MF))
lib/Target/X86/X86CallLowering.cpp
  196     const Function &F = MF.getFunction();
  381   const Function &F = MF.getFunction();
lib/Target/X86/X86CallingConv.cpp
  301   size_t ArgCount = State.getMachineFunction().getFunction().arg_size();
lib/Target/X86/X86CmovConversion.cpp
  158   if (skipFunction(MF.getFunction()))
lib/Target/X86/X86DiscriminateMemOps.cpp
   92   DISubprogram *FDI = MF.getFunction().getSubprogram();
lib/Target/X86/X86DomainReassignment.cpp
  721   if (skipFunction(MF.getFunction()))
lib/Target/X86/X86ExpandPseudo.cpp
  337         MBB.getParent()->getFunction().getPersonalityFn()));
lib/Target/X86/X86FixupBWInsts.cpp
  152   if (!FixupBWInsts || skipFunction(MF.getFunction()))
  157   OptForSize = MF.getFunction().hasOptSize();
lib/Target/X86/X86FixupLEAs.cpp
  194   if (skipFunction(MF.getFunction()))
  202   bool OptIncDec = !ST.slowIncDec() || MF.getFunction().hasOptSize();
lib/Target/X86/X86FloatingPoint.cpp
  358   if ((Entry->getParent()->getFunction().getCallingConv() ==
  984       if (MF->getFunction().getCallingConv() != CallingConv::X86_RegCall) {
lib/Target/X86/X86FrameLowering.cpp
  851   if (MF.getFunction().hasFnAttribute("stackrealign")) {
  880   const Function &Fn = MF.getFunction();
  977   const Function &Fn = MF.getFunction();
 1564       classifyEHPersonality(MF.getFunction().getPersonalityFn());
 1607       IsWin64Prologue && MF.getFunction().needsUnwindTableEntry();
 1620       (MF.getMMI().hasDebugInfo() || MF.getFunction().needsUnwindTableEntry());
 1791   if (MF.getFunction().getCallingConv() == CallingConv::X86_INTR &&
 2141              MBB.getParent()->getFunction().getPersonalityFn())) &&
 2181       const Function &F = MBB.getParent()->getFunction();
 2237   const Function &F = MF->getFunction();
 2252   CallingConv::ID CallingConvention = MF.getFunction().getCallingConv();
 2303   if (MF.getFunction().isVarArg())
 2601   unsigned CallerStkArity = MF.getFunction().arg_size() > CCRegisteredArgs ?
 2602                             MF.getFunction().arg_size() - CCRegisteredArgs : 0;
 2816     const Function &F = MF.getFunction();
 2934   return (MF.getFunction().hasFnAttribute(Attribute::NoUnwind) || hasFP(MF)) &&
 2940          MF.getFunction().getCallingConv() != CallingConv::HiPE &&
 3178   const Function &F = MF.getFunction();
lib/Target/X86/X86ISelDAGToDAG.cpp
  185       IndirectTlsSegRefs = MF.getFunction().hasFnAttribute(
  189       OptForSize = MF.getFunction().hasOptSize();
  190       OptForMinSize = MF.getFunction().hasMinSize();
 1330   const Function &F = MF->getFunction();
lib/Target/X86/X86ISelLowering.cpp
  104       DiagnosticInfoUnsupported(MF.getFunction(), Msg, dl.getDebugLoc()));
 2199   if (auto *M = MF->getFunction().getParent())
 2477       MF.getFunction().hasFnAttribute("no_caller_saved_registers");
 3147   const Function &F = MF.getFunction();
 3181   const Function &F = MF.getFunction();
 3621   auto Attr = MF.getFunction().getFnAttribute("disable-tail-calls");
 3662                     MF.getFunction().hasStructRetAttr(), CLI.RetTy,
 4049     const Function &CallerFn = MF.getFunction();
 4312   const Function &CallerF = MF.getFunction();
 5030   bool NoFloat = DAG.getMachineFunction().getFunction().hasFnAttribute(
 5147   if (DAG.getMachineFunction().getFunction().hasMinSize() &&
 8309   bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
11164     bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
17653       bool MinSize = DAG.getMachineFunction().getFunction().hasMinSize();
17874   const Module &Mod = *DAG.getMachineFunction().getFunction().getParent();
18310   bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
18535   bool IsOptimizingSize = DAG.getMachineFunction().getFunction().hasOptSize();
20150       !DAG.getMachineFunction().getFunction().hasMinSize()) {
20308   AttributeList Attr = DAG.getMachineFunction().getFunction().getAttributes();
20402       bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
22236       const Function &F = MF.getFunction();
22284       Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv())) {
22338   if (Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv()))
22369            !(MF.getFunction().hasFnAttribute(Attribute::NoImplicitFloat)) &&
22397         DAG.getMachineFunction().getFunction().getCallingConv()))
27218         DAG.getMachineFunction().getFunction().hasFnAttribute(
27832         DAG.getMachineFunction().getFunction().hasFnAttribute(
28364         DAG.getMachineFunction().getFunction().hasFnAttribute(
29551   if (!Subtarget.isCallingConvWin64(F->getFunction().getCallingConv())) {
30155              classifyEHPersonality(MF->getFunction().getPersonalityFn())) &&
30182   const Constant *PerFn = MF->getFunction().getPersonalityFn();
36344   bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
37873   bool OptForMinSize = DAG.getMachineFunction().getFunction().hasMinSize();
38127   if (DAG.getMachineFunction().getFunction().hasMinSize())
39649   bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
40662   const Function &F = DAG.getMachineFunction().getFunction();
41944   if (!VT.isVector() && DAG.getMachineFunction().getFunction().hasMinSize())
42510     bool CodeSize = DAG.getMachineFunction().getFunction().hasOptSize();
42557   bool CodeSize = DAG.getMachineFunction().getFunction().hasOptSize();
46199         Entry->getParent()->getFunction().hasFnAttribute(Attribute::NoUnwind) &&
46222   if (MF.getFunction().hasFnAttribute("probe-stack"))
46223     return MF.getFunction().getFnAttribute("probe-stack").getValueAsString();
46228       MF.getFunction().hasFnAttribute("no-stack-arg-probe"))
46243   const Function &Fn = MF.getFunction();
lib/Target/X86/X86ISelLowering.h
 1385       return MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS &&
 1386           MF->getFunction().hasFnAttribute(Attribute::NoUnwind);
lib/Target/X86/X86IndirectBranchTracking.cpp
  117   if ((MF.getFunction().hasAddressTaken() ||
  118        !MF.getFunction().hasLocalLinkage()) &&
  119       !MF.getFunction().doesNoCfCheck()) {
lib/Target/X86/X86InsertPrefetch.cpp
  182   const FunctionSamples *Samples = Reader->getSamplesFor(MF.getFunction());
lib/Target/X86/X86InstrInfo.cpp
 1577     if (MI.getParent()->getParent()->getFunction().hasOptSize()) {
 3968       (MF.getMMI().hasDebugInfo() || MF.getFunction().needsUnwindTableEntry());
 4832   if (isSlowTwoMemOps && !MF.getFunction().hasMinSize() &&
 4839   if (!MF.getFunction().hasOptSize() &&
 5010   if (!MF.getFunction().hasOptSize() &&
 5216   if (!MF.getFunction().hasOptSize() &&
 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);
 7848       if (skipFunction(MF.getFunction()))
 8024   const Function &F = MF.getFunction();
lib/Target/X86/X86OptimizeLEAs.cpp
  678   if (DisableX86LEAOpt || skipFunction(MF.getFunction()))
  702     if (MF.getFunction().hasOptSize())
lib/Target/X86/X86PadShortFunction.cpp
   97   if (skipFunction(MF.getFunction()))
  100   if (MF.getFunction().hasOptSize())
lib/Target/X86/X86RegisterInfo.cpp
  236   const Function &F = MF.getFunction();
  284   const Function &F = MF->getFunction();
  294   if (MF->getFunction().hasFnAttribute("no_caller_saved_registers"))
  402   if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS &&
  499     const Function &F = MF.getFunction();
  548     CallingConv::ID CC = MF.getFunction().getCallingConv();
lib/Target/X86/X86SelectionDAGInfo.cpp
  273   if (DAG.getMachineFunction().getFunction().hasMinSize())
lib/Target/X86/X86SpeculativeLoadHardening.cpp
  405       !MF.getFunction().hasFnAttribute(Attribute::SpeculativeLoadHardening))
lib/Target/X86/X86VZeroUpper.cpp
  287   IsX86INTR = MF.getFunction().getCallingConv() == CallingConv::X86_INTR;
lib/Target/X86/X86WinAllocaExpander.cpp
  285   if (MF.getFunction().hasFnAttribute("stack-probe-size")) {
  286     MF.getFunction()
  291   NoStackArgProbe = MF.getFunction().hasFnAttribute("no-stack-arg-probe");
lib/Target/XCore/XCoreFrameLowering.cpp
  240   const AttributeList &PAL = MF.getFunction().getAttributes();
  326       const Function *Fn = &MF.getFunction();
  361     const Function *Fn = &MF.getFunction();
  544   if (!LRUsed && !MF.getFunction().isVarArg() &&
lib/Target/XCore/XCoreInstrInfo.cpp
  445         Type::getInt32Ty(MBB.getParent()->getFunction().getContext()), Value);
lib/Target/XCore/XCoreMachineFunctionInfo.cpp
   41   if (! MF.getFunction().isVarArg()) {
lib/Target/XCore/XCoreRegisterInfo.cpp
  206   return MF.getMMI().hasDebugInfo() || MF.getFunction().needsUnwindTableEntry();
unittests/CodeGen/GlobalISel/MachineIRBuilderTest.cpp
   49   LLVMContext &Ctx = MF->getFunction().getContext();