[PATCH] D41027: [CodeGen] Print stack object references as %(fixed-)stack.0 in both MIR and debug output

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 11:37:02 PST 2017


MatzeB accepted this revision.
MatzeB added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: include/llvm/CodeGen/MachineOperand.h:230-232
+  /// Print a stack object reference.
+  static void printStackObjectReference(raw_ostream &OS, int FrameIndex,
+                                        bool IsFixed, StringRef Name);
----------------
Make `FrameIndex` unsigned, to make it clear that we don't have the same negative/positive encoding scheme here that MachineFrameInfo uses?


https://reviews.llvm.org/D41027





More information about the llvm-commits mailing list