summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-05 20:46:53 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-05 20:46:53 +0000
commit3bb55e98e2726535d975022a4c15b3955342e627 (patch)
tree3aa7c674f2905b44b9778cedd923dcd3d12caf4e
parente2a7a8278fc58f75a88aeb1b520eb6d824c17ca7 (diff)
downloadbcm5719-llvm-3bb55e98e2726535d975022a4c15b3955342e627.tar.gz
bcm5719-llvm-3bb55e98e2726535d975022a4c15b3955342e627.zip
[WebAssembly] Replace the fake JUMP_TABLE instruction with a def : Pat. NFC.
llvm-svn: 254864
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
index c36a45fe91d..dafe6c1ed64 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
@@ -67,7 +67,6 @@ def WebAssemblywrapper : SDNode<"WebAssemblyISD::Wrapper",
//===----------------------------------------------------------------------===//
def bb_op : Operand<OtherVT>;
-def tjumptable_op : Operand<iPTR>;
//===----------------------------------------------------------------------===//
// WebAssembly Instruction Format Definitions.
@@ -135,13 +134,11 @@ def : Pat<(i32 (WebAssemblywrapper tglobaladdr:$dst)),
(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">;
OpenPOWER on IntegriCloud