Skip to content

Commit

Permalink
[mir-canon][NFC] Move MIR vreg renaming code to separate file for bet…
Browse files Browse the repository at this point in the history
…ter reuse.

Moving MIRCanonicalizerPass vreg renaming code to MIRVRegNamerUtils so that it
can be reused in another pass (ie planing to write a standalone mir-namer pass).

I'm going to write a mir-namer pass so that next time someone has to author a
test in MIR, they can use it to cleanup the naming and make it more readable by
having the numbered vregs swapped out with named vregs.

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

llvm-svn: 370985
  • Loading branch information
plotfi committed Sep 4, 2019
1 parent c40449f commit 028061d
Show file tree
Hide file tree
Showing 4 changed files with 436 additions and 337 deletions.
1 change: 1 addition & 0 deletions llvm/lib/CodeGen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ add_llvm_library(LLVMCodeGen
RegisterPressure.cpp
RegisterScavenging.cpp
RenameIndependentSubregs.cpp
MIRVRegNamerUtils.cpp
MIRCanonicalizerPass.cpp
RegisterUsageInfo.cpp
RegUsageInfoCollector.cpp
Expand Down
Loading

0 comments on commit 028061d

Please sign in to comment.