mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-07 12:30:44 +00:00
[WebAssembly] Fix comments to say "LIFO" instead of "FIFO" when describing a stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254523 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
26ecf8e5ac
commit
454061bf3a
@ -341,7 +341,7 @@ bool WebAssemblyCFGStackify::runOnMachineFunction(MachineFunction &MF) {
|
||||
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;
|
||||
|
@ -37,7 +37,7 @@ class WebAssemblyFunctionInfo final : public MachineFunctionInfo {
|
||||
/// 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:
|
||||
|
@ -117,7 +117,7 @@ bool WebAssemblyRegStackify::runOnMachineFunction(MachineFunction &MF) {
|
||||
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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user