llvm.org GIT mirror llvm / 444e864
[WebAssembly] Add more whitespace characters to prettify the assembly output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253472 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 3 years ago
2 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
2323 multiclass CALL {
2424 def CALL_#vt : I<(outs vt:$dst), (ins global:$callee, variable_ops),
2525 [(set vt:$dst, (WebAssemblycall1 (WebAssemblywrapper tglobaladdr:$callee)))],
26 "call\t$callee, $dst">;
26 "call \t$callee, $dst">;
2727 def CALL_INDIRECT_#vt : I<(outs vt:$dst), (ins I32:$callee, variable_ops),
2828 [(set vt:$dst, (WebAssemblycall1 I32:$callee))],
2929 "call_indirect\t$callee, $dst">;
3636
3737 def CALL_VOID : I<(outs), (ins global:$callee, variable_ops),
3838 [(WebAssemblycall0 (WebAssemblywrapper tglobaladdr:$callee))],
39 "call\t$callee">;
39 "call \t$callee">;
4040 def CALL_INDIRECT_VOID : I<(outs), (ins I32:$callee, variable_ops),
4141 [(WebAssemblycall0 I32:$callee)],
4242 "call_indirect\t$callee">;
1414 let isBranch = 1, isTerminator = 1, hasCtrlDep = 1 in {
1515 def BR_IF : I<(outs), (ins I32:$a, bb_op:$dst),
1616 [(brcond I32:$a, bb:$dst)],
17 "br_if\t$a, $dst">;
17 "br_if \t$a, $dst">;
1818 let isBarrier = 1 in {
1919 def BR : I<(outs), (ins bb_op:$dst),
2020 [(br bb:$dst)],
21 "br\t$dst">;
21 "br \t$dst">;
2222 } // isBarrier = 1
2323 } // isBranch = 1, isTerminator = 1, hasCtrlDep = 1
2424
2828 let isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 in {
2929 def SWITCH_I32 : I<(outs), (ins I32:$index, variable_ops),
3030 [(WebAssemblyswitch I32:$index)],
31 "switch\t$index">;
31 "switch \t$index">;
3232 def SWITCH_I64 : I<(outs), (ins I64:$index, variable_ops),
3333 [(WebAssemblyswitch I64:$index)],
34 "switch\t$index">;
34 "switch \t$index">;
3535 } // isTerminator = 1, hasCtrlDep = 1, isBarrier = 1
3636
3737 // Placemarkers to indicate the start of a block or loop scope.
38 def BLOCK : I<(outs), (ins bb_op:$dst), [], "block\t$dst">;
39 def LOOP : I<(outs), (ins bb_op:$dst), [], "loop\t$dst">;
38 def BLOCK : I<(outs), (ins bb_op:$dst), [], "block \t$dst">;
39 def LOOP : I<(outs), (ins bb_op:$dst), [], "loop \t$dst">;
4040
4141 multiclass RETURN {
4242 def RETURN_#vt : I<(outs), (ins vt:$val), [(WebAssemblyreturn vt:$val)],
43 "return\t$val">;
43 "return \t$val">;
4444 }
4545
4646 let isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 in {