LLVM  16.0.0git
MSP430AttributeParser.h
Go to the documentation of this file.
1 //===-- MSP430AttributeParser.h - MSP430 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 /// \file
10 /// This file contains support routines for parsing MSP430 ELF build attributes.
11 ///
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_SUPPORT_MSP430ATTRIBUTEPARSER_H
15 #define LLVM_SUPPORT_MSP430ATTRIBUTEPARSER_H
16 
19 
20 namespace llvm {
22  struct DisplayHandler {
25  };
26  static const std::array<DisplayHandler, 4> DisplayRoutines;
27 
29  Error parseCodeModel(MSP430Attrs::AttrType Tag);
30  Error parseDataModel(MSP430Attrs::AttrType Tag);
31  Error parseEnumSize(MSP430Attrs::AttrType Tag);
32 
33  Error handler(uint64_t Tag, bool &Handled) override;
34 
35 public:
37  : ELFAttributeParser(SW, MSP430Attrs::getMSP430AttributeTags(),
38  "mspabi") {}
40  : ELFAttributeParser(MSP430Attrs::getMSP430AttributeTags(), "mspabi") {}
41 };
42 } // namespace llvm
43 
44 #endif
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::Attribute
Definition: Attributes.h:66
llvm::MSP430AttributeParser
Definition: MSP430AttributeParser.h:21
llvm::MSP430Attrs::AttrType
AttrType
Definition: MSP430Attributes.h:28
llvm::dwarf::Tag
Tag
Definition: Dwarf.h:105
MSP430Attributes.h
llvm::MSP430Attrs::getMSP430AttributeTags
const TagNameMap & getMSP430AttributeTags()
Definition: MSP430Attributes.cpp:20
llvm::MSP430AttributeParser::MSP430AttributeParser
MSP430AttributeParser()
Definition: MSP430AttributeParser.h:39
uint64_t
ELFAttributeParser.h
llvm::ELFAttributeParser
Definition: ELFAttributeParser.h:25
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition: Error.h:155
llvm::ScopedPrinter
Definition: ScopedPrinter.h:100
llvm::MSP430AttributeParser::MSP430AttributeParser
MSP430AttributeParser(ScopedPrinter *SW)
Definition: MSP430AttributeParser.h:36