LLVM
20.0.0git
lib
Support
RISCVAttributes.cpp
Go to the documentation of this file.
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
{
STACK_ALIGN
,
"Tag_stack_align"
},
16
{
ARCH
,
"Tag_arch"
},
17
{
UNALIGNED_ACCESS
,
"Tag_unaligned_access"
},
18
{
PRIV_SPEC
,
"Tag_priv_spec"
},
19
{
PRIV_SPEC_MINOR
,
"Tag_priv_spec_minor"
},
20
{
PRIV_SPEC_REVISION
,
"Tag_priv_spec_revision"
},
21
{
ATOMIC_ABI
,
"Tag_atomic_abi"
},
22
};
23
24
constexpr
TagNameMap
RISCVAttributeTags
{
tagData
};
25
const
TagNameMap
&
llvm::RISCVAttrs::getRISCVAttributeTags
() {
26
return
RISCVAttributeTags
;
27
}
RISCVAttributeTags
constexpr TagNameMap RISCVAttributeTags
Definition:
RISCVAttributes.cpp:24
tagData
static constexpr TagNameItem tagData[]
Definition:
RISCVAttributes.cpp:14
RISCVAttributes.h
llvm::ArrayRef< TagNameItem >
llvm::RISCVAttrs
Definition:
RISCVAttributes.h:23
llvm::RISCVAttrs::ARCH
@ ARCH
Definition:
RISCVAttributes.h:30
llvm::RISCVAttrs::PRIV_SPEC_MINOR
@ PRIV_SPEC_MINOR
Definition:
RISCVAttributes.h:33
llvm::RISCVAttrs::STACK_ALIGN
@ STACK_ALIGN
Definition:
RISCVAttributes.h:29
llvm::RISCVAttrs::ATOMIC_ABI
@ ATOMIC_ABI
Definition:
RISCVAttributes.h:35
llvm::RISCVAttrs::PRIV_SPEC
@ PRIV_SPEC
Definition:
RISCVAttributes.h:32
llvm::RISCVAttrs::UNALIGNED_ACCESS
@ UNALIGNED_ACCESS
Definition:
RISCVAttributes.h:31
llvm::RISCVAttrs::PRIV_SPEC_REVISION
@ PRIV_SPEC_REVISION
Definition:
RISCVAttributes.h:34
llvm::RISCVAttrs::getRISCVAttributeTags
const TagNameMap & getRISCVAttributeTags()
Definition:
RISCVAttributes.cpp:25
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::TagNameItem
Definition:
ELFAttributes.h:18
Generated on Tue Nov 12 2024 15:24:36 for LLVM by
1.9.6