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
11using namespace llvm;
12using namespace llvm::RISCVAttrs;
13
14static 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};
22
23constexpr TagNameMap RISCVAttributeTags{tagData};
24const TagNameMap &llvm::RISCVAttrs::getRISCVAttributeTags() {
25 return RISCVAttributeTags;
26}
27

source code of llvm/lib/Support/RISCVAttributes.cpp