blob: 8c54298ceb421af13be52d062f065941e5328da4 [file] [log] [blame]
Anton Korobeynikov88ce6672009-05-23 19:51:20 +00001//===-------- ARMBuildAttrs.h - ARM Build Attributes ------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
Chris Lattner0c85aab2009-05-25 19:51:07 +000010// This file contains enumerations and support routines for ARM build attributes
Anton Korobeynikov88ce6672009-05-23 19:51:20 +000011// as defined in ARM ABI addenda document (ABI release 2.07).
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef __TARGET_ARMBUILDATTRS_H__
16#define __TARGET_ARMBUILDATTRS_H__
17
18namespace ARMBuildAttrs {
Jason W Kim17b443d2010-10-11 23:01:44 +000019 enum SpecialAttr {
20 // This is for the .cpu asm attr. It translates into one or more
21 // AttrType (below) entries in the .ARM.attributes section in the ELF.
22 SEL_CPU
23 };
24
Jason W Kimdef9ac42010-10-06 22:36:46 +000025 enum AttrType {
Jason W Kim17b443d2010-10-11 23:01:44 +000026 // Rest correspond to ELF/.ARM.attributes
Anton Korobeynikov88ce6672009-05-23 19:51:20 +000027 File = 1,
28 Section = 2,
29 Symbol = 3,
30 CPU_raw_name = 4,
31 CPU_name = 5,
32 CPU_arch = 6,
33 CPU_arch_profile = 7,
34 ARM_ISA_use = 8,
35 THUMB_ISA_use = 9,
36 VFP_arch = 10,
37 WMMX_arch = 11,
38 Advanced_SIMD_arch = 12,
39 PCS_config = 13,
40 ABI_PCS_R9_use = 14,
41 ABI_PCS_RW_data = 15,
42 ABI_PCS_RO_data = 16,
43 ABI_PCS_GOT_use = 17,
44 ABI_PCS_wchar_t = 18,
45 ABI_FP_rounding = 19,
46 ABI_FP_denormal = 20,
47 ABI_FP_exceptions = 21,
48 ABI_FP_user_exceptions = 22,
49 ABI_FP_number_model = 23,
50 ABI_align8_needed = 24,
51 ABI_align8_preserved = 25,
52 ABI_enum_size = 26,
53 ABI_HardFP_use = 27,
54 ABI_VFP_args = 28,
55 ABI_WMMX_args = 29,
56 ABI_optimization_goals = 30,
57 ABI_FP_optimization_goals = 31,
58 compatibility = 32,
59 CPU_unaligned_access = 34,
60 VFP_HP_extension = 36,
61 ABI_FP_16bit_format = 38,
62 nodefaults = 64,
63 also_compatible_with = 65,
64 T2EE_use = 66,
65 conformance = 67,
66 Virtualization_use = 68,
67 MPextension_use = 70
68 };
Jason W Kim17b443d2010-10-11 23:01:44 +000069
70 // Magic numbers for .ARM.attributes
71 enum AttrMagic {
72 Format_Version = 0x41
73 };
Anton Korobeynikov88ce6672009-05-23 19:51:20 +000074}
75
76#endif // __TARGET_ARMBUILDATTRS_H__