This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Print constant pool index operands as %const.0 + 8 in both MIR and debug output
ClosedPublic

Authored by thegameg on Dec 12 2017, 8:24 AM.

Details

Summary

Work towards the unification of MIR and debug output by printing %const.0 + 8 instead of <cp#0+8> and %const.0 - 8 instead of <cp#-8>.

Only debug syntax is affected.

Diff Detail

Repository
rL LLVM

Event Timeline

thegameg created this revision.Dec 12 2017, 8:24 AM
MatzeB accepted this revision.Dec 12 2017, 6:47 PM

LGTM, bonus points for extending the MIRLangRef.rst

This revision is now accepted and ready to land.Dec 12 2017, 6:47 PM
This revision was automatically updated to reflect the committed changes.

I went ahead and committed also:

  • r320566: [CodeGen] Print jump-table index operands as %jump-table.0 in both MIR and debug info
  • r320565: [CodeGen] Print target index operands as target-index(target-specific) + 8 in both MIR and debug info

which are pretty similar.