aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMFPUName.h
diff options
context:
space:
mode:
authorLogan Chien <tzuhsiang.chien@gmail.com>2013-10-28 17:51:12 +0000
committerLogan Chien <tzuhsiang.chien@gmail.com>2013-10-28 17:51:12 +0000
commit23125d02d929758e1b0dbb30b13f1deff7a5ea4b (patch)
tree4c77dc2e41386fde9ae2f6529488c71689c50616 /lib/Target/ARM/ARMFPUName.h
parent790b973f80c8fd41f0908536409538336242f74d (diff)
downloadexternal_llvm-23125d02d929758e1b0dbb30b13f1deff7a5ea4b.zip
external_llvm-23125d02d929758e1b0dbb30b13f1deff7a5ea4b.tar.gz
external_llvm-23125d02d929758e1b0dbb30b13f1deff7a5ea4b.tar.bz2
[arm] Implement eabi_attribute, cpu, and fpu directives.
This commit allows the ARM integrated assembler to parse and assemble the code with .eabi_attribute, .cpu, and .fpu directives. To implement the feature, this commit moves the code from AttrEmitter to ARMTargetStreamers, and several new test cases related to cortex-m4, cortex-r5, and cortex-a15 are added. Besides, this commit also change the Subtarget->isFPOnlySP() to Subtarget->hasD16() to match the usage of .fpu directive. This commit changes the test cases: * Several .eabi_attribute directives in 2010-09-29-mc-asm-header-test.ll are removed because the .fpu directive already cover the functionality. * In the Cortex-A15 test case, the value for Tag_Advanced_SIMD_arch has be changed from 1 to 2, which is more precise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFPUName.h')
-rw-r--r--lib/Target/ARM/ARMFPUName.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFPUName.h b/lib/Target/ARM/ARMFPUName.h
new file mode 100644
index 0000000..2a64cce
--- /dev/null
+++ b/lib/Target/ARM/ARMFPUName.h
@@ -0,0 +1,26 @@
+//===-- ARMFPUName.h - List of the ARM FPU names ----------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef ARMFPUNAME_H
+#define ARMFPUNAME_H
+
+namespace llvm {
+namespace ARM {
+
+enum FPUKind {
+ INVALID_FPU = 0
+
+#define ARM_FPU_NAME(NAME, ID) , ID
+#include "ARMFPUName.def"
+};
+
+} // namespace ARM
+} // namespace llvm
+
+#endif // ARMFPUNAME_H