xref: /freebsd/contrib/llvm-project/llvm/lib/Support/RISCVAttributes.cpp (revision 5ffd83dbcc34f10e07f6d3e968ae6365869615f4)
1*5ffd83dbSDimitry Andric //===-- RISCVAttributes.cpp - RISCV Attributes ----------------------------===//
2*5ffd83dbSDimitry Andric //
3*5ffd83dbSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*5ffd83dbSDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*5ffd83dbSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*5ffd83dbSDimitry Andric //
7*5ffd83dbSDimitry Andric //===----------------------------------------------------------------------===//
8*5ffd83dbSDimitry Andric 
9*5ffd83dbSDimitry Andric #include "llvm/Support/RISCVAttributes.h"
10*5ffd83dbSDimitry Andric 
11*5ffd83dbSDimitry Andric using namespace llvm;
12*5ffd83dbSDimitry Andric using namespace llvm::RISCVAttrs;
13*5ffd83dbSDimitry Andric 
14*5ffd83dbSDimitry Andric static const TagNameItem tagData[] = {
15*5ffd83dbSDimitry Andric     {STACK_ALIGN, "Tag_stack_align"},
16*5ffd83dbSDimitry Andric     {ARCH, "Tag_arch"},
17*5ffd83dbSDimitry Andric     {UNALIGNED_ACCESS, "Tag_unaligned_access"},
18*5ffd83dbSDimitry Andric     {PRIV_SPEC, "Tag_priv_spec"},
19*5ffd83dbSDimitry Andric     {PRIV_SPEC_MINOR, "Tag_priv_spec_minor"},
20*5ffd83dbSDimitry Andric     {PRIV_SPEC_REVISION, "Tag_priv_spec_revision"},
21*5ffd83dbSDimitry Andric };
22*5ffd83dbSDimitry Andric 
23*5ffd83dbSDimitry Andric const TagNameMap llvm::RISCVAttrs::RISCVAttributeTags(tagData,
24*5ffd83dbSDimitry Andric                                                       sizeof(tagData) /
25*5ffd83dbSDimitry Andric                                                           sizeof(TagNameItem));
26