| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | DebugCounterTest.cpp | 19 EXPECT_FALSE(DebugCounter::isCounterSet(TestCounter)); in TEST() 21 auto DC = &DebugCounter::instance(); in TEST() 25 EXPECT_TRUE(DebugCounter::isCounterSet(TestCounter)); in TEST() 27 EXPECT_EQ(0, DebugCounter::getCounterValue(TestCounter)); in TEST() 28 EXPECT_FALSE(DebugCounter::shouldExecute(TestCounter)); in TEST() 31 EXPECT_TRUE(DebugCounter::shouldExecute(TestCounter)); in TEST() 33 DebugCounter::setCounterValue(TestCounter, 3); in TEST() 34 EXPECT_TRUE(DebugCounter::shouldExecute(TestCounter)); in TEST() 35 EXPECT_FALSE(DebugCounter::shouldExecute(TestCounter)); in TEST() 37 DebugCounter::setCounterValue(TestCounter, 100); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | DebugCounter.cpp | 15 class DebugCounterList : public cl::list<std::string, DebugCounter> { 17 using Base = cl::list<std::string, DebugCounter>; 36 const auto &CounterInstance = DebugCounter::instance(); in printOptionInfo() 52 cl::CommaSeparated, cl::location(DebugCounter::instance())); in call() 69 static ManagedStatic<DebugCounter> DC; 72 DebugCounter::~DebugCounter() { in ~DebugCounter() 77 DebugCounter &DebugCounter::instance() { return *DC; } in instance() 81 void DebugCounter::push_back(const std::string &Val) { in push_back() 132 void DebugCounter::print(raw_ostream &OS) const { in print() 147 LLVM_DUMP_METHOD void DebugCounter::dump() const { in dump()
|
| H A D | CMakeLists.txt | 158 DebugCounter.cpp
|
| /llvm-project-15.0.7/mlir/lib/Support/ |
| H A D | DebugCounter.cpp | 45 DebugCounter::DebugCounter() { applyCLOptions(); } in DebugCounter() function in DebugCounter 47 DebugCounter::~DebugCounter() { in ~DebugCounter() 57 void DebugCounter::addCounter(StringRef actionTag, int64_t countToSkip, in addCounter() 65 FailureOr<bool> DebugCounter::shouldExecute(StringRef tag, in shouldExecute() 86 void DebugCounter::print(raw_ostream &os) const { in print() 107 void DebugCounter::registerCLOptions() { in registerCLOptions() 116 void DebugCounter::applyCLOptions() { in applyCLOptions()
|
| H A D | CMakeLists.txt | 2 DebugCounter.cpp 13 DebugCounter.cpp
|
| /llvm-project-15.0.7/mlir/include/mlir/Support/ |
| H A D | DebugCounter.h | 28 class DebugCounter : public DebugActionManager::GenericHandler { 30 DebugCounter(); 31 ~DebugCounter() override;
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | DebugCounter.h | 56 class DebugCounter { 58 ~DebugCounter(); 61 static DebugCounter &instance(); 186 DebugCounter::registerCounter(COUNTERNAME, DESC)
|
| /llvm-project-15.0.7/mlir/unittests/Support/ |
| H A D | DebugCounterTest.cpp | 25 std::unique_ptr<DebugCounter> counter = std::make_unique<DebugCounter>(); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/Tools/mlir-opt/ |
| H A D | MlirOptMain.cpp | 118 context.getDebugActionManager().registerActionHandler<DebugCounter>(); in processBuffer() 234 DebugCounter::registerCLOptions(); in MlirOptMain()
|
| /llvm-project-15.0.7/mlir/docs/ |
| H A D | DebugActions.md | 176 #### DebugCounter subsubsection 196 Note: The DebugCounter action handler does not support multi-threaded execution, 202 The `DebugCounter` handler provides several that allow for configuring counters. 227 DebugCounter counters: 237 DebugCounter counters:
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | EarlyCSE.cpp | 1096 if (!DebugCounter::shouldExecute(CSECounter)) { in handleBranchCondition() 1241 if (!DebugCounter::shouldExecute(CSECounter)) { in processNode() 1353 if (!DebugCounter::shouldExecute(CSECounter)) { in processNode() 1381 if (!DebugCounter::shouldExecute(CSECounter)) { in processNode() 1441 if (!DebugCounter::shouldExecute(CSECounter)) { in processNode() 1484 if (!DebugCounter::shouldExecute(CSECounter)) { in processNode() 1533 if (!DebugCounter::shouldExecute(CSECounter)) { in processNode() 1561 if (!DebugCounter::shouldExecute(CSECounter)) { in processNode()
|
| H A D | DCE.cpp | 92 if (!DebugCounter::shouldExecute(DCECounter)) in DCEInstruction()
|
| H A D | PartiallyInlineLibCalls.cpp | 41 if (!DebugCounter::shouldExecute(PILCounter)) in optimizeSQRT()
|
| H A D | DivRemPairs.cpp | 193 if (!DebugCounter::shouldExecute(DRPCounter)) in optimizeDivRem()
|
| H A D | ConstraintElimination.cpp | 754 if (!DebugCounter::shouldExecute(EliminatedCounter)) in eliminateConstraints() 774 if (!DebugCounter::shouldExecute(EliminatedCounter)) in eliminateConstraints()
|
| H A D | NewGVN.cpp | 2724 if (!DebugCounter::shouldExecute(PHIOfOpsCounter)) in makePossiblePHIOfOps() 3097 if (DebugCounter::shouldExecute(VNCounter)) { in valueNumberInstruction() 3277 if (DebugCounter::isCounterSet(VNCounter)) in verifyIterationSettled() 3278 DebugCounter::setCounterValue(VNCounter, StartingVNCounter); in verifyIterationSettled() 3421 if (DebugCounter::isCounterSet(VNCounter)) in runGVN() 3422 StartingVNCounter = DebugCounter::getCounterValue(VNCounter); in runGVN()
|
| H A D | DeadStoreElimination.cpp | 2034 if (!DebugCounter::shouldExecute(MemorySSACounter)) in eliminateDeadStores()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIInsertWaitcnts.cpp | 414 if (DebugCounter::isCounterSet(ForceExpCounter) && in setForceEmitWaitcnt() 415 DebugCounter::shouldExecute(ForceExpCounter)) { in setForceEmitWaitcnt() 421 if (DebugCounter::isCounterSet(ForceLgkmCounter) && in setForceEmitWaitcnt() 422 DebugCounter::shouldExecute(ForceLgkmCounter)) { in setForceEmitWaitcnt() 428 if (DebugCounter::isCounterSet(ForceVMCounter) && in setForceEmitWaitcnt() 429 DebugCounter::shouldExecute(ForceVMCounter)) { in setForceEmitWaitcnt()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | AssumeBundleQueries.cpp | 161 if (!DebugCounter::shouldExecute(AssumeQueryCounter)) in getKnowledgeForValue()
|
| /llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/lib/Support/ |
| H A D | BUILD.gn | 74 "DebugCounter.cpp",
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineNegator.cpp | 523 if (!NegatorEnabled || !DebugCounter::shouldExecute(NegatorCounter)) in Negate()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | AssumeBundleBuilder.cpp | 227 if (!DebugCounter::shouldExecute(BuildAssumeCounter)) in build()
|
| H A D | PredicateInfo.cpp | 717 if (!DebugCounter::shouldExecute(RenameCounter)) { in renameUses()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64FalkorHWPFFix.cpp | 736 if (!DebugCounter::shouldExecute(FixCounter)) { in runOnLoop()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineCopyPropagation.cpp | 624 if (!DebugCounter::shouldExecute(FwdCounter)) { in forwardUses()
|