[AArch64] Remove redundant -march option. Also fix a think-o from r234462.
[oota-llvm.git] / lib / Target / AArch64 / AArch64InstrInfo.h
index 0afc4f05c9a4ffe528eaddaa98b1acb582a4dda9..fa4b8b7e617969688e90f5df12b25511f43d484d 100644 (file)
@@ -34,11 +34,17 @@ class AArch64InstrInfo : public AArch64GenInstrInfo {
     MOSuppressPair = 1
   };
 
+  const AArch64RegisterInfo RI;
   const AArch64Subtarget &Subtarget;
 
 public:
   explicit AArch64InstrInfo(const AArch64Subtarget &STI);
 
+  /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info.  As
+  /// such, whenever a client has an instance of instruction info, it should
+  /// always be able to get register info as well (through this method).
+  const AArch64RegisterInfo &getRegisterInfo() const { return RI; }
+
   unsigned GetInstSizeInBytes(const MachineInstr *MI) const;
 
   bool isAsCheapAsAMove(const MachineInstr *MI) const override;