This is an archive of the discontinued LLVM Phabricator instance.

MIR Serialization: Print and parse machine function names.
ClosedPublic

Authored by arphaman on May 18 2015, 4:26 PM.

Details

Summary

This patch is based on the initial MIR serialization patch (http://reviews.llvm.org/D9616).

In this patch the machine function's names are printed out and then parsed when loading a mir file.

This patch introduces a serializable struct that will mirror the state of the actual machine functions.
This patch doesn't interact with the real machine functions when parsing yet - the connection to the
machine analysis pass where machine functions are created and the serialization of remaining attributes
in machine functions will be implemented in later patches.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 26026.May 18 2015, 4:26 PM
arphaman retitled this revision from to MIR Serialization: Print and parse machine function names..
arphaman updated this object.
arphaman edited the test plan for this revision. (Show Details)
arphaman added reviewers: dexonsmith, bogner, bob.wilson.
arphaman set the repository for this revision to rL LLVM.
arphaman added a subscriber: Unknown Object (MLST).
arphaman updated this revision to Diff 26081.May 19 2015, 12:39 PM

Fixed the path for 'llc' in the test cases.

Removed unneeded machine function yaml document in one of the tests.

arphaman updated this revision to Diff 26280.May 21 2015, 3:14 PM

I've rebased the patch and removed the unnecessary target details from test cases.

arphaman updated this revision to Diff 26287.May 21 2015, 4:31 PM

I've updated the patch using Duncan's suggestions:

  • Renamed testcases.
  • Renamed 'Mod' to 'M'
  • Simplified control flow in MIR yaml parsing code.
arphaman updated this revision to Diff 26623.May 27 2015, 11:43 AM

I rebased this patch on the reorganized initial MIR commit that landed in r238341.

This revision was automatically updated to reflect the committed changes.