Add accessor for 64bit flag, so that we can tell when it is safe to
authorNate Begeman <natebegeman@mac.com>
Tue, 6 Sep 2005 15:30:12 +0000 (15:30 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 6 Sep 2005 15:30:12 +0000 (15:30 +0000)
generate the fun in-register fp<->long instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23244 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h

index ca9d0778e04c48fbc424e6d23678d46e1b290714..3196f09ff25394d9bc08d803242a6cbd81d017fc 100644 (file)
@@ -132,6 +132,7 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS)
                            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
index 33f73b22aafb2dda6a3f80706b7df528df290d7d..1e428f5368361b3435bf535c6312a803c1c213af 100644 (file)
@@ -29,6 +29,7 @@ protected:
 
   /// 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 @@ public:
   
   bool isAIX() const { return IsAIX; }
   bool isDarwin() const { return IsDarwin; }
-  
+  bool is64Bit() const { return Is64Bit; }
   bool isGigaProcessor() const { return IsGigaProcessor; }
 };
 } // End llvm namespace