Home
last modified time | relevance | path

Searched refs:DebugCounter (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/Support/
H A DDebugCounterTest.cpp19 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 DDebugCounter.cpp15 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 DCMakeLists.txt158 DebugCounter.cpp
/llvm-project-15.0.7/mlir/lib/Support/
H A DDebugCounter.cpp45 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 DCMakeLists.txt2 DebugCounter.cpp
13 DebugCounter.cpp
/llvm-project-15.0.7/mlir/include/mlir/Support/
H A DDebugCounter.h28 class DebugCounter : public DebugActionManager::GenericHandler {
30 DebugCounter();
31 ~DebugCounter() override;
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DDebugCounter.h56 class DebugCounter {
58 ~DebugCounter();
61 static DebugCounter &instance();
186 DebugCounter::registerCounter(COUNTERNAME, DESC)
/llvm-project-15.0.7/mlir/unittests/Support/
H A DDebugCounterTest.cpp25 std::unique_ptr<DebugCounter> counter = std::make_unique<DebugCounter>(); in TEST()
/llvm-project-15.0.7/mlir/lib/Tools/mlir-opt/
H A DMlirOptMain.cpp118 context.getDebugActionManager().registerActionHandler<DebugCounter>(); in processBuffer()
234 DebugCounter::registerCLOptions(); in MlirOptMain()
/llvm-project-15.0.7/mlir/docs/
H A DDebugActions.md176 #### 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 DEarlyCSE.cpp1096 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 DDCE.cpp92 if (!DebugCounter::shouldExecute(DCECounter)) in DCEInstruction()
H A DPartiallyInlineLibCalls.cpp41 if (!DebugCounter::shouldExecute(PILCounter)) in optimizeSQRT()
H A DDivRemPairs.cpp193 if (!DebugCounter::shouldExecute(DRPCounter)) in optimizeDivRem()
H A DConstraintElimination.cpp754 if (!DebugCounter::shouldExecute(EliminatedCounter)) in eliminateConstraints()
774 if (!DebugCounter::shouldExecute(EliminatedCounter)) in eliminateConstraints()
H A DNewGVN.cpp2724 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 DDeadStoreElimination.cpp2034 if (!DebugCounter::shouldExecute(MemorySSACounter)) in eliminateDeadStores()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIInsertWaitcnts.cpp414 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 DAssumeBundleQueries.cpp161 if (!DebugCounter::shouldExecute(AssumeQueryCounter)) in getKnowledgeForValue()
/llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/lib/Support/
H A DBUILD.gn74 "DebugCounter.cpp",
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp523 if (!NegatorEnabled || !DebugCounter::shouldExecute(NegatorCounter)) in Negate()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DAssumeBundleBuilder.cpp227 if (!DebugCounter::shouldExecute(BuildAssumeCounter)) in build()
H A DPredicateInfo.cpp717 if (!DebugCounter::shouldExecute(RenameCounter)) { in renameUses()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64FalkorHWPFFix.cpp736 if (!DebugCounter::shouldExecute(FixCounter)) { in runOnLoop()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineCopyPropagation.cpp624 if (!DebugCounter::shouldExecute(FwdCounter)) { in forwardUses()

12