summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2017-04-06 18:10:08 +0000
committerYi Kong <yikong@google.com>2017-04-06 18:10:08 +0000
commit2b622b1fc13b2d8ad8ef623801574fa2e08b2510 (patch)
treee7e1fe65b010843d3f91e5938b564b292f3bbe9d /llvm/lib
parent469e119a6fd10e2fed2bde40a2b2b536b8347ffa (diff)
downloadbcm5719-llvm-2b622b1fc13b2d8ad8ef623801574fa2e08b2510.tar.gz
bcm5719-llvm-2b622b1fc13b2d8ad8ef623801574fa2e08b2510.zip
[ARM] Add Kryo to available targets
Summary: Host CPU detection now supports Kryo, so we need to recognize it in ARM target. Reviewers: mcrosier, t.p.northover, rengolin, echristo, srhines Reviewed By: t.p.northover, echristo Subscribers: aemerson Differential Revision: https://reviews.llvm.org/D31775 llvm-svn: 299674
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARM.td10
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.h1
2 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARM.td b/llvm/lib/Target/ARM/ARM.td
index 9c0c01f3e92..57f9d1c6b61 100644
--- a/llvm/lib/Target/ARM/ARM.td
+++ b/llvm/lib/Target/ARM/ARM.td
@@ -345,7 +345,9 @@ def ProcA73 : SubtargetFeature<"a73", "ARMProcFamily", "CortexA73",
"Cortex-A73 ARM processors", []>;
def ProcKrait : SubtargetFeature<"krait", "ARMProcFamily", "Krait",
- "Qualcomm ARM processors", []>;
+ "Qualcomm Krait processors", []>;
+def ProcKryo : SubtargetFeature<"kryo", "ARMProcFamily", "Kryo",
+ "Qualcomm Kryo processors", []>;
def ProcSwift : SubtargetFeature<"swift", "ARMProcFamily", "Swift",
"Swift ARM processors", []>;
@@ -835,6 +837,12 @@ def : ProcNoItin<"exynos-m3", [ARMv8a, ProcExynosM1,
FeatureCrypto,
FeatureCRC]>;
+def : ProcNoItin<"kryo", [ARMv8a, ProcKryo,
+ FeatureHWDiv,
+ FeatureHWDivARM,
+ FeatureCrypto,
+ FeatureCRC]>;
+
def : ProcessorModel<"cortex-r52", CortexR52Model, [ARMv8r, ProcR52,
FeatureFPAO]>;
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h
index 46c38578ba2..40993fc0aa8 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.h
+++ b/llvm/lib/Target/ARM/ARMSubtarget.h
@@ -64,6 +64,7 @@ protected:
CortexR7,
ExynosM1,
Krait,
+ Kryo,
Swift
};
enum ARMProcClassEnum {
OpenPOWER on IntegriCloud