14const RISCVAttributeParser::DisplayHandler
15 RISCVAttributeParser::displayRoutines[] = {
34 &RISCVAttributeParser::stackAlign,
38 &RISCVAttributeParser::unalignedAccess,
42 &RISCVAttributeParser::atomicAbi,
46Error RISCVAttributeParser::atomicAbi(
unsigned Tag) {
52Error RISCVAttributeParser::unalignedAccess(
unsigned tag) {
53 static const char *
const strings[] = {
"No unaligned access",
58Error RISCVAttributeParser::stackAlign(
unsigned tag) {
60 std::string description =
61 "Stack alignment is " + utostr(
value) + std::string(
"-bytes");
66Error RISCVAttributeParser::handler(
uint64_t tag,
bool &handled) {
68 for (
const auto &AH : displayRoutines) {
70 if (
Error e = (this->*AH.routine)(tag))
Given that RA is a live value
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Error integerAttribute(unsigned tag)
DataExtractor::Cursor cursor
Error stringAttribute(unsigned tag)
Error parseStringAttribute(const char *name, unsigned tag, ArrayRef< const char * > strings)
void printAttribute(unsigned tag, unsigned value, StringRef valueDesc)
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
LLVM Value Representation.
This is an optimization pass for GlobalISel generic memory operations.