This is an archive of the discontinued LLVM Phabricator instance.

IR: Move the slot tracker out of AsmWriter into a separate public module.
AbandonedPublic

Authored by arphaman on Jun 17 2015, 1:20 PM.

Details

Summary

This patch moves the SlotTracker class out of AsmWriter.cpp into a separate module that's publicly accessible.

This patch would be useful for MIR Serialization, in particular it would enable the MIR parser to parse metadata machine operands. The metadata machine operands are serialized using the familiar '!' <slot> notation, and the MIR parser has to be able to map from slot numbers to the actual metadata nodes. The SlotTracker class would allow the MIRParser to create this mapping.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 27862.Jun 17 2015, 1:20 PM
arphaman retitled this revision from to IR: Move the slot tracker out of AsmWriter into a separate public module..
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 abandoned this revision.Jun 17 2015, 2:06 PM

This patch isn't needed as I should surface the slot mapping from the LLVM IR parsing side rather than the printing side to parse the metadata operands correctly.