summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/Instruction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/Instruction.cpp')
-rw-r--r--llvm/tools/llvm-mca/Instruction.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mca/Instruction.cpp b/llvm/tools/llvm-mca/Instruction.cpp
index f84c7811138..c8eb63feeee 100644
--- a/llvm/tools/llvm-mca/Instruction.cpp
+++ b/llvm/tools/llvm-mca/Instruction.cpp
@@ -96,6 +96,13 @@ void WriteState::dump() const {
dbgs() << "{ OpIdx=" << WD.OpIndex << ", Lat=" << WD.Latency << ", RegID "
<< getRegisterID() << ", Cycles Left=" << getCyclesLeft() << " }\n";
}
+
+void WriteRef::dump() const {
+ if (isValid())
+ getWriteState()->dump();
+ else
+ dbgs() << "(null)";
+}
#endif
void Instruction::dispatch(unsigned RCUToken) {
@@ -152,4 +159,7 @@ void Instruction::cycleEvent() {
if (!CyclesLeft)
Stage = IS_EXECUTED;
}
+
+const unsigned WriteRef::INVALID_IID = std::numeric_limits<unsigned>::max();
+
} // namespace mca
OpenPOWER on IntegriCloud