diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td index d0d164fd381..e27d81937dd 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td @@ -47,6 +47,7 @@ let Defs = [ARGUMENTS] in { // FIXME: this can't inherit from I<> since there is no way to inherit from a // multiclass and still have the let statements. let isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 in { +let isCodeGenOnly = 1 in def BR_TABLE_I32 : NI<(outs), (ins I32:$index, variable_ops), [(WebAssemblybr_table I32:$index)], 0, "br_table \t$index", 0x0e> { @@ -59,6 +60,7 @@ def BR_TABLE_I32_S : NI<(outs), (ins variable_ops), let TSFlags{0} = 1; let TSFlags{1} = 1; } +let isCodeGenOnly = 1 in def BR_TABLE_I64 : NI<(outs), (ins I64:$index, variable_ops), [(WebAssemblybr_table I64:$index)], 0, "br_table \t$index"> { diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td index 79066c5adfb..c3ad3f78b61 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td @@ -48,6 +48,7 @@ class NI<dag oops, dag iops, list<dag> pattern, bit stack, string asmstr = "", multiclass I<dag oops_r, dag iops_r, dag oops_s, dag iops_s, list<dag> pattern_r, string asmstr_r = "", string asmstr_s = "", bits<32> inst = -1> { + let isCodeGenOnly = 1 in def "" : NI<oops_r, iops_r, pattern_r, 0, asmstr_r, inst>; def _S : NI<oops_s, iops_s, [], 1, asmstr_s, inst>; } |

