summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyStoreResults.cpp
diff options
context:
space:
mode:
authorJacob Gravelle <jgravelle@google.com>2018-03-30 20:36:58 +0000
committerJacob Gravelle <jgravelle@google.com>2018-03-30 20:36:58 +0000
commit40926451d2aaf5498acb3891f46b78f54b7fcbe1 (patch)
treeda9eb4f541c0f8b99b4ce97994edad479856dfc1 /llvm/lib/Target/WebAssembly/WebAssemblyStoreResults.cpp
parent1e6bb8d5de52252e12f41955e6c608d23193917e (diff)
downloadbcm5719-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/WebAssemblyStoreResults.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyStoreResults.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyStoreResults.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyStoreResults.cpp
index 22a5a9099e7..9c73f7aad73 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyStoreResults.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyStoreResults.cpp
@@ -68,6 +68,9 @@ private:
} // end anonymous namespace
char WebAssemblyStoreResults::ID = 0;
+INITIALIZE_PASS(WebAssemblyStoreResults, DEBUG_TYPE,
+ "Optimize store result values for WebAssembly", false, false)
+
FunctionPass *llvm::createWebAssemblyStoreResults() {
return new WebAssemblyStoreResults();
}
OpenPOWER on IntegriCloud