[llvm] r254523 - [WebAssembly] Fix comments to say "LIFO" instead of "FIFO" when describing a stack.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 2 10:08:49 PST 2015
Author: djg
Date: Wed Dec 2 12:08:49 2015
New Revision: 254523
URL: http://llvm.org/viewvc/llvm-project?rev=254523&view=rev
Log:
[WebAssembly] Fix comments to say "LIFO" instead of "FIFO" when describing a stack.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegisterInfo.td
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp?rev=254523&r1=254522&r2=254523&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp Wed Dec 2 12:08:49 2015
@@ -341,7 +341,7 @@ bool WebAssemblyCFGStackify::runOnMachin
PlaceMarkers(MF, MLI, TII, MDT);
#ifndef NDEBUG
- // Verify that block and loop beginnings and endings are in FIFO order, and
+ // Verify that block and loop beginnings and endings are in LIFO order, and
// that all references to blocks are to blocks on the stack at the point of
// the reference.
SmallVector<std::pair<MachineBasicBlock *, bool>, 0> Stack;
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h?rev=254523&r1=254522&r2=254523&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h Wed Dec 2 12:08:49 2015
@@ -37,7 +37,7 @@ class WebAssemblyFunctionInfo final : pu
/// determined or made to meet the stack requirements:
/// - single use (per path)
/// - single def (per path)
- /// - defined and used in FIFO order with other stack registers
+ /// - defined and used in LIFO order with other stack registers
BitVector VRegStackified;
public:
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp?rev=254523&r1=254522&r2=254523&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp Wed Dec 2 12:08:49 2015
@@ -117,7 +117,7 @@ bool WebAssemblyRegStackify::runOnMachin
break;
// Iterate through the inputs in reverse order, since we'll be pulling
- // operands off the stack in FIFO order.
+ // operands off the stack in LIFO order.
bool AnyStackified = false;
for (MachineOperand &Op : reverse(Insert->uses())) {
// We're only interested in explicit virtual register operands.
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegisterInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegisterInfo.td?rev=254523&r1=254522&r2=254523&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegisterInfo.td (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegisterInfo.td Wed Dec 2 12:08:49 2015
@@ -40,7 +40,7 @@ def F32_0 : WebAssemblyReg<"%f32.0">;
def F64_0 : WebAssemblyReg<"%f64.0">;
// The expression stack "register". This is an opaque entity which serves to
-// order uses and defs that must remain in FIFO order.
+// order uses and defs that must remain in LIFO order.
def EXPR_STACK : WebAssemblyReg<"STACK">;
// The incoming arguments "register". This is an opaque entity which serves to
More information about the llvm-commits
mailing list