summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.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/WebAssemblyCFGSort.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/WebAssemblyCFGSort.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
index 700111743ee..88c3cf63b62 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
@@ -56,6 +56,9 @@ public:
} // end anonymous namespace
char WebAssemblyCFGSort::ID = 0;
+INITIALIZE_PASS(WebAssemblyCFGSort, DEBUG_TYPE,
+ "Reorders blocks in topological order", false, false)
+
FunctionPass *llvm::createWebAssemblyCFGSort() {
return new WebAssemblyCFGSort();
}
OpenPOWER on IntegriCloud