From 53828fd77797c8a9920619e19b5f4ad5cc779946 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 23 Nov 2015 16:50:18 +0000 Subject: [WebAssembly] Emit .param, .result, and .local through MC. This eliminates one of the main remaining uses of EmitRawText. llvm-svn: 253878 --- llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td') 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. //===----------------------------------------------------------------------===// -- cgit v1.2.3