[llvm] r254864 - [WebAssembly] Replace the fake JUMP_TABLE instruction with a def : Pat. NFC.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 5 12:46:53 PST 2015
Author: djg
Date: Sat Dec 5 14:46:53 2015
New Revision: 254864
URL: http://llvm.org/viewvc/llvm-project?rev=254864&view=rev
Log:
[WebAssembly] Replace the fake JUMP_TABLE instruction with a def : Pat. NFC.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.td?rev=254864&r1=254863&r2=254864&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.td (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.td Sat Dec 5 14:46:53 2015
@@ -67,7 +67,6 @@ def WebAssemblywrapper : SDNode<"WebAss
//===----------------------------------------------------------------------===//
def bb_op : Operand<OtherVT>;
-def tjumptable_op : Operand<iPTR>;
//===----------------------------------------------------------------------===//
// WebAssembly Instruction Format Definitions.
@@ -135,13 +134,11 @@ def : Pat<(i32 (WebAssemblywrapper tglob
(CONST_I32 tglobaladdr:$dst)>;
def : Pat<(i32 (WebAssemblywrapper texternalsym:$dst)),
(CONST_I32 texternalsym:$dst)>;
+def : Pat<(i32 (WebAssemblywrapper tjumptable:$dst)),
+ (CONST_I32 tjumptable:$dst)>;
let Defs = [ARGUMENTS] in {
-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">;
More information about the llvm-commits
mailing list