File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -643,6 +643,9 @@ class Instruction : public InstructionBase {
643643 // True if this instruction has been optimized at register renaming stage.
644644 bool IsEliminated;
645645
646+ // Client-dependent identifier for this instruction.
647+ std::optional<uint64_t > Identifier;
648+
646649public:
647650 Instruction (const InstrDesc &D, const unsigned Opcode)
648651 : InstructionBase(D, Opcode), Stage(IS_INVALID),
@@ -690,6 +693,9 @@ class Instruction : public InstructionBase {
690693 bool isRetired () const { return Stage == IS_RETIRED; }
691694 bool isEliminated () const { return IsEliminated; }
692695
696+ std::optional<uint64_t > getIdentifier () const { return Identifier; }
697+ void setIdentifier (uint64_t Id) { Identifier = Id; }
698+
693699 // Forces a transition from state IS_DISPATCHED to state IS_EXECUTED.
694700 void forceExecuted ();
695701 void setEliminated () { IsEliminated = true ; }
You can’t perform that action at this time.
0 commit comments