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

References

include/llvm/Analysis/LazyCallGraph.h
 1099                 return I->getFunction() == BA->getFunction();
include/llvm/Analysis/LoopInfo.h
 1097     assert(Inst->getFunction() == NewLoc->getFunction() &&
 1097     assert(Inst->getFunction() == NewLoc->getFunction() &&
include/llvm/Transforms/IPO/Attributor.h
  281       return cast<Instruction>(V).getFunction();
  331       return cast<Instruction>(V).getFunction();
lib/Analysis/CaptureTracking.cpp
  359         if (!I->getFunction()->nullPointerIsDefined()) {
lib/Analysis/GlobalsModRef.cpp
  374             isFreeCall(I, &GetTLI(*Call->getFunction()))) {
  436       if (!isAllocLikeFn(Ptr, &GetTLI(*SI->getFunction())))
lib/Analysis/InlineCost.cpp
 1276     if (F == Call.getFunction()) {
 1775   Function *Caller = Call.getFunction();
 1779     if (Call && Call->getFunction() == Caller) {
lib/Analysis/InstructionSimplify.cpp
  150   if (!I->getParent() || !P->getParent() || !I->getFunction())
  159   if (I->getParent() == &I->getFunction()->getEntryBlock() &&
 2390           NullPointerIsDefined(cast<AllocaInst>(LHS)->getFunction());
lib/Analysis/MemoryBuiltins.cpp
  532     LLVMContext &Ctx = ObjectSize->getFunction()->getContext();
lib/Analysis/ScalarEvolutionExpander.cpp
 1796             EntInst->getFunction() == InsertPt->getFunction() &&
lib/CodeGen/AtomicExpandPass.cpp
 1619   IRBuilder<> AllocaBuilder(&I->getFunction()->getEntryBlock().front());
lib/CodeGen/CodeGenPrepare.cpp
 4189               BaseI ? BaseI->getParent() : &GEP->getFunction()->getEntryBlock();
 4390   const Function *F = CI->getFunction();
 4432   const bool OptSize = I->getFunction()->hasOptSize();
 5035       TM->getSubtargetImpl(*CS->getFunction())->getRegisterInfo();
 5356           NewBaseInsertBB = &BaseGEP->getFunction()->getEntryBlock();
lib/CodeGen/ExpandMemCmp.cpp
  727   if (CI->getFunction()->hasMinSize())
  744   auto Options = TTI->enableMemCmpExpansion(CI->getFunction()->hasOptSize(),
  751   if (CI->getFunction()->hasOptSize() &&
  755   if (!CI->getFunction()->hasOptSize() && MaxLoadsPerMemcmp.getNumOccurrences())
lib/CodeGen/WasmEHPrepare.cpp
  186     if (ThrowI->getFunction() != &F)
lib/IR/Verifier.cpp
 3012   if (Call.getFunction()->getSubprogram() && Call.getCalledFunction() &&
 3701   Assert(RI.getFunction()->hasPersonalityFn(),
 4667     Assert(Call.getType() == Call.getFunction()->getReturnType(),
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  174       Value *Op_simplified = simplify(I, &GetTLI(*I->getFunction()));
lib/Target/SystemZ/SystemZTDC.cpp
   97     auto &M = *I->getFunction()->getParent();
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  714         SetjmpUsers.insert(UI->getFunction());
lib/Target/X86/X86ISelLowering.cpp
26453       SI->getFunction()->hasFnAttribute(Attribute::NoImplicitFloat);
26471       LI->getFunction()->hasFnAttribute(Attribute::NoImplicitFloat);
lib/Transforms/Coroutines/CoroElide.cpp
   79   Function &F = *Frame->getFunction();
  111       getFirstNonAllocaInTheEntryBlock(CoroIds.front()->getFunction());
  237   bool ShouldElide = shouldElide(CoroId->getFunction(), DT);
  247     elideHeapAllocations(CoroId->getFunction(), FrameTy, AA);
  309           if (CII->getCoroutine() != CII->getFunction())
lib/Transforms/Coroutines/CoroFrame.cpp
  594   DominatorTree DT(*CB->getFunction());
lib/Transforms/Coroutines/CoroInstr.h
  190                   ConstantExpr::getBitCast(getFunction(), Int8PtrTy));
lib/Transforms/Coroutines/CoroInternal.h
  174     auto FTy = CoroBegin->getFunction()->getFunctionType();
lib/Transforms/Coroutines/CoroSplit.cpp
 1443     PrepareUserNode = CG[Prepare->getFunction()];
lib/Transforms/Coroutines/Coroutines.cpp
  495     (*CG)[Call->getFunction()]->addCalledFunction(Call, (*CG)[Callee]);
lib/Transforms/IPO/Attributor.cpp
 4283     Function *Caller = I->getFunction();
lib/Transforms/IPO/GlobalDCE.cpp
  249       ScanVTableLoad(CI->getFunction(), TypeId, Offset->getZExtValue());
lib/Transforms/IPO/GlobalOpt.cpp
  326             ConstantFoldInstruction(GEP, DL, &GetTLI(*GEP->getFunction())));
  685     if (NullPointerIsDefined(I->getFunction()))
 1591       auto *TLI = &GetTLI(*CI->getFunction());
lib/Transforms/IPO/MergeFunctions.cpp
  474       remove(CS.getInstruction()->getFunction());
  951       remove(I->getFunction());
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1569     auto &DT = LookupDomTree(*CI->getFunction());
 1618     auto &DT = LookupDomTree(*CI->getFunction());
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1707         II->getFunction()->getFnAttribute("nvptx-f32ftz").getValueAsString() ==
 1791   if (CI.getFunction()->doesNotThrow() && !CI.doesNotThrow()) {
 3912     if (II->getFunction()->hasFnAttribute(Attribute::SanitizeAddress) ||
 3913         II->getFunction()->hasFnAttribute(Attribute::SanitizeMemory) ||
 3914         II->getFunction()->hasFnAttribute(Attribute::SanitizeHWAddress))
 4339        !NullPointerIsDefined(Call.getFunction())) ||
lib/Transforms/InstCombine/InstCombineCompares.cpp
  879       !NullPointerIsDefined(I.getFunction(),
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  925   if (NullPointerIsDefined(SI.getFunction(), SI.getPointerAddressSpace()))
  932           !NullPointerIsDefined(SI.getFunction(), SI.getPointerAddressSpace()));
  939         !NullPointerIsDefined(LI.getFunction(), GEPI->getPointerAddressSpace()))
  944        !NullPointerIsDefined(LI.getFunction(), LI.getPointerAddressSpace())))
 1044           !NullPointerIsDefined(SI->getFunction(),
 1052           !NullPointerIsDefined(SI->getFunction(),
lib/Transforms/Instrumentation/InstrProfiling.cpp
  612   auto *TLI = &GetTLI(*Ind->getFunction());
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 2181     assert(Call->getFunction() == &F);
lib/Transforms/Scalar/SCCP.cpp
 1167     if (NullPointerIsDefined(I.getFunction(), I.getPointerAddressSpace()))
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  949       getAnalysis<TargetTransformInfoWrapperPass>().getTTI(*GEP->getFunction());
lib/Transforms/Utils/CodeExtractor.cpp
  968       if (I->isTerminator() && I->getFunction() == oldFunction &&
 1024       assert((!isa<Instruction>(Mem) || cast<Instruction>(Mem)->getFunction() ==
 1025                                             TheCall->getFunction()) &&
 1252     assert((InsertBefore->getFunction() == newFunction ||
 1616     if (I->getFunction() != &F)
lib/Transforms/Utils/InlineFunction.cpp
 1269   Function *Caller = TheCall->getFunction();
 1542   assert(TheCall->getParent() && TheCall->getFunction()
lib/Transforms/Utils/Local.cpp
 2062                     !NullPointerIsDefined(CI->getFunction())) ||
 2091              !NullPointerIsDefined(SI->getFunction(),
lib/Transforms/Utils/MisExpect.cpp
  103                  << "Function: " << I->getFunction()->getName() << "\n");
lib/Transforms/Utils/SimplifyCFG.cpp
 5997         return !NullPointerIsDefined(LI->getFunction(),
 6003         return (!NullPointerIsDefined(SI->getFunction(),
 6009       return !NullPointerIsDefined(CS->getFunction()) &&
lib/Transforms/Utils/SimplifyLibCalls.cpp
  184   if (CI->getFunction()->hasFnAttribute(Attribute::SanitizeMemory))
 1283     StringRef CallerName = CI->getFunction()->getName();
 2135   Function *F = CI->getFunction();
 2170   if (CI->getFunction() != F)
 2718   bool OptForSize = CI->getFunction()->hasOptSize() ||
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  699   ParallelSubfunctions.push_back(LoopBody->getFunction());
tools/polly/lib/Support/ScopHelper.cpp
  306     else if (Inst && RTCBB->getParent() == Inst->getFunction())
unittests/Analysis/TBAATest.cpp
   49   auto *F = SI->getFunction();
   70   auto *F = SI->getFunction();