LLVM 20.0.0git
RISCVAttributeParser.h
Go to the documentation of this file.
1//===-- RISCVAttributeParser.h - RISCV Attribute Parser ---------*- C++ -*-===//
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#ifndef LLVM_SUPPORT_RISCVATTRIBUTEPARSER_H
10#define LLVM_SUPPORT_RISCVATTRIBUTEPARSER_H
11
14
15namespace llvm {
17 struct DisplayHandler {
18 RISCVAttrs::AttrType attribute;
20 };
21 static const DisplayHandler displayRoutines[];
22
23 Error handler(uint64_t tag, bool &handled) override;
24
25 Error unalignedAccess(unsigned tag);
26 Error stackAlign(unsigned tag);
27 Error atomicAbi(unsigned tag);
28
29public:
31 : ELFAttributeParser(sw, RISCVAttrs::getRISCVAttributeTags(), "riscv") {}
33 : ELFAttributeParser(RISCVAttrs::getRISCVAttributeTags(), "riscv") {}
34};
35
36} // namespace llvm
37
38#endif
Lightweight error class with error context and mandatory checking.
Definition: Error.h:160
RISCVAttributeParser(ScopedPrinter *sw)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18