R600/SI: Add pattern to simplify i64 loading
[oota-llvm.git] / lib / Target / R600 / SIInstrInfo.td
index efc6015c681473ce1ac7fece18cb591e25bb98b6..8c4e5afdeb76f860c70c363f1cbe79e8b2d86479 100644 (file)
@@ -40,6 +40,10 @@ def IMM12bit : ImmLeaf <
   [{return isUInt<12>(Imm);}]
 >;
 
+class InlineImm <ValueType vt> : ImmLeaf <vt, [{
+  return -16 <= Imm && Imm <= 64;
+}]>;
+
 class InstSI <dag outs, dag ins, string asm, list<dag> pattern> :
     AMDGPUInst<outs, ins, asm, pattern> {