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

Nate Begeman natebegeman at mac.com
Tue Sep 6 08:30:24 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PowerPCSubtarget.h updated: 1.4 -> 1.5
PowerPCSubtarget.cpp updated: 1.6 -> 1.7
---
Log message:

Add accessor for 64bit flag, so that we can tell when it is safe to 
generate the fun in-register fp<->long instructions.


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

 PowerPCSubtarget.cpp |    1 +
 PowerPCSubtarget.h   |    3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/PowerPC/PowerPCSubtarget.h
diff -u llvm/lib/Target/PowerPC/PowerPCSubtarget.h:1.4 llvm/lib/Target/PowerPC/PowerPCSubtarget.h:1.5
--- llvm/lib/Target/PowerPC/PowerPCSubtarget.h:1.4	Fri Sep  2 13:33:05 2005
+++ llvm/lib/Target/PowerPC/PowerPCSubtarget.h	Tue Sep  6 10:30:12 2005
@@ -29,6 +29,7 @@
 
   /// Used by the ISel to turn in optimizations for POWER4-derived architectures
   bool IsGigaProcessor;
+  bool Is64Bit;
   bool HasFSQRT;
   bool IsAIX;
   bool IsDarwin;
@@ -47,7 +48,7 @@
   
   bool isAIX() const { return IsAIX; }
   bool isDarwin() const { return IsDarwin; }
-  
+  bool is64Bit() const { return Is64Bit; }
   bool isGigaProcessor() const { return IsGigaProcessor; }
 };
 } // End llvm namespace


Index: llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp:1.6 llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp:1.7
--- llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp:1.6	Fri Sep  2 14:27:43 2005
+++ llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp	Tue Sep  6 10:30:12 2005
@@ -132,6 +132,7 @@
                            PowerPCSubTypeKV, PowerPCSubTypeKVSize,
                            PowerPCFeatureKV, PowerPCFeatureKVSize);
   IsGigaProcessor = (Bits & PowerPCFeatureGPUL ) != 0;
+  Is64Bit         = (Bits & PowerPCFeature64Bit) != 0;
   HasFSQRT        = (Bits & PowerPCFeatureFSqrt) != 0;
 
   // Set the boolean corresponding to the current target triple, or the default






More information about the llvm-commits mailing list