diff options
author | Silviu Baranga <silviu.baranga@arm.com> | 2012-09-13 15:05:10 +0000 |
---|---|---|
committer | Silviu Baranga <silviu.baranga@arm.com> | 2012-09-13 15:05:10 +0000 |
commit | 616471d4bfe4717fa86259ff4534703357b3b723 (patch) | |
tree | eff84fd8f8d83fe0a8edb28431c82cff90cf9a0e /lib/Target/ARM/ARMSubtarget.h | |
parent | 91a7e0184a4f7976ef11cb48697d2782fc1b9be7 (diff) |
This patch introduces A15 as a target in LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h index b394061300..495afa92b5 100644 --- a/lib/Target/ARM/ARMSubtarget.h +++ b/lib/Target/ARM/ARMSubtarget.h @@ -30,7 +30,7 @@ class StringRef; class ARMSubtarget : public ARMGenSubtargetInfo { protected: enum ARMProcFamilyEnum { - Others, CortexA8, CortexA9 + Others, CortexA8, CortexA9, CortexA15 }; /// ARMProcFamily - ARM processor family: Cortex-A8, Cortex-A9, and others. @@ -199,7 +199,9 @@ protected: bool isCortexA8() const { return ARMProcFamily == CortexA8; } bool isCortexA9() const { return ARMProcFamily == CortexA9; } + bool isCortexA15() const { return ARMProcFamily == CortexA15; } bool isCortexM3() const { return CPUString == "cortex-m3"; } + bool isLikeA9() const { return isCortexA9() || isCortexA15(); } bool hasARMOps() const { return !NoARM; } |