aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-25 21:32:06 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-25 21:32:06 +0000
commit5941bde03cf68a3100d4a3fb30af404bfdb1a618 (patch)
tree213bd6152e14b6668ea21cce0b17bae6cc4e603e /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent7ed6b2f414a2760ebc6510b059bb1db096d677c2 (diff)
downloadllvm-5941bde03cf68a3100d4a3fb30af404bfdb1a618.zip
llvm-5941bde03cf68a3100d4a3fb30af404bfdb1a618.tar.gz
llvm-5941bde03cf68a3100d4a3fb30af404bfdb1a618.tar.bz2
[WebAssembly] Add some comments. NFC.
llvm-svn: 254096
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index 2933294..c98bea9 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -187,7 +187,12 @@ void WebAssemblyPassConfig::addPostRegAlloc() {
void WebAssemblyPassConfig::addPreSched2() {}
void WebAssemblyPassConfig::addPreEmitPass() {
+ // Put the CFG in structured form; insert BLOCK and LOOP markers.
addPass(createWebAssemblyCFGStackify());
+
+ // Create a mapping from LLVM CodeGen virtual registers to wasm registers.
addPass(createWebAssemblyRegNumbering());
+
+ // Perform the very last peephole optimizations on the code.
addPass(createWebAssemblyPeephole());
}