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 | {.attr: CSKY_ARCH_NAME, .tagName: "Tag_CSKY_ARCH_NAME" }, |
16 | {.attr: CSKY_CPU_NAME, .tagName: "Tag_CSKY_CPU_NAME" }, |
17 | {.attr: CSKY_CPU_NAME, .tagName: "Tag_CSKY_CPU_NAME" }, |
18 | {.attr: CSKY_ISA_FLAGS, .tagName: "Tag_CSKY_ISA_FLAGS" }, |
19 | {.attr: CSKY_ISA_EXT_FLAGS, .tagName: "Tag_CSKY_ISA_EXT_FLAGS" }, |
20 | {.attr: CSKY_DSP_VERSION, .tagName: "Tag_CSKY_DSP_VERSION" }, |
21 | {.attr: CSKY_VDSP_VERSION, .tagName: "Tag_CSKY_VDSP_VERSION" }, |
22 | {.attr: CSKY_FPU_VERSION, .tagName: "Tag_CSKY_FPU_VERSION" }, |
23 | {.attr: CSKY_FPU_ABI, .tagName: "Tag_CSKY_FPU_ABI" }, |
24 | {.attr: CSKY_FPU_ROUNDING, .tagName: "Tag_CSKY_FPU_ROUNDING" }, |
25 | {.attr: CSKY_FPU_DENORMAL, .tagName: "Tag_CSKY_FPU_DENORMAL" }, |
26 | {.attr: CSKY_FPU_EXCEPTION, .tagName: "Tag_CSKY_FPU_EXCEPTION" }, |
27 | {.attr: CSKY_FPU_NUMBER_MODULE, .tagName: "Tag_CSKY_FPU_NUMBER_MODULE" }, |
28 | {.attr: CSKY_FPU_HARDFP, .tagName: "Tag_CSKY_FPU_HARDFP" }}; |
29 | |
30 | constexpr TagNameMap CSKYAttributeTags{tagData}; |
31 | const TagNameMap &llvm::CSKYAttrs::getCSKYAttributeTags() { |
32 | return CSKYAttributeTags; |
33 | } |
34 | |