mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 06:38:41 +00:00
Add accessor for 64bit flag, so that we can tell when it is safe to
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
This commit is contained in:
parent
83e75ecd27
commit
d401dff796
@ -132,6 +132,7 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS)
|
|||||||
PowerPCSubTypeKV, PowerPCSubTypeKVSize,
|
PowerPCSubTypeKV, PowerPCSubTypeKVSize,
|
||||||
PowerPCFeatureKV, PowerPCFeatureKVSize);
|
PowerPCFeatureKV, PowerPCFeatureKVSize);
|
||||||
IsGigaProcessor = (Bits & PowerPCFeatureGPUL ) != 0;
|
IsGigaProcessor = (Bits & PowerPCFeatureGPUL ) != 0;
|
||||||
|
Is64Bit = (Bits & PowerPCFeature64Bit) != 0;
|
||||||
HasFSQRT = (Bits & PowerPCFeatureFSqrt) != 0;
|
HasFSQRT = (Bits & PowerPCFeatureFSqrt) != 0;
|
||||||
|
|
||||||
// Set the boolean corresponding to the current target triple, or the default
|
// Set the boolean corresponding to the current target triple, or the default
|
||||||
|
@ -29,6 +29,7 @@ protected:
|
|||||||
|
|
||||||
/// Used by the ISel to turn in optimizations for POWER4-derived architectures
|
/// Used by the ISel to turn in optimizations for POWER4-derived architectures
|
||||||
bool IsGigaProcessor;
|
bool IsGigaProcessor;
|
||||||
|
bool Is64Bit;
|
||||||
bool HasFSQRT;
|
bool HasFSQRT;
|
||||||
bool IsAIX;
|
bool IsAIX;
|
||||||
bool IsDarwin;
|
bool IsDarwin;
|
||||||
@ -47,7 +48,7 @@ public:
|
|||||||
|
|
||||||
bool isAIX() const { return IsAIX; }
|
bool isAIX() const { return IsAIX; }
|
||||||
bool isDarwin() const { return IsDarwin; }
|
bool isDarwin() const { return IsDarwin; }
|
||||||
|
bool is64Bit() const { return Is64Bit; }
|
||||||
bool isGigaProcessor() const { return IsGigaProcessor; }
|
bool isGigaProcessor() const { return IsGigaProcessor; }
|
||||||
};
|
};
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user