Make it possible to run MIRCanonicalizer in pipeline.
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Sat, 16 Nov 2019 22:14:20 +0000 (14:14 -0800)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Sat, 16 Nov 2019 22:34:04 +0000 (14:34 -0800)
https://reviews.llvm.org/D70321

llvm/include/llvm/CodeGen/Passes.h

index 5915cb3b2c734d19f516277b8f3fa2da7d0909f6..c21414760ce9c3d2293107b82182bc26890024ee 100644 (file)
@@ -275,6 +275,11 @@ namespace llvm {
   /// MachineCSE - This pass performs global CSE on machine instructions.
   extern char &MachineCSEID;
 
+  /// MIRCanonicalizer - This pass canonicalizes MIR by renaming vregs
+  /// according to the semantics of the instruction as well as hoists
+  /// code.
+  extern char &MIRCanonicalizerID;
+
   /// ImplicitNullChecks - This pass folds null pointer checks into nearby
   /// memory operations.
   extern char &ImplicitNullChecksID;