Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:31

0001 //===-- HexagonAttributeParser.h - Hexagon Attribute Parser -----*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_SUPPORT_HEXAGONATTRIBUTEPARSER_H
0010 #define LLVM_SUPPORT_HEXAGONATTRIBUTEPARSER_H
0011 
0012 #include "llvm/Support/ELFAttributeParser.h"
0013 #include "llvm/Support/HexagonAttributes.h"
0014 
0015 namespace llvm {
0016 class HexagonAttributeParser : public ELFAttributeParser {
0017   struct DisplayHandler {
0018     HexagonAttrs::AttrType Attribute;
0019     Error (HexagonAttributeParser::*Routine)(unsigned);
0020   };
0021 
0022   static const DisplayHandler DisplayRoutines[];
0023 
0024   Error handler(uint64_t Tag, bool &Handled) override;
0025 
0026 public:
0027   HexagonAttributeParser(ScopedPrinter *SP)
0028       : ELFAttributeParser(SP, HexagonAttrs::getHexagonAttributeTags(),
0029                            "hexagon") {}
0030   HexagonAttributeParser()
0031       : ELFAttributeParser(HexagonAttrs::getHexagonAttributeTags(), "hexagon") {
0032   }
0033 };
0034 
0035 } // namespace llvm
0036 
0037 #endif