mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Allow disabling of ALL printing overhead when performing timings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10948 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -29,6 +29,7 @@ using namespace llvm;
|
|||||||
//
|
//
|
||||||
namespace {
|
namespace {
|
||||||
cl::opt<bool> OnlyPrintMain("only-print-main-ds", cl::ReallyHidden);
|
cl::opt<bool> OnlyPrintMain("only-print-main-ds", cl::ReallyHidden);
|
||||||
|
cl::opt<bool> DontPrintAnything("dont-print-ds", cl::ReallyHidden);
|
||||||
Statistic<> MaxGraphSize ("dsnode", "Maximum graph size");
|
Statistic<> MaxGraphSize ("dsnode", "Maximum graph size");
|
||||||
Statistic<> NumFoldedNodes ("dsnode", "Number of folded nodes (in final graph)");
|
Statistic<> NumFoldedNodes ("dsnode", "Number of folded nodes (in final graph)");
|
||||||
}
|
}
|
||||||
@@ -272,18 +273,22 @@ static void printCollection(const Collection &C, std::ostream &O,
|
|||||||
|
|
||||||
// print - Print out the analysis results...
|
// print - Print out the analysis results...
|
||||||
void LocalDataStructures::print(std::ostream &O, const Module *M) const {
|
void LocalDataStructures::print(std::ostream &O, const Module *M) const {
|
||||||
|
if (DontPrintAnything) return;
|
||||||
printCollection(*this, O, M, "ds.");
|
printCollection(*this, O, M, "ds.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void BUDataStructures::print(std::ostream &O, const Module *M) const {
|
void BUDataStructures::print(std::ostream &O, const Module *M) const {
|
||||||
|
if (DontPrintAnything) return;
|
||||||
printCollection(*this, O, M, "bu.");
|
printCollection(*this, O, M, "bu.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void TDDataStructures::print(std::ostream &O, const Module *M) const {
|
void TDDataStructures::print(std::ostream &O, const Module *M) const {
|
||||||
|
if (DontPrintAnything) return;
|
||||||
printCollection(*this, O, M, "td.");
|
printCollection(*this, O, M, "td.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CompleteBUDataStructures::print(std::ostream &O, const Module *M) const {
|
void CompleteBUDataStructures::print(std::ostream &O, const Module *M) const {
|
||||||
|
if (DontPrintAnything) return;
|
||||||
printCollection(*this, O, M, "cbu.");
|
printCollection(*this, O, M, "cbu.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user