diff options
| author | Jacob Gravelle <jgravelle@google.com> | 2018-03-30 20:36:58 +0000 |
|---|---|---|
| committer | Jacob Gravelle <jgravelle@google.com> | 2018-03-30 20:36:58 +0000 |
| commit | 40926451d2aaf5498acb3891f46b78f54b7fcbe1 (patch) | |
| tree | da9eb4f541c0f8b99b4ce97994edad479856dfc1 /llvm/lib/Target/WebAssembly/WebAssemblyReplacePhysRegs.cpp | |
| parent | 1e6bb8d5de52252e12f41955e6c608d23193917e (diff) | |
| download | bcm5719-llvm-40926451d2aaf5498acb3891f46b78f54b7fcbe1.tar.gz bcm5719-llvm-40926451d2aaf5498acb3891f46b78f54b7fcbe1.zip | |
[WebAssembly] Register wasm passes with the PassRegistry
Summary:
This exposes WebAssembly passes for use on the command line (as
arguments to -print-before and the like).
Reviewers: dschuff, sunfish
Subscribers: MatzeB, jfb, sbc100, llvm-commits, aheejin
Differential Revision: https://reviews.llvm.org/D45103
llvm-svn: 328901
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyReplacePhysRegs.cpp')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyReplacePhysRegs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyReplacePhysRegs.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyReplacePhysRegs.cpp index 878ffd08d22..85e20c74821 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyReplacePhysRegs.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyReplacePhysRegs.cpp @@ -53,6 +53,10 @@ private: } // end anonymous namespace char WebAssemblyReplacePhysRegs::ID = 0; +INITIALIZE_PASS(WebAssemblyReplacePhysRegs, DEBUG_TYPE, + "Replace physical registers with virtual registers", + false, false) + FunctionPass *llvm::createWebAssemblyReplacePhysRegs() { return new WebAssemblyReplacePhysRegs(); } |

