Page MenuHomePhabricator

MIR Serialization: Print and parse function's MBBs and simple MBB attributes.
ClosedPublic

Authored by arphaman on Jun 15 2015, 5:05 PM.

Details

Summary

This patch implements the initial serialization of the machine basic blocks in a machine function. Only the simple, scalar MBB attributes are serialized. The link to LLVM IR's basic block is preserved when that basic block has a name.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 27730.Jun 15 2015, 5:05 PM
arphaman retitled this revision from to MIR Serialization: Print and parse function's MBBs and simple MBB attributes..
arphaman updated this object.
arphaman edited the test plan for this revision. (Show Details)
arphaman added reviewers: dexonsmith, bob.wilson, bogner.
arphaman set the repository for this revision to rL LLVM.
arphaman added a subscriber: Unknown Object (MLST).
arphaman updated this revision to Diff 27884.Jun 17 2015, 4:00 PM

I've updated the patch to address Duncan's comments:

  • Use the symbol table to look up BB by name.
  • Print "<unnamed bb>" for names in MBBs with unnamed BB references.
This revision was automatically updated to reflect the committed changes.