[llvm] r254096 - [WebAssembly] Add some comments. NFC.

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 25 13:32:06 PST 2015


Author: djg
Date: Wed Nov 25 15:32:06 2015
New Revision: 254096

URL: http://llvm.org/viewvc/llvm-project?rev=254096&view=rev
Log:
[WebAssembly] Add some comments. NFC.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp?rev=254096&r1=254095&r2=254096&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp Wed Nov 25 15:32:06 2015
@@ -187,7 +187,12 @@ void WebAssemblyPassConfig::addPostRegAl
 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());
 }




More information about the llvm-commits mailing list