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/WebAssemblyRegStackify.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/WebAssemblyRegStackify.cpp')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp index a4bb967f36f..2ccd7343d00 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp @@ -67,6 +67,10 @@ public: } // end anonymous namespace char WebAssemblyRegStackify::ID = 0; +INITIALIZE_PASS(WebAssemblyRegStackify, DEBUG_TYPE, + "Reorder instructions to use the WebAssembly value stack", + false, false) + FunctionPass *llvm::createWebAssemblyRegStackify() { return new WebAssemblyRegStackify(); } |

