summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMSubtarget.h
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2012-12-21 04:35:05 +0000
committerQuentin Colombet <qcolombet@apple.com>2012-12-21 04:35:05 +0000
commite0f1d712f656d3f958b616013f1d6008c5678949 (patch)
tree78e7083829dc40498a18d7866ecbc38b812ad3f2 /lib/Target/ARM/ARMSubtarget.h
parentb66fc293a2248564ae341f40882243dacccc42f3 (diff)
downloadllvm-e0f1d712f656d3f958b616013f1d6008c5678949.tar.gz
llvm-e0f1d712f656d3f958b616013f1d6008c5678949.tar.bz2
llvm-e0f1d712f656d3f958b616013f1d6008c5678949.tar.xz
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h
index b96e738a6c..64878cd9ba 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; }