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
HANDLE_NODETYPE(RETURN)
HANDLE_NODETYPE(ARGUMENT)
HANDLE_NODETYPE(Wrapper)
HANDLE_NODETYPE(RETURN)
HANDLE_NODETYPE(ARGUMENT)
HANDLE_NODETYPE(Wrapper)
HANDLE_NODETYPE(SWITCH)
// add memory opcodes starting at ISD::FIRST_TARGET_MEMORY_OPCODE here...
HANDLE_NODETYPE(SWITCH)
// add memory opcodes starting at ISD::FIRST_TARGET_MEMORY_OPCODE here...
//===----------------------------------------------------------------------===//
let isBranch = 1, isTerminator = 1, hasCtrlDep = 1 in {
//===----------------------------------------------------------------------===//
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)],
let isBarrier = 1 in {
def BR : I<(outs), (ins bb_op:$dst),
[(br bb:$dst)],
default:
// Unhandled instruction; bail out.
return true;
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));
if (HaveCond)
return true;
Cond.push_back(MI.getOperand(1));
- BuildMI(&MBB, DL, get(WebAssembly::BR_IF_))
+ BuildMI(&MBB, DL, get(WebAssembly::BR_IF))
.addMBB(TBB)
.addOperand(Cond[0]);
if (!FBB)
.addMBB(TBB)
.addOperand(Cond[0]);
if (!FBB)