xref: /freebsd/contrib/llvm-project/llvm/lib/Support/CSKYAttributes.cpp (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
1 //===-- CSKYAttributes.cpp - CSKY 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/CSKYAttributes.h"
10 
11 using namespace llvm;
12 using namespace llvm::CSKYAttrs;
13 
14 static const TagNameItem tagData[] = {
15     {CSKY_ARCH_NAME, "Tag_CSKY_ARCH_NAME"},
16     {CSKY_CPU_NAME, "Tag_CSKY_CPU_NAME"},
17     {CSKY_CPU_NAME, "Tag_CSKY_CPU_NAME"},
18     {CSKY_ISA_FLAGS, "Tag_CSKY_ISA_FLAGS"},
19     {CSKY_ISA_EXT_FLAGS, "Tag_CSKY_ISA_EXT_FLAGS"},
20     {CSKY_DSP_VERSION, "Tag_CSKY_DSP_VERSION"},
21     {CSKY_VDSP_VERSION, "Tag_CSKY_VDSP_VERSION"},
22     {CSKY_FPU_VERSION, "Tag_CSKY_FPU_VERSION"},
23     {CSKY_FPU_ABI, "Tag_CSKY_FPU_ABI"},
24     {CSKY_FPU_ROUNDING, "Tag_CSKY_FPU_ROUNDING"},
25     {CSKY_FPU_DENORMAL, "Tag_CSKY_FPU_DENORMAL"},
26     {CSKY_FPU_EXCEPTION, "Tag_CSKY_FPU_EXCEPTION"},
27     {CSKY_FPU_NUMBER_MODULE, "Tag_CSKY_FPU_NUMBER_MODULE"},
28     {CSKY_FPU_HARDFP, "Tag_CSKY_FPU_HARDFP"}};
29 
30 constexpr TagNameMap CSKYAttributeTags{tagData};
getCSKYAttributeTags()31 const TagNameMap &llvm::CSKYAttrs::getCSKYAttributeTags() {
32   return CSKYAttributeTags;
33 }
34