summaryrefslogtreecommitdiff
path: root/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-29 22:59:19 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-29 22:59:19 +0000
commit10ad208c62f3054c9f3739159d8ab006ef707683 (patch)
tree1b255390e17b1acdc4628cf43524a46e562a60af /lib/Target/WebAssembly/WebAssemblyInstrInfo.td
parentae475496f69cc7bfe54e514108f648bdad52a585 (diff)
[WebAssembly] Set several MCInstrDesc flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/WebAssembly/WebAssemblyInstrInfo.td')
-rw-r--r--lib/Target/WebAssembly/WebAssemblyInstrInfo.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/WebAssembly/WebAssemblyInstrInfo.td b/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
index 52e0bd6e97f..caffac1bc52 100644
--- a/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
+++ b/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
@@ -115,6 +115,7 @@ defm : LOCAL<I64>;
defm : LOCAL<F32>;
defm : LOCAL<F64>;
+let isMoveImm = 1 in {
def CONST_I32 : I<(outs I32:$res), (ins i32imm:$imm),
[(set I32:$res, imm:$imm)],
"i32.const\t$res, $imm">;
@@ -127,6 +128,7 @@ def CONST_F32 : I<(outs F32:$res), (ins f32imm:$imm),
def CONST_F64 : I<(outs F64:$res), (ins f64imm:$imm),
[(set F64:$res, fpimm:$imm)],
"f64.const\t$res, $imm">;
+} // isMoveImm = 1
} // Defs = [ARGUMENTS]