[PATCH] D115323: [MetaRenamer] Add command line options to disable renaming specified prefixes

Dmitry Makogon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 8 00:19:31 PST 2021


dmakogon created this revision.
dmakogon added reviewers: mkazantsev, nikic, lebedev.ri.
Herald added a subscriber: hiraditya.
dmakogon requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch adds 4 options for specifying functions, aliases, globals and structs name prefixes
that don't need to be renamed by MetaRenamer pass.
This is useful if one has some downstream logic that depends directly on an entity name.
MetaRenamer can break this logic, but with the patch you can tell it not to rename certain names.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115323

Files:
  llvm/lib/Transforms/Utils/MetaRenamer.cpp
  llvm/test/Transforms/MetaRenamer/exclude-names.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115323.392667.patch
Type: text/x-patch
Size: 6238 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211208/bff3aa4e/attachment.bin>


More information about the llvm-commits mailing list