[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp PowerPCInstrInfo.h

Misha Brukman brukman at cs.uiuc.edu
Wed Aug 11 16:45:54 PDT 2004



Changes in directory llvm/lib/Target/PowerPC:

PowerPCInstrInfo.cpp updated: 1.7 -> 1.8
PowerPCInstrInfo.h updated: 1.5 -> 1.6
---
Log message:

Set the is64bit flag and propagate it to PowerPCRegisterInfo


---
Diffs of the changes:  (+6 -3)

Index: llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp:1.7 llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp:1.8
--- llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp:1.7	Tue Aug 10 17:47:03 2004
+++ llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp	Wed Aug 11 18:45:43 2004
@@ -18,8 +18,10 @@
 #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: llvm/lib/Target/PowerPC/PowerPCInstrInfo.h
diff -u llvm/lib/Target/PowerPC/PowerPCInstrInfo.h:1.5 llvm/lib/Target/PowerPC/PowerPCInstrInfo.h:1.6
--- llvm/lib/Target/PowerPC/PowerPCInstrInfo.h:1.5	Tue Aug 10 19:11:25 2004
+++ llvm/lib/Target/PowerPC/PowerPCInstrInfo.h	Wed Aug 11 18:45:43 2004
@@ -64,8 +64,9 @@
 
 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






More information about the llvm-commits mailing list