xref: /freebsd/contrib/llvm-project/llvm/lib/Support/CSKYAttributes.cpp (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
1*81ad6265SDimitry Andric //===-- CSKYAttributes.cpp - CSKY Attributes ------------------------------===//
2*81ad6265SDimitry Andric //
3*81ad6265SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*81ad6265SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*81ad6265SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*81ad6265SDimitry Andric //
7*81ad6265SDimitry Andric //===----------------------------------------------------------------------===//
8*81ad6265SDimitry Andric 
9*81ad6265SDimitry Andric #include "llvm/Support/CSKYAttributes.h"
10*81ad6265SDimitry Andric 
11*81ad6265SDimitry Andric using namespace llvm;
12*81ad6265SDimitry Andric using namespace llvm::CSKYAttrs;
13*81ad6265SDimitry Andric 
14*81ad6265SDimitry Andric static const TagNameItem tagData[] = {
15*81ad6265SDimitry Andric     {CSKY_ARCH_NAME, "Tag_CSKY_ARCH_NAME"},
16*81ad6265SDimitry Andric     {CSKY_CPU_NAME, "Tag_CSKY_CPU_NAME"},
17*81ad6265SDimitry Andric     {CSKY_CPU_NAME, "Tag_CSKY_CPU_NAME"},
18*81ad6265SDimitry Andric     {CSKY_ISA_FLAGS, "Tag_CSKY_ISA_FLAGS"},
19*81ad6265SDimitry Andric     {CSKY_ISA_EXT_FLAGS, "Tag_CSKY_ISA_EXT_FLAGS"},
20*81ad6265SDimitry Andric     {CSKY_DSP_VERSION, "Tag_CSKY_DSP_VERSION"},
21*81ad6265SDimitry Andric     {CSKY_VDSP_VERSION, "Tag_CSKY_VDSP_VERSION"},
22*81ad6265SDimitry Andric     {CSKY_FPU_VERSION, "Tag_CSKY_FPU_VERSION"},
23*81ad6265SDimitry Andric     {CSKY_FPU_ABI, "Tag_CSKY_FPU_ABI"},
24*81ad6265SDimitry Andric     {CSKY_FPU_ROUNDING, "Tag_CSKY_FPU_ROUNDING"},
25*81ad6265SDimitry Andric     {CSKY_FPU_DENORMAL, "Tag_CSKY_FPU_DENORMAL"},
26*81ad6265SDimitry Andric     {CSKY_FPU_EXCEPTION, "Tag_CSKY_FPU_EXCEPTION"},
27*81ad6265SDimitry Andric     {CSKY_FPU_NUMBER_MODULE, "Tag_CSKY_FPU_NUMBER_MODULE"},
28*81ad6265SDimitry Andric     {CSKY_FPU_HARDFP, "Tag_CSKY_FPU_HARDFP"}};
29*81ad6265SDimitry Andric 
30*81ad6265SDimitry Andric constexpr TagNameMap CSKYAttributeTags{tagData};
getCSKYAttributeTags()31*81ad6265SDimitry Andric const TagNameMap &llvm::CSKYAttrs::getCSKYAttributeTags() {
32*81ad6265SDimitry Andric   return CSKYAttributeTags;
33*81ad6265SDimitry Andric }
34