From 1a2634b63567d0c504fb5577e069b04585b68094 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 13 Nov 2015 00:46:31 +0000 Subject: [PATCH] [WebAssembly] Rename BR_IF_ to BR_IF With MC-based instruction printing, we no longer need instruction names to mangle in hints about how they should be printed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252987 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/WebAssembly/WebAssemblyISD.def | 2 +- lib/Target/WebAssembly/WebAssemblyInstrControl.td | 6 +++--- lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Target/WebAssembly/WebAssemblyISD.def b/lib/Target/WebAssembly/WebAssemblyISD.def index 36b6d9c68c8..52c37757cdb 100644 --- a/lib/Target/WebAssembly/WebAssemblyISD.def +++ b/lib/Target/WebAssembly/WebAssemblyISD.def @@ -19,7 +19,7 @@ HANDLE_NODETYPE(CALL0) HANDLE_NODETYPE(RETURN) HANDLE_NODETYPE(ARGUMENT) HANDLE_NODETYPE(Wrapper) -HANDLE_NODETYPE(BR_IF_) +HANDLE_NODETYPE(BR_IF) HANDLE_NODETYPE(SWITCH) // add memory opcodes starting at ISD::FIRST_TARGET_MEMORY_OPCODE here... diff --git a/lib/Target/WebAssembly/WebAssemblyInstrControl.td b/lib/Target/WebAssembly/WebAssemblyInstrControl.td index b5140324d4f..5883553e8f1 100644 --- a/lib/Target/WebAssembly/WebAssemblyInstrControl.td +++ b/lib/Target/WebAssembly/WebAssemblyInstrControl.td @@ -13,9 +13,9 @@ //===----------------------------------------------------------------------===// let isBranch = 1, isTerminator = 1, hasCtrlDep = 1 in { -def BR_IF_ : I<(outs), (ins bb_op:$dst, I32:$a), - [(brcond I32:$a, bb:$dst)], - "br_if $dst, $a">; +def BR_IF : I<(outs), (ins bb_op:$dst, I32:$a), + [(brcond I32:$a, bb:$dst)], + "br_if $dst, $a">; let isBarrier = 1 in { def BR : I<(outs), (ins bb_op:$dst), [(br bb:$dst)], diff --git a/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp b/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp index a18357da19e..fe27b1ac669 100644 --- a/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp +++ b/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp @@ -51,7 +51,7 @@ bool WebAssemblyInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, default: // Unhandled instruction; bail out. return true; - case WebAssembly::BR_IF_: + case WebAssembly::BR_IF: if (HaveCond) return true; Cond.push_back(MI.getOperand(1)); @@ -104,7 +104,7 @@ unsigned WebAssemblyInstrInfo::InsertBranch( return 1; } - BuildMI(&MBB, DL, get(WebAssembly::BR_IF_)) + BuildMI(&MBB, DL, get(WebAssembly::BR_IF)) .addMBB(TBB) .addOperand(Cond[0]); if (!FBB) -- 2.34.1