mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Do the right thing and enable 64 bit regs under the control of a subtarget
option. Currently the only way to enable this is to specify the 64bitregs mattr flag. It is never enabled by default on any config yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,6 +36,7 @@ enum PowerPCFeature {
|
||||
PowerPCFeatureAltivec = 1 << 1,
|
||||
PowerPCFeatureFSqrt = 1 << 2,
|
||||
PowerPCFeatureGPUL = 1 << 3,
|
||||
PowerPCFeature64BRegs = 1 << 4
|
||||
};
|
||||
|
||||
/// Sorted (by key) array of values for CPU subtype.
|
||||
@@ -73,6 +74,7 @@ static const unsigned PowerPCSubTypeKVSize = sizeof(PowerPCSubTypeKV)
|
||||
/// Sorted (by key) array of values for CPU features.
|
||||
static SubtargetFeatureKV PowerPCFeatureKV[] = {
|
||||
{ "64bit" , "Should 64 bit instructions be used" , PowerPCFeature64Bit },
|
||||
{ "64bitregs", "Should 64 bit registers be used" , PowerPCFeature64BRegs },
|
||||
{ "altivec", "Should Altivec instructions be used" , PowerPCFeatureAltivec },
|
||||
{ "fsqrt" , "Should the fsqrt instruction be used", PowerPCFeatureFSqrt },
|
||||
{ "gpul" , "Should GPUL instructions be used" , PowerPCFeatureGPUL }
|
||||
@@ -134,6 +136,7 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS)
|
||||
IsGigaProcessor = (Bits & PowerPCFeatureGPUL ) != 0;
|
||||
Is64Bit = (Bits & PowerPCFeature64Bit) != 0;
|
||||
HasFSQRT = (Bits & PowerPCFeatureFSqrt) != 0;
|
||||
Has64BitRegs = (Bits & PowerPCFeature64BRegs) != 0;
|
||||
|
||||
// Set the boolean corresponding to the current target triple, or the default
|
||||
// if one cannot be determined, to true.
|
||||
|
Reference in New Issue
Block a user