LLVM
22.0.0git
include
llvm
Support
HexagonAttributeParser.h
Go to the documentation of this file.
1
//===-- HexagonAttributeParser.h - Hexagon 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_HEXAGONATTRIBUTEPARSER_H
10
#define LLVM_SUPPORT_HEXAGONATTRIBUTEPARSER_H
11
12
#include "
llvm/Support/Compiler.h
"
13
#include "
llvm/Support/ELFAttrParserCompact.h
"
14
#include "
llvm/Support/HexagonAttributes.h
"
15
16
namespace
llvm
{
17
class
LLVM_ABI
HexagonAttributeParser
:
public
ELFCompactAttrParser
{
18
struct
DisplayHandler {
19
HexagonAttrs::AttrType
Attribute
;
20
Error
(
HexagonAttributeParser
::*Routine)(
unsigned
);
21
};
22
23
static
const
DisplayHandler DisplayRoutines[];
24
25
Error
handler(
uint64_t
Tag
,
bool
&Handled)
override
;
26
27
public
:
28
HexagonAttributeParser
(
ScopedPrinter
*SP)
29
:
ELFCompactAttrParser
(SP,
HexagonAttrs
::getHexagonAttributeTags(),
30
"hexagon"
) {}
31
HexagonAttributeParser
()
32
:
ELFCompactAttrParser
(
HexagonAttrs
::getHexagonAttributeTags(),
33
"hexagon"
) {}
34
};
35
36
}
// namespace llvm
37
38
#endif
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:213
ELFAttrParserCompact.h
HexagonAttributes.h
llvm::Attribute
Functions, function parameters, and return types can have attributes to indicate how they should be t...
Definition
Attributes.h:69
llvm::ELFCompactAttrParser::ELFCompactAttrParser
ELFCompactAttrParser(ScopedPrinter *sw, TagNameMap tagNameMap, StringRef vendor)
Definition
ELFAttrParserCompact.h:56
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition
Error.h:159
llvm::HexagonAttributeParser::HexagonAttributeParser
HexagonAttributeParser()
Definition
HexagonAttributeParser.h:31
llvm::HexagonAttributeParser::HexagonAttributeParser
HexagonAttributeParser(ScopedPrinter *SP)
Definition
HexagonAttributeParser.h:28
llvm::ScopedPrinter
Definition
ScopedPrinter.h:121
uint64_t
unsigned
llvm::HexagonAttrs
Definition
HexagonAttributes.h:16
llvm::HexagonAttrs::AttrType
AttrType
Definition
HexagonAttributes.h:20
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
llvm::HighlightColor::Tag
@ Tag
Definition
WithColor.h:30
Generated on
for LLVM by
1.14.0