Expand sext_inreg for i1
[oota-llvm.git] / lib / Target / SystemZ / SystemZInstrInfo.h
index 0ef3ca93beacf2945cc894025413692e850edacf..ba94cede00d373fbcda988e2f8495a25275e9e0e 100644 (file)
@@ -106,6 +106,13 @@ public:
   SystemZCC::CondCodes getCondFromBranchOpc(unsigned Opc) const;
   const TargetInstrDesc& getBrCond(SystemZCC::CondCodes CC) const;
   const TargetInstrDesc& getLongDispOpc(unsigned Opc) const;
+
+  const TargetInstrDesc& getMemoryInstr(unsigned Opc, int64_t Offset = 0) const {
+    if (Offset < 0 || Offset >= 4096)
+      return getLongDispOpc(Opc);
+    else
+      return get(Opc);
+  }
 };
 
 }