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

Declarations

include/llvm/IR/Function.h
  828   DISubprogram *getSubprogram() const;

References

include/llvm/ProfileData/SampleProf.h
  478           if (!Callee || !Callee->getSubprogram())
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1137                                       MF->getFunction().getSubprogram(),
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  993   auto *SP = GV->getSubprogram();
 1039     OS.EmitIntValue(getFuncIdForSubprogram(GV->getSubprogram()).getIndex(), 4);
 2835   collectVariableInfo(GV.getSubprogram());
 2851   if (!CurFn->HaveLineInfo && !GV.getSubprogram()->isThunk()) {
lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
  175   auto *SP = MF->getFunction().getSubprogram();
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  735         if (!CalleeDecl || !CalleeDecl->getSubprogram())
  737         CalleeSP = CalleeDecl->getSubprogram();
 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/GlobalISel/IRTranslator.cpp
  212                                  MF->getFunction().getSubprogram(),
 2257                                F.getSubprogram(), &F.getEntryBlock());
 2312                                F.getSubprogram(), &F.getEntryBlock());
lib/CodeGen/GlobalISel/InstructionSelect.cpp
  218                                       MF.getFunction().getSubprogram(),
lib/CodeGen/GlobalISel/Legalizer.cpp
  291                                       MF.getFunction().getSubprogram(),
lib/CodeGen/LexicalScopes.cpp
   53   if (Fn.getFunction().getSubprogram()->getUnit()->getEmissionKind() ==
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/MachineFunctionPass.cpp
   85                                             MF.getFunction().getSubprogram(),
lib/CodeGen/MachineOutliner.cpp
  909       if (C.getMF() && (SP = C.getMF()->getFunction().getSubprogram()))
lib/CodeGen/MachineSink.cpp
  965   if (MI.getMF()->getFunction().getSubprogram() && MI.isCopy())
lib/CodeGen/PrologEpilogInserter.cpp
  281                                              MF.getFunction().getSubprogram(),
lib/CodeGen/SafeStack.cpp
  775   if (DISubprogram *SP = F.getSubprogram())
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 1369                                  Fn.getSubprogram(),
lib/CodeGen/ShrinkWrap.cpp
  480                              MF.getFunction().getSubprogram(), &MF.front());
lib/CodeGen/StackProtector.cpp
  527   B.SetCurrentDebugLocation(DebugLoc::get(0, 0, F->getSubprogram()));
lib/IR/Core.cpp
 1232     if (const DISubprogram *DSP = F->getSubprogram())
 1256     if (const DISubprogram *DSP = F->getSubprogram())
 1279     if (const DISubprogram *DSP = F->getSubprogram())
lib/IR/DebugInfo.cpp
   66     if (auto *SP = cast_or_null<DISubprogram>(F.getSubprogram()))
  632     if (auto *SP = F.getSubprogram()) {
 1422   return wrap(unwrap<Function>(Func)->getSubprogram());
lib/IR/DebugInfoMetadata.cpp
  660   if (F->getSubprogram() == this)
lib/IR/DiagnosticInfo.cpp
  166     if (DISubprogram *SP = F->getSubprogram())
  257                                    RemarkName, *Func, Func->getSubprogram(),
lib/IR/Metadata.cpp
  335       return Fn->getSubprogram();
  341       return Fn->getSubprogram();
 1527   if (DISubprogram *SP = getSubprogram()) {
lib/IR/Verifier.cpp
 2321   auto *N = F.getSubprogram();
 3012   if (Call.getFunction()->getSubprogram() && Call.getCalledFunction() &&
 3013       Call.getCalledFunction()->getSubprogram())
lib/Target/BPF/BTFDebug.cpp
  847   auto *SP = MF->getFunction().getSubprogram();
 1033       auto *S = MI->getMF()->getFunction().getSubprogram();
lib/Target/X86/X86DiscriminateMemOps.cpp
   92   DISubprogram *FDI = MF.getFunction().getSubprogram();
lib/Transforms/IPO/ArgumentPromotion.cpp
  223   NF->setSubprogram(F->getSubprogram());
lib/Transforms/IPO/MergeFunctions.cpp
  725     DISubprogram *DIS = G->getSubprogram();
lib/Transforms/IPO/SampleProfile.cpp
  966               R->getValue()->getSubprogram() &&
  985       } else if (CalledFunction && CalledFunction->getSubprogram() &&
 1528   if (DISubprogram *S = F.getSubprogram())
 1644           F.getSubprogram()->getFilename(), getFunctionLoc(F),
 1657           F.getSubprogram()->getFilename(), getFunctionLoc(F),
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2991   if (auto SP = F.getSubprogram())
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  487   SmallString<128> Filename = getFilename(F.getSubprogram());
  692       DISubprogram *SP = F.getSubprogram();
  778       DISubprogram *SP = F.getSubprogram();
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  854     if (auto SP = F.getSubprogram())
lib/Transforms/Utils/AddDiscriminators.cpp
  171   if (NoDiscriminators || !F.getSubprogram())
lib/Transforms/Utils/CloneFunction.cpp
  128   DISubprogram *SP = OldFunc->getSubprogram();
  265   CloneFunctionInto(NewF, F, VMap, F->getSubprogram() != nullptr, Returns, "",
lib/Transforms/Utils/CodeExtractor.cpp
 1135   if (codeReplacer->getParent()->getSubprogram()) {
 1458   if (oldFunction->getSubprogram()) {
lib/Transforms/Utils/EntryExitInstrumenter.cpp
   83     if (auto SP = F.getSubprogram())
  109       else if (auto SP = F.getSubprogram())
lib/Transforms/Utils/InlineFunction.cpp
 1796                      CalledFunc->getSubprogram() != nullptr);
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 3724   if (Func->getSubprogram())
 3829   if (Fn && Fn->getSubprogram())
 3830     DBuilder.finalizeSubprogram(Fn->getSubprogram());
tools/clang/lib/CodeGen/CGVTables.cpp
  120   auto *DIS = Fn->getSubprogram();
unittests/IR/IRBuilderTest.cpp
  743   DISubprogram *GSP = DIBuilder::createArtificialSubprogram(F->getSubprogram());
unittests/IR/MetadataTest.cpp
 2772   EXPECT_EQ(SP, static_cast<DISubprogram *>(F->getSubprogram()));
unittests/Transforms/Utils/CloningTest.cpp
  561   EXPECT_NE(NewFunc->getSubprogram(), OldFunc->getSubprogram());
  561   EXPECT_NE(NewFunc->getSubprogram(), OldFunc->getSubprogram());
  590       EXPECT_EQ(OldFunc->getSubprogram(), OldSubprogram);
  591       EXPECT_EQ(NewFunc->getSubprogram(), NewSubprogram);
  630         EXPECT_EQ(OldFunc->getSubprogram(),
  633         EXPECT_EQ(NewFunc->getSubprogram(),
  642         EXPECT_EQ(OldFunc->getSubprogram(),
  645         EXPECT_EQ(NewFunc->getSubprogram(),
  796   DISubprogram *SP = NewF->getSubprogram();
  826   DISubprogram *SP = NewM->getFunction("f")->getSubprogram();
  841   DISubprogram *SP = NewM->getFunction("f")->getSubprogram();