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/WebAssemblyInstrInfo.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/WebAssemblyInstrInfo.td')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td index 419ad7fbeb7..2e682a47547 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td @@ -145,26 +145,6 @@ def : Pat<(i32 (WebAssemblywrapper tglobaladdr:$addr)), def : Pat<(i32 (WebAssemblywrapper texternalsym:$addr)), (CONST_I32 texternalsym:$addr)>; -let Defs = [ARGUMENTS] in { - -// Function signature and local variable declaration "instructions". -// Set TSFlags{0} to 1 to indicate that the variable_ops are immediates. -// Set TSFlags{1} to 1 to indicate that the immediates represent types. -def PARAM : I<(outs), (ins variable_ops), [], ".param \t"> { - let TSFlags{0} = 1; - let TSFlags{1} = 1; -} -def RESULT : I<(outs), (ins variable_ops), [], ".result \t"> { - let TSFlags{0} = 1; - let TSFlags{1} = 1; -} -def LOCAL : I<(outs), (ins variable_ops), [], ".local \t"> { - let TSFlags{0} = 1; - let TSFlags{1} = 1; -} - -} // Defs = [ARGUMENTS] - //===----------------------------------------------------------------------===// // Additional sets of instructions. //===----------------------------------------------------------------------===// |