diff options
author | Dan Gohman <dan433584@gmail.com> | 2016-01-12 20:30:51 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2016-01-12 20:30:51 +0000 |
commit | 3469ee120c753c60875ddc301ea7921700b8730a (patch) | |
tree | d62ed4d25232fdebeaa796089cc96661072f6bcd /llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td | |
parent | 1307d4c7dfca31586383925bb0e99c144dcc0dac (diff) | |
download | bcm5719-llvm-3469ee120c753c60875ddc301ea7921700b8730a.tar.gz bcm5719-llvm-3469ee120c753c60875ddc301ea7921700b8730a.zip |
[WebAssembly] Introduce a WebAssemblyTargetStreamer class.
Refactor .param, .result, .local, and .endfunc, as directives, using the
proper MCTargetStreamer mechanism, rather than fake instructions.
llvm-svn: 257511
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td index d2852012be1..fda95953db8 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td @@ -42,19 +42,19 @@ let Defs = [ARGUMENTS] in { // jump tables, so in practice we don't ever use TABLESWITCH_I64 in wasm32 mode // currently. // Set TSFlags{0} to 1 to indicate that the variable_ops are immediates. -// Set TSFlags{2} to 1 to indicate that the immediates represent labels. +// Set TSFlags{1} to 1 to indicate that the immediates represent labels. let isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 in { def TABLESWITCH_I32 : I<(outs), (ins I32:$index, bb_op:$default, variable_ops), [(WebAssemblytableswitch I32:$index, bb:$default)], "tableswitch\t$index, $default"> { let TSFlags{0} = 1; - let TSFlags{2} = 1; + let TSFlags{1} = 1; } def TABLESWITCH_I64 : I<(outs), (ins I64:$index, bb_op:$default, variable_ops), [(WebAssemblytableswitch I64:$index, bb:$default)], "tableswitch\t$index, $default"> { let TSFlags{0} = 1; - let TSFlags{2} = 1; + let TSFlags{1} = 1; } } // isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 |