diff options
author | Quentin Colombet <qcolombet@apple.com> | 2012-12-21 04:35:05 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2012-12-21 04:35:05 +0000 |
commit | e0f1d712f656d3f958b616013f1d6008c5678949 (patch) | |
tree | 78e7083829dc40498a18d7866ecbc38b812ad3f2 /lib/Target/ARM/ARMSubtarget.h | |
parent | b66fc293a2248564ae341f40882243dacccc42f3 (diff) | |
download | external_llvm-e0f1d712f656d3f958b616013f1d6008c5678949.zip external_llvm-e0f1d712f656d3f958b616013f1d6008c5678949.tar.gz external_llvm-e0f1d712f656d3f958b616013f1d6008c5678949.tar.bz2 |
Add ARM cortex-r5 subtarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h index b96e738..64878cd 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, CortexA5, CortexA8, CortexA9, CortexA15, Swift + Others, CortexA5, CortexA8, CortexA9, CortexA15, CortexR5, Swift }; /// ARMProcFamily - ARM processor family: Cortex-A8, Cortex-A9, and others. @@ -215,6 +215,7 @@ protected: bool isSwift() const { return ARMProcFamily == Swift; } bool isCortexM3() const { return CPUString == "cortex-m3"; } bool isLikeA9() const { return isCortexA9() || isCortexA15(); } + bool isCortexR5() const { return ARMProcFamily == CortexR5; } bool hasARMOps() const { return !NoARM; } |