aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2017-11-02 23:37:32 +0000
committerPuyan Lotfi <puyan@puyan.org>2017-11-02 23:37:32 +0000
commita521c4ac553441e081c3a043cb95f5cc82848850 (patch)
treea62fcd3a6cec566f5f8f7e80826936d2a175b960 /llvm/lib/CodeGen/CodeGen.cpp
parent13153eef561c5eb3295e1d0f3018ff32b54510af (diff)
downloadllvm-a521c4ac553441e081c3a043cb95f5cc82848850.zip
llvm-a521c4ac553441e081c3a043cb95f5cc82848850.tar.gz
llvm-a521c4ac553441e081c3a043cb95f5cc82848850.tar.bz2
mir-canon: First commit.
mir-canon (MIRCanonicalizerPass) is a pass designed to reorder instructions and rename operands so that two similar programs will diff more cleanly after being run through mir-canon than they would otherwise. This project is still a work in progress and there are ideas still being discussed for improving diff quality. M include/llvm/InitializePasses.h M lib/CodeGen/CMakeLists.txt M lib/CodeGen/CodeGen.cpp A lib/CodeGen/MIRCanonicalizerPass.cpp llvm-svn: 317285
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp
index f4ccb48..bfab865 100644
--- a/llvm/lib/CodeGen/CodeGen.cpp
+++ b/llvm/lib/CodeGen/CodeGen.cpp
@@ -99,6 +99,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
initializeVirtRegRewriterPass(Registry);
initializeWinEHPreparePass(Registry);
initializeXRayInstrumentationPass(Registry);
+ initializeMIRCanonicalizerPass(Registry);
}
void LLVMInitializeCodeGen(LLVMPassRegistryRef R) {