]> granicus.if.org Git - llvm/commit
[MIR] MIRNamer pass for improving MIR test authoring experience.
authorPuyan Lotfi <puyan@puyan.org>
Thu, 5 Sep 2019 20:44:33 +0000 (20:44 +0000)
committerPuyan Lotfi <puyan@puyan.org>
Thu, 5 Sep 2019 20:44:33 +0000 (20:44 +0000)
commit9a66698dc07f004a414506da6114a9ff70da9a44
treeb1e0b341bb41fee7691b4885df19df035bdf84ea
parent7ebdaff1b8b0118b3e1008b6e88cdd4e336964b1
[MIR] MIRNamer pass for improving MIR test authoring experience.

This patch reuses the MIR vreg renamer from the MIRCanonicalizerPass to cleanup
names of vregs in a MIR file for MIR test authors. I found it useful when
writing a regression test for a globalisel failure I encountered recently and
thought it might be useful for other folks as well.

Differential Revision: https://reviews.llvm.org/D67209

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371121 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/InitializePasses.h
lib/CodeGen/CMakeLists.txt
lib/CodeGen/CodeGen.cpp
lib/CodeGen/MIRNamerPass.cpp [new file with mode: 0644]
test/CodeGen/MIR/AArch64/mirnamer.mir [new file with mode: 0644]