diff options
author | Ana Pazos <apazos@codeaurora.org> | 2013-12-06 22:48:17 +0000 |
---|---|---|
committer | Ana Pazos <apazos@codeaurora.org> | 2013-12-06 22:48:17 +0000 |
commit | 93a07c2185d1eb4fd441cf0343f9b77f9611fdc1 (patch) | |
tree | 28fa5c0f77f6c1ff333823e73ce8ff27d7579787 /llvm/lib/Target/ARM/ARMSubtarget.h | |
parent | dd6068d4009e7b16849b780510f3002e3d28b6af (diff) | |
download | bcm5719-llvm-93a07c2185d1eb4fd441cf0343f9b77f9611fdc1.tar.gz bcm5719-llvm-93a07c2185d1eb4fd441cf0343f9b77f9611fdc1.zip |
Added support for mcpu krait
- krait processor currently modeled with the same features as A9.
- Krait processor additionally has VFP4 (fused multiply add/sub)
and hardware division features enabled.
- krait has currently the same Schedule model as A9
- krait cpu flag is not recognized by the GNU assembler yet,
it is replaced with march=armv7-a to avoid a lower march
from being used.
llvm-svn: 196619
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index d6e8c81fb76..ca1e5d222d1 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -32,7 +32,7 @@ class ARMSubtarget : public ARMGenSubtargetInfo { protected: enum ARMProcFamilyEnum { Others, CortexA5, CortexA7, CortexA8, CortexA9, CortexA12, CortexA15, - CortexR5, Swift, CortexA53, CortexA57 + CortexR5, Swift, CortexA53, CortexA57, Krait }; enum ARMProcClassEnum { None, AClass, RClass, MClass @@ -261,8 +261,9 @@ public: bool isCortexA15() const { return ARMProcFamily == CortexA15; } bool isSwift() const { return ARMProcFamily == Swift; } bool isCortexM3() const { return CPUString == "cortex-m3"; } - bool isLikeA9() const { return isCortexA9() || isCortexA15(); } + bool isLikeA9() const { return isCortexA9() || isCortexA15() || isKrait(); } bool isCortexR5() const { return ARMProcFamily == CortexR5; } + bool isKrait() const { return ARMProcFamily == Krait; } bool hasARMOps() const { return !NoARM; } |