This is an archive of the discontinued LLVM Phabricator instance.

opt: Add option to strip or add llvm value names
AbandonedPublic

Authored by MatzeB on Jun 24 2015, 11:44 AM.

Details

Reviewers
None
Summary

This adds two commandline options to the opt tool:

  • -name-values: Give anonymous llvm values a name.
  • -strip-value-names: Removes names from llvm values.

This is useful for developers that want to manually edit .ll files. This is because with anonymous values you can't insert/remove instructions without renumbering all following values. The stripping part may be useful if you want to hide names from the original source or in combination with name-values you can force all values into a simple naming scheme.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 28378.Jun 24 2015, 11:44 AM
MatzeB retitled this revision from to opt: Add option to strip or add llvm value names.
MatzeB updated this object.
MatzeB edited the test plan for this revision. (Show Details)
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: Unknown Object (MLST).
arsenm added a subscriber: arsenm.Jun 24 2015, 12:12 PM

You can already do this with opt -strip, opt -instnamer / opt-metarenamer

MatzeB abandoned this revision.Jun 24 2015, 12:35 PM

Oops, I somehow missed those. Abandoning.