From: Dan Gohman Date: Sat, 5 Dec 2015 20:46:53 +0000 (+0000) Subject: [WebAssembly] Replace the fake JUMP_TABLE instruction with a def : Pat. NFC. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=39f84fda2f1b44f926a313e138721d4b14d00da7 [WebAssembly] Replace the fake JUMP_TABLE instruction with a def : Pat. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254864 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/WebAssembly/WebAssemblyInstrInfo.td b/lib/Target/WebAssembly/WebAssemblyInstrInfo.td index c36a45fe91d..dafe6c1ed64 100644 --- a/lib/Target/WebAssembly/WebAssemblyInstrInfo.td +++ b/lib/Target/WebAssembly/WebAssemblyInstrInfo.td @@ -67,7 +67,6 @@ def WebAssemblywrapper : SDNode<"WebAssemblyISD::Wrapper", //===----------------------------------------------------------------------===// def bb_op : Operand; -def tjumptable_op : Operand; //===----------------------------------------------------------------------===// // 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">;