case WebAssembly::ARGUMENT_F64:
OS << "get_local " << argToString(MI->getOperand(1));
break;
- case WebAssembly::Immediate_I32:
+ case WebAssembly::Const_I32:
OS << "i32.const " << MI->getOperand(1).getImm();
break;
- case WebAssembly::Immediate_I64:
+ case WebAssembly::Const_I64:
OS << "i64.const " << MI->getOperand(1).getImm();
break;
- case WebAssembly::Immediate_F32:
+ case WebAssembly::Const_F32:
OS << "f32.const " << toString(MI->getOperand(1).getFPImm()->getValueAPF());
break;
- case WebAssembly::Immediate_F64:
+ case WebAssembly::Const_F64:
OS << "f64.const " << toString(MI->getOperand(1).getFPImm()->getValueAPF());
break;
default: {
defm : ARGUMENT<F64>;
-def Immediate_I32 : I<(outs I32:$res), (ins i32imm:$imm),
- [(set I32:$res, imm:$imm)],
- "i32.const $res, $imm">;
-def Immediate_I64 : I<(outs I64:$res), (ins i64imm:$imm),
- [(set I64:$res, imm:$imm)],
- "i64.const $res, $imm">;
-def Immediate_F32 : I<(outs F32:$res), (ins f32imm:$imm),
- [(set F32:$res, fpimm:$imm)],
- "f32.const $res, $imm">;
-def Immediate_F64 : I<(outs F64:$res), (ins f64imm:$imm),
- [(set F64:$res, fpimm:$imm)],
- "f64.const $res, $imm">;
+def Const_I32 : I<(outs I32:$res), (ins i32imm:$imm),
+ [(set I32:$res, imm:$imm)],
+ "i32.const $res, $imm">;
+def Const_I64 : I<(outs I64:$res), (ins i64imm:$imm),
+ [(set I64:$res, imm:$imm)],
+ "i64.const $res, $imm">;
+def Const_F32 : I<(outs F32:$res), (ins f32imm:$imm),
+ [(set F32:$res, fpimm:$imm)],
+ "f32.const $res, $imm">;
+def Const_F64 : I<(outs F64:$res), (ins f64imm:$imm),
+ [(set F64:$res, fpimm:$imm)],
+ "f64.const $res, $imm">;
// Special types of immediates. FIXME: Hard-coded as 32-bit for now.
def GLOBAL : I<(outs I32:$dst), (ins global:$addr),