Set the is64bit flag and propagate it to PowerPCRegisterInfo
authorMisha Brukman <brukman+llvm@gmail.com>
Wed, 11 Aug 2004 23:45:43 +0000 (23:45 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Wed, 11 Aug 2004 23:45:43 +0000 (23:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15671 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PowerPCInstrInfo.cpp
lib/Target/PowerPC/PowerPCInstrInfo.h

index 17b0989e1f40611d1673bb37167dd96cc9a0f204..7c1fda54948896f26ffd43add0379513c9c523d1 100644 (file)
 #include <iostream>
 using namespace llvm;
 
-PowerPCInstrInfo::PowerPCInstrInfo()
-  : TargetInstrInfo(PowerPCInsts, sizeof(PowerPCInsts)/sizeof(PowerPCInsts[0]))
+PowerPCInstrInfo::PowerPCInstrInfo(bool is64b)
+  : TargetInstrInfo(PowerPCInsts, sizeof(PowerPCInsts)/sizeof(PowerPCInsts[0])),
+    RI(is64b),
+    is64bit(is64b)
 { }
 
 bool PowerPCInstrInfo::isMoveInstr(const MachineInstr& MI,
index e975caf88b4a36937b41e2655cb1b5538c54415c..63edb782271d09cbf491ba44c40135e18b51e8c3 100644 (file)
@@ -64,8 +64,9 @@ namespace PPCII {
 
 class PowerPCInstrInfo : public TargetInstrInfo {
   const PowerPCRegisterInfo RI;
+  bool is64bit;
 public:
-  PowerPCInstrInfo();
+  PowerPCInstrInfo(bool is64b);
 
   /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info.  As
   /// such, whenever a client has an instance of instruction info, it should