Home | History | Annotate | Download | only in Instrumentation

Lines Matching defs:SP

152 static StringRef getFunctionName(MDSubprogram *SP) {
153 if (!SP->getLinkageName().empty())
154 return SP->getLinkageName();
155 return SP->getName();
312 GCOVFunction(DISubprogram SP, raw_ostream *os, uint32_t Ident,
314 : SP(SP), Ident(Ident), UseCfgChecksum(UseCfgChecksum), CfgChecksum(0),
318 Function *F = SP->getFunction();
319 DEBUG(dbgs() << "Function: " << getFunctionName(SP) << "\n");
333 FNLOS << getFunctionName(SP) << SP->getLine();
368 uint32_t BlockLen = 1 + 1 + 1 + lengthOfGCOVString(getFunctionName(SP)) +
369 1 + lengthOfGCOVString(SP->getFilename()) + 1;
377 writeGCOVString(getFunctionName(SP));
378 writeGCOVString(SP->getFilename());
379 write(SP->getLine());
414 DISubprogram SP;
496 for (auto *SP : CU->getSubprograms()) {
497 Function *F = SP->getFunction();
509 Funcs.push_back(make_unique<GCOVFunction>(SP, &out, FunctionIdent++,
541 if (SP != getDISubprogram(Loc.getScope()))
544 GCOVLines &Lines = Block.getFile(SP->getFilename());
575 for (auto *SP : CU->getSubprograms()) {
576 Function *F = SP->getFunction();
596 CountersBySP.push_back(std::make_pair(Counters, SP));
857 auto *SP = cast_or_null<MDSubprogram>(CountersBySP[j].second);
862 Builder.CreateGlobalStringPtr(getFunctionName(SP)) :