1 | //===-- RISCVAttributes.cpp - RISCV 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/RISCVAttributes.h" |
10 | |
11 | using namespace llvm; |
12 | using namespace llvm::RISCVAttrs; |
13 | |
14 | static constexpr TagNameItem tagData[] = { |
15 | {.attr: STACK_ALIGN, .tagName: "Tag_stack_align" }, |
16 | {.attr: ARCH, .tagName: "Tag_arch" }, |
17 | {.attr: UNALIGNED_ACCESS, .tagName: "Tag_unaligned_access" }, |
18 | {.attr: PRIV_SPEC, .tagName: "Tag_priv_spec" }, |
19 | {.attr: PRIV_SPEC_MINOR, .tagName: "Tag_priv_spec_minor" }, |
20 | {.attr: PRIV_SPEC_REVISION, .tagName: "Tag_priv_spec_revision" }, |
21 | {.attr: ATOMIC_ABI, .tagName: "Tag_atomic_abi" }, |
22 | }; |
23 | |
24 | constexpr TagNameMap RISCVAttributeTags{tagData}; |
25 | const TagNameMap &llvm::RISCVAttrs::getRISCVAttributeTags() { |
26 | return RISCVAttributeTags; |
27 | } |
28 | |