xref: /freebsd/contrib/llvm-project/llvm/lib/Support/ARMBuildAttrs.cpp (revision ec0ea6efa1ad229d75c394c1a9b9cac33af2b1d3)
1 //===-- ARMBuildAttrs.cpp - ARM Build Attributes --------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "llvm/Support/ARMBuildAttributes.h"
10 
11 using namespace llvm;
12 
13 static const TagNameItem tagData[] = {
14     {ARMBuildAttrs::File, "Tag_File"},
15     {ARMBuildAttrs::Section, "Tag_Section"},
16     {ARMBuildAttrs::Symbol, "Tag_Symbol"},
17     {ARMBuildAttrs::CPU_raw_name, "Tag_CPU_raw_name"},
18     {ARMBuildAttrs::CPU_name, "Tag_CPU_name"},
19     {ARMBuildAttrs::CPU_arch, "Tag_CPU_arch"},
20     {ARMBuildAttrs::CPU_arch_profile, "Tag_CPU_arch_profile"},
21     {ARMBuildAttrs::ARM_ISA_use, "Tag_ARM_ISA_use"},
22     {ARMBuildAttrs::THUMB_ISA_use, "Tag_THUMB_ISA_use"},
23     {ARMBuildAttrs::FP_arch, "Tag_FP_arch"},
24     {ARMBuildAttrs::WMMX_arch, "Tag_WMMX_arch"},
25     {ARMBuildAttrs::Advanced_SIMD_arch, "Tag_Advanced_SIMD_arch"},
26     {ARMBuildAttrs::MVE_arch, "Tag_MVE_arch"},
27     {ARMBuildAttrs::PCS_config, "Tag_PCS_config"},
28     {ARMBuildAttrs::ABI_PCS_R9_use, "Tag_ABI_PCS_R9_use"},
29     {ARMBuildAttrs::ABI_PCS_RW_data, "Tag_ABI_PCS_RW_data"},
30     {ARMBuildAttrs::ABI_PCS_RO_data, "Tag_ABI_PCS_RO_data"},
31     {ARMBuildAttrs::ABI_PCS_GOT_use, "Tag_ABI_PCS_GOT_use"},
32     {ARMBuildAttrs::ABI_PCS_wchar_t, "Tag_ABI_PCS_wchar_t"},
33     {ARMBuildAttrs::ABI_FP_rounding, "Tag_ABI_FP_rounding"},
34     {ARMBuildAttrs::ABI_FP_denormal, "Tag_ABI_FP_denormal"},
35     {ARMBuildAttrs::ABI_FP_exceptions, "Tag_ABI_FP_exceptions"},
36     {ARMBuildAttrs::ABI_FP_user_exceptions, "Tag_ABI_FP_user_exceptions"},
37     {ARMBuildAttrs::ABI_FP_number_model, "Tag_ABI_FP_number_model"},
38     {ARMBuildAttrs::ABI_align_needed, "Tag_ABI_align_needed"},
39     {ARMBuildAttrs::ABI_align_preserved, "Tag_ABI_align_preserved"},
40     {ARMBuildAttrs::ABI_enum_size, "Tag_ABI_enum_size"},
41     {ARMBuildAttrs::ABI_HardFP_use, "Tag_ABI_HardFP_use"},
42     {ARMBuildAttrs::ABI_VFP_args, "Tag_ABI_VFP_args"},
43     {ARMBuildAttrs::ABI_WMMX_args, "Tag_ABI_WMMX_args"},
44     {ARMBuildAttrs::ABI_optimization_goals, "Tag_ABI_optimization_goals"},
45     {ARMBuildAttrs::ABI_FP_optimization_goals, "Tag_ABI_FP_optimization_goals"},
46     {ARMBuildAttrs::compatibility, "Tag_compatibility"},
47     {ARMBuildAttrs::CPU_unaligned_access, "Tag_CPU_unaligned_access"},
48     {ARMBuildAttrs::FP_HP_extension, "Tag_FP_HP_extension"},
49     {ARMBuildAttrs::ABI_FP_16bit_format, "Tag_ABI_FP_16bit_format"},
50     {ARMBuildAttrs::MPextension_use, "Tag_MPextension_use"},
51     {ARMBuildAttrs::DIV_use, "Tag_DIV_use"},
52     {ARMBuildAttrs::DSP_extension, "Tag_DSP_extension"},
53     {ARMBuildAttrs::nodefaults, "Tag_nodefaults"},
54     {ARMBuildAttrs::also_compatible_with, "Tag_also_compatible_with"},
55     {ARMBuildAttrs::T2EE_use, "Tag_T2EE_use"},
56     {ARMBuildAttrs::conformance, "Tag_conformance"},
57     {ARMBuildAttrs::Virtualization_use, "Tag_Virtualization_use"},
58 
59     // Legacy Names
60     {ARMBuildAttrs::FP_arch, "Tag_VFP_arch"},
61     {ARMBuildAttrs::FP_HP_extension, "Tag_VFP_HP_extension"},
62     {ARMBuildAttrs::ABI_align_needed, "Tag_ABI_align8_needed"},
63     {ARMBuildAttrs::ABI_align_preserved, "Tag_ABI_align8_preserved"},
64 };
65 
66 constexpr TagNameMap ARMAttributeTags{tagData};
67 const TagNameMap &llvm::ARMBuildAttrs::getARMAttributeTags() {
68   return ARMAttributeTags;
69 }
70