Skip to content

Commit dfbcbcc

Browse files
committed
AArch64: move Apple codename CPUs to be based on the OSS numbered definitions.
1 parent aaebed8 commit dfbcbcc

File tree

3 files changed

+3
-44
lines changed

3 files changed

+3
-44
lines changed

llvm/lib/Target/AArch64/AArch64.td

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -582,43 +582,6 @@ def ProcAppleA7 : SubtargetFeature<"apple-a7", "ARMProcFamily", "AppleA7",
582582
FeatureZCZeroingFPWorkaround
583583
]>;
584584

585-
def ProcVortex : SubtargetFeature<"vortex", "ARMProcFamily", "Vortex",
586-
"Vortex", [
587-
FeatureAlternateSExtLoadCVTF32Pattern,
588-
FeatureArithmeticBccFusion,
589-
FeatureArithmeticCbzFusion,
590-
FeatureCrypto,
591-
FeatureDisableLatencySchedHeuristic,
592-
FeatureFullFP16,
593-
FeatureFuseAES,
594-
FeatureFuseCryptoEOR,
595-
FeatureNEON,
596-
FeaturePerfMon,
597-
FeatureZCRegMove,
598-
FeatureZCZeroing,
599-
HasV8_3aOps
600-
]>;
601-
602-
def ProcLightning : SubtargetFeature<"lightning", "ARMProcFamily", "Lightning",
603-
"Lightning", [
604-
FeatureAlternateSExtLoadCVTF32Pattern,
605-
FeatureArithmeticBccFusion,
606-
FeatureArithmeticCbzFusion,
607-
FeatureCrypto,
608-
FeatureDisableLatencySchedHeuristic,
609-
FeatureFP16FML,
610-
FeatureFullFP16,
611-
FeatureFuseAES,
612-
FeatureFuseCryptoEOR,
613-
FeatureNEON,
614-
FeaturePerfMon,
615-
FeatureSHA3,
616-
FeatureSM4,
617-
FeatureZCRegMove,
618-
FeatureZCZeroing,
619-
HasV8_4aOps
620-
]>;
621-
622585
def ProcAppleA10 : SubtargetFeature<"apple-a10", "ARMProcFamily", "AppleA10",
623586
"Apple A10", [
624587
FeatureAlternateSExtLoadCVTF32Pattern,
@@ -918,10 +881,10 @@ def : ProcessorModel<"thunderx2t99", ThunderX2T99Model, [ProcThunderX2T99]>;
918881
// FIXME: HiSilicon TSV110 is currently modeled as a Cortex-A57.
919882
def : ProcessorModel<"tsv110", CortexA57Model, [ProcTSV110]>;
920883

921-
// Support cyclone as an alias for apple-a7 so we can still LTO old bitcode.
884+
// Support some CPU codenames as aliases for apple-aN so we can still LTO old bitcode.
922885
def : ProcessorModel<"cyclone", CycloneModel, [ProcAppleA7]>;
923-
def : ProcessorModel<"vortex", CycloneModel, [ProcVortex]>;
924-
def : ProcessorModel<"lightning", CycloneModel, [ProcLightning]>;
886+
def : ProcessorModel<"vortex", CycloneModel, [ProcAppleA12]>;
887+
def : ProcessorModel<"lightning", CycloneModel, [ProcAppleA13]>;
925888

926889
// iPhone and iPad CPUs
927890
def : ProcessorModel<"apple-a7", CycloneModel, [ProcAppleA7]>;

llvm/lib/Target/AArch64/AArch64Subtarget.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ void AArch64Subtarget::initializeProperties() {
8888
case CortexA76:
8989
PrefFunctionLogAlignment = 4;
9090
break;
91-
case Vortex:
92-
case Lightning:
9391
case AppleA7:
9492
case AppleA10:
9593
case AppleA11:

llvm/lib/Target/AArch64/AArch64Subtarget.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
5555
ExynosM3,
5656
Falkor,
5757
Kryo,
58-
Lightning,
5958
NeoverseE1,
6059
NeoverseN1,
6160
Saphira,
@@ -65,7 +64,6 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
6564
ThunderXT83,
6665
ThunderXT88,
6766
TSV110,
68-
Vortex
6967
};
7068

7169
protected:

0 commit comments

Comments
 (0)