Skip to content

Commit

Permalink
[MCA] Modernize IncrementalSourceMgr (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Jun 3, 2023
1 parent 4dcd66a commit 064b98f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/include/llvm/MCA/IncrementalSourceMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 064b98f

Please sign in to comment.