diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-12-06 19:34:57 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-12-06 19:34:57 +0000 |
commit | 770f0d0a4012f8d28b762a12024ce40c34bbea39 (patch) | |
tree | 700349fdd11fc377c2e1447d7eac8dae98647d89 /llvm/lib | |
parent | a4b710a74f737c4d9ec4d55ecce0f93d2a6229a2 (diff) | |
download | bcm5719-llvm-770f0d0a4012f8d28b762a12024ce40c34bbea39.tar.gz bcm5719-llvm-770f0d0a4012f8d28b762a12024ce40c34bbea39.zip |
[WebAssembly] Make tableswitch's 'default' operand explicit. NFC.
llvm-svn: 254883
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td index 708d902e99e..9a9468bb390 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td @@ -42,12 +42,12 @@ let Defs = [ARGUMENTS] in { // jump tables, so in practice we don't ever use TABLESWITCH_I64 in wasm32 mode // currently. let isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 in { -def TABLESWITCH_I32 : I<(outs), (ins I32:$index, variable_ops), - [(WebAssemblytableswitch I32:$index)], - "tableswitch\t$index">; -def TABLESWITCH_I64 : I<(outs), (ins I64:$index, variable_ops), - [(WebAssemblytableswitch I64:$index)], - "tableswitch\t$index">; +def TABLESWITCH_I32 : I<(outs), (ins I32:$index, bb_op:$default, variable_ops), + [(WebAssemblytableswitch I32:$index, bb:$default)], + "tableswitch\t$index, $default">; +def TABLESWITCH_I64 : I<(outs), (ins I64:$index, bb_op:$default, variable_ops), + [(WebAssemblytableswitch I64:$index, bb:$default)], + "tableswitch\t$index, $default">; } // isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 // Placemarkers to indicate the start of a block or loop scope. |