LLVM 19.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
28public:
30 : ELFAttributeParser(sw, RISCVAttrs::getRISCVAttributeTags(), "riscv") {}
32 : ELFAttributeParser(RISCVAttrs::getRISCVAttributeTags(), "riscv") {}
33};
34
35} // namespace llvm
36
37#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