From 3acb187d95a8cbe1941459a9c6fb62cc5d44b1e5 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 24 Oct 2016 23:27:49 +0000 Subject: [WebAssembly] Implement more WebAssembly binary encoding. This changes locals from being declared by the emitLocal hook in WebAssemblyTargetStreamer, rather than with an instruction. After exploring the infastructure in LLVM more, this seems to make more sense since declaring locals doesn't use an encoded opcode. This also adds more 0xd opcodes, type encodings, and miscellaneous binary encoding bits. llvm-svn: 285040 --- llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td') diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td index ab28dd3e1c7..7cdeb397be9 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td @@ -75,10 +75,10 @@ let Defs = [ARGUMENTS] in { def SELECT_I32 : I<(outs I32:$dst), (ins I32:$lhs, I32:$rhs, I32:$cond), [(set I32:$dst, (select I32:$cond, I32:$lhs, I32:$rhs))], - "i32.select\t$dst, $lhs, $rhs, $cond">; + "i32.select\t$dst, $lhs, $rhs, $cond", 0x1b>; def SELECT_I64 : I<(outs I64:$dst), (ins I64:$lhs, I64:$rhs, I32:$cond), [(set I64:$dst, (select I32:$cond, I64:$lhs, I64:$rhs))], - "i64.select\t$dst, $lhs, $rhs, $cond">; + "i64.select\t$dst, $lhs, $rhs, $cond", 0x1b>; } // Defs = [ARGUMENTS] -- cgit v1.2.3