mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
By default, for cortex-a8 use NEON for single-precision FP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78200 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee16638bfc
commit
1f0e404c87
@ -32,9 +32,6 @@ def ArchV6T2 : SubtargetFeature<"v6t2", "ARMArchVersion", "V6T2",
|
|||||||
"ARM v6t2">;
|
"ARM v6t2">;
|
||||||
def ArchV7A : SubtargetFeature<"v7a", "ARMArchVersion", "V7A",
|
def ArchV7A : SubtargetFeature<"v7a", "ARMArchVersion", "V7A",
|
||||||
"ARM v7A">;
|
"ARM v7A">;
|
||||||
def FeatureNEONFP : SubtargetFeature<"neonfp", "UseNEONForSinglePrecisionFP",
|
|
||||||
"true",
|
|
||||||
"Use NEON for single-precision FP">;
|
|
||||||
def FeatureVFP2 : SubtargetFeature<"vfp2", "ARMFPUType", "VFPv2",
|
def FeatureVFP2 : SubtargetFeature<"vfp2", "ARMFPUType", "VFPv2",
|
||||||
"Enable VFP2 instructions">;
|
"Enable VFP2 instructions">;
|
||||||
def FeatureVFP3 : SubtargetFeature<"vfp3", "ARMFPUType", "VFPv3",
|
def FeatureVFP3 : SubtargetFeature<"vfp3", "ARMFPUType", "VFPv3",
|
||||||
@ -43,6 +40,9 @@ def FeatureNEON : SubtargetFeature<"neon", "ARMFPUType", "NEON",
|
|||||||
"Enable NEON instructions">;
|
"Enable NEON instructions">;
|
||||||
def FeatureThumb2 : SubtargetFeature<"thumb2", "ThumbMode", "Thumb2",
|
def FeatureThumb2 : SubtargetFeature<"thumb2", "ThumbMode", "Thumb2",
|
||||||
"Enable Thumb2 instructions">;
|
"Enable Thumb2 instructions">;
|
||||||
|
def FeatureNEONFP : SubtargetFeature<"neonfp", "UseNEONForSinglePrecisionFP",
|
||||||
|
"true",
|
||||||
|
"Use NEON for single-precision FP">;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// ARM Processors supported.
|
// ARM Processors supported.
|
||||||
@ -113,7 +113,7 @@ def : Processor<"arm1156t2f-s", V6Itineraries,
|
|||||||
|
|
||||||
// V7 Processors.
|
// V7 Processors.
|
||||||
def : Processor<"cortex-a8", CortexA8Itineraries,
|
def : Processor<"cortex-a8", CortexA8Itineraries,
|
||||||
[ArchV7A, FeatureThumb2, FeatureNEON]>;
|
[ArchV7A, FeatureThumb2, FeatureNEON, FeatureNEONFP]>;
|
||||||
def : Processor<"cortex-a9", V7Itineraries,
|
def : Processor<"cortex-a9", V7Itineraries,
|
||||||
[ArchV7A, FeatureThumb2, FeatureNEON]>;
|
[ArchV7A, FeatureThumb2, FeatureNEON]>;
|
||||||
|
|
||||||
|
@ -42,7 +42,9 @@ protected:
|
|||||||
/// ARMFPUType - Floating Point Unit type.
|
/// ARMFPUType - Floating Point Unit type.
|
||||||
ARMFPEnum ARMFPUType;
|
ARMFPEnum ARMFPUType;
|
||||||
|
|
||||||
/// UseNEONForSinglePrecisionFP - if NEON is available use for FP
|
/// UseNEONForSinglePrecisionFP - if the NEONFP attribute has been
|
||||||
|
/// specified. Use the method useNEONForSinglePrecisionFP() to
|
||||||
|
/// determine if NEON should actually be used.
|
||||||
bool UseNEONForSinglePrecisionFP;
|
bool UseNEONForSinglePrecisionFP;
|
||||||
|
|
||||||
/// IsThumb - True if we are in thumb mode, false if in ARM mode.
|
/// IsThumb - True if we are in thumb mode, false if in ARM mode.
|
||||||
|
Loading…
Reference in New Issue
Block a user