diff options
| author | Dan Gohman <dan433584@gmail.com> | 2015-11-05 20:44:29 +0000 |
|---|---|---|
| committer | Dan Gohman <dan433584@gmail.com> | 2015-11-05 20:44:29 +0000 |
| commit | da7f428a4a7fa827e4c093fe76cb153ea034e568 (patch) | |
| tree | 83014edde1ee9430096f2e2653412eb1260f5548 /llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td | |
| parent | af29bd4fd43d2a64844c99f4da3ba97d0d7d2402 (diff) | |
| download | bcm5719-llvm-da7f428a4a7fa827e4c093fe76cb153ea034e568.tar.gz bcm5719-llvm-da7f428a4a7fa827e4c093fe76cb153ea034e568.zip | |
[WebAssembly] Rename Immediate instructions to Const.
This more closely reflects the naming convention in the spec.
llvm-svn: 252204
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td index 32f7923edbe..71adcbfbe54 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td @@ -93,18 +93,18 @@ defm : ARGUMENT<F32>; 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), |

