[llvm] 064b98f - [MCA] Modernize IncrementalSourceMgr (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 3 10:39:06 PDT 2023
Author: Kazu Hirata
Date: 2023-06-03T10:38:51-07:00
New Revision: 064b98fc5f37db4d9cab77a5660b8d7b54ed392d
URL: https://github.com/llvm/llvm-project/commit/064b98fc5f37db4d9cab77a5660b8d7b54ed392d
DIFF: https://github.com/llvm/llvm-project/commit/064b98fc5f37db4d9cab77a5660b8d7b54ed392d.diff
LOG: [MCA] Modernize IncrementalSourceMgr (NFC)
Added:
Modified:
llvm/include/llvm/MCA/IncrementalSourceMgr.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/MCA/IncrementalSourceMgr.h b/llvm/include/llvm/MCA/IncrementalSourceMgr.h
index d91cc5f23311..d53f1138b940 100644
--- a/llvm/include/llvm/MCA/IncrementalSourceMgr.h
+++ b/llvm/include/llvm/MCA/IncrementalSourceMgr.h
@@ -35,17 +35,17 @@ class IncrementalSourceMgr : public SourceMgr {
std::deque<Instruction *> Staging;
/// Current instruction index.
- unsigned TotalCounter;
+ unsigned TotalCounter = 0U;
/// End-of-stream flag.
- bool EOS;
+ bool EOS = false;
/// Called when an instruction is no longer needed.
using InstFreedCallback = llvm::function_ref<void(Instruction *)>;
InstFreedCallback InstFreedCB;
public:
- IncrementalSourceMgr() : TotalCounter(0U), EOS(false) {}
+ IncrementalSourceMgr() = default;
void clear();
More information about the llvm-commits
mailing list