This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by thegameg on Dec 8 2017, 10:49 AM.

Details

Summary

Work towards the unification of MIR and debug output by printing %stack.0 instead of <fi#0>, and %fixed-stack.0 instead of <fi#-4> (supposing there are 4 fixed stack objects).

Only debug syntax is affected.

Diff Detail

Repository
rL LLVM

Event Timeline

thegameg created this revision.Dec 8 2017, 10:49 AM
MatzeB accepted this revision.Dec 14 2017, 11:37 AM

LGTM

include/llvm/CodeGen/MachineOperand.h
230–232 ↗(On Diff #126181)

Make FrameIndex unsigned, to make it clear that we don't have the same negative/positive encoding scheme here that MachineFrameInfo uses?

This revision is now accepted and ready to land.Dec 14 2017, 11:37 AM
This revision was automatically updated to reflect the committed changes.
thegameg marked an inline comment as done.