summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMSubtarget.h
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2012-11-29 19:48:01 +0000
committerQuentin Colombet <qcolombet@apple.com>2012-11-29 19:48:01 +0000
commit8facb9ecf21fc97409121842882dbc1dfd87b944 (patch)
tree23ebfda36e3842edb788c55dc6765d6e764a47c1 /lib/Target/ARM/ARMSubtarget.h
parentdb62a883a78cef4ff63a699452368fefa4b3fefd (diff)
downloadllvm-8facb9ecf21fc97409121842882dbc1dfd87b944.tar.gz
llvm-8facb9ecf21fc97409121842882dbc1dfd87b944.tar.bz2
llvm-8facb9ecf21fc97409121842882dbc1dfd87b944.tar.xz
Add cortex-a5 subtarget to the supported ARM architectures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168933 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 8e6b650602..48d4f770f3 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, CortexA15, Swift
+ Others, CortexA5, CortexA8, CortexA9, CortexA15, Swift
};
/// ARMProcFamily - ARM processor family: Cortex-A8, Cortex-A9, and others.
@@ -204,6 +204,7 @@ protected:
bool hasV6T2Ops() const { return HasV6T2Ops; }
bool hasV7Ops() const { return HasV7Ops; }
+ bool isCortexA5() const { return ARMProcFamily == CortexA5; }
bool isCortexA8() const { return ARMProcFamily == CortexA8; }
bool isCortexA9() const { return ARMProcFamily == CortexA9; }
bool isCortexA15() const { return ARMProcFamily == CortexA15; }