summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-23 16:50:18 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-23 16:50:18 +0000
commit53828fd77797c8a9920619e19b5f4ad5cc779946 (patch)
tree4061406a202c67971f0cd133009ca96034b14921 /llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
parent1ca881c4bbbe32213e435c050255b02764ea2004 (diff)
downloadbcm5719-llvm-53828fd77797c8a9920619e19b5f4ad5cc779946.tar.gz
bcm5719-llvm-53828fd77797c8a9920619e19b5f4ad5cc779946.zip
[WebAssembly] Emit .param, .result, and .local through MC.
This eliminates one of the main remaining uses of EmitRawText. llvm-svn: 253878
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
index dae9cffd2f5..1fa79020a2e 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
@@ -124,6 +124,11 @@ def JUMP_TABLE : I<(outs I32:$dst), (ins tjumptable_op:$addr),
[(set I32:$dst, (WebAssemblywrapper tjumptable:$addr))],
"jump_table\t$dst, $addr">;
+// Function signature and local variable declaration "instructions".
+def PARAM : I<(outs), (ins variable_ops), [], ".param \t">;
+def RESULT : I<(outs), (ins variable_ops), [], ".result \t">;
+def LOCAL : I<(outs), (ins variable_ops), [], ".local \t">;
+
//===----------------------------------------------------------------------===//
// Additional sets of instructions.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud