llvm.org GIT mirror llvm / d90634b
[llvm-profdata] Report if profile data file is IR- or FE-level Differential Revision: https://reviews.llvm.org/D39997 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318159 91177308-0d34-0410-b5e6-96231b3b80d8 Adam Nemet 1 year, 10 months ago
2 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 RUN: llvm-profdata merge -o %t_clang.profdata %p/Inputs/clang_profile.proftext
1 RUN: llvm-profdata show %t_clang.profdata | FileCheck %s -check-prefix=FE
2 FE: Instrumentation level: Front-end
3
4 RUN: llvm-profdata merge -o %t_ir.profdata %p/Inputs/IR_profile.proftext
5 RUN: llvm-profdata show %t_ir.profdata | FileCheck %s -check-prefix=IR
6 IR: Instrumentation level: IR
624624 if (ShowCounts && TextFormat)
625625 return 0;
626626 std::unique_ptr PS(Builder.getSummary());
627 OS << "Instrumentation level: "
628 << (Reader->isIRLevelProfile() ? "IR" : "Front-end") << "\n";
627629 if (ShowAllFunctions || !ShowFunction.empty())
628630 OS << "Functions shown: " << ShownFunctions << "\n";
629631 OS << "Total functions: " << PS->getNumFunctions() << "\n";