fix for ZAM printing of instructions that modify slots other than slot 1

This commit is contained in:
Vern Paxson 2024-03-02 14:18:18 -08:00 committed by Arne Welzel
parent 54877e9dec
commit ce6d77e2ce
2 changed files with 57 additions and 56 deletions

View file

@ -92,6 +92,14 @@ public:
// a loop iteration, false otherwise.
bool IsLoopIterationAdvancement() const;
// True if the given instruction assigns to the frame location
// given by slot 1 (v1).
bool AssignsToSlot1() const;
// True if the given instruction assigns to the frame location
// corresponding to the given slot.
bool AssignsToSlot(int slot) const;
// Returns a string describing the constant.
std::string ConstDump() const;
@ -219,14 +227,6 @@ public:
// should not be pruned even if it has a dead assignment.
bool HasSideEffects() const;
// True if the given instruction assigns to the frame location
// given by slot 1 (v1).
bool AssignsToSlot1() const;
// True if the given instruction assigns to the frame location
// corresponding to the given slot.
bool AssignsToSlot(int slot) const;
// True if the given instruction uses the value in the given frame
// slot. (Assigning to the slot does not constitute using the value.)
bool UsesSlot(int slot) const;