Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===---- CSKYAttributeParser.h - CSKY 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_CSKYATTRIBUTEPARSER_H
0010 #define LLVM_SUPPORT_CSKYATTRIBUTEPARSER_H
0011 
0012 #include "llvm/Support/CSKYAttributes.h"
0013 #include "llvm/Support/ELFAttributeParser.h"
0014 
0015 namespace llvm {
0016 class CSKYAttributeParser : public ELFAttributeParser {
0017   struct DisplayHandler {
0018     CSKYAttrs::AttrType attribute;
0019     Error (CSKYAttributeParser::*routine)(unsigned);
0020   };
0021   static const DisplayHandler displayRoutines[];
0022 
0023   Error dspVersion(unsigned tag);
0024   Error vdspVersion(unsigned tag);
0025   Error fpuVersion(unsigned tag);
0026   Error fpuABI(unsigned tag);
0027   Error fpuRounding(unsigned tag);
0028   Error fpuDenormal(unsigned tag);
0029   Error fpuException(unsigned tag);
0030   Error fpuHardFP(unsigned tag);
0031 
0032   Error handler(uint64_t tag, bool &handled) override;
0033 
0034 public:
0035   CSKYAttributeParser(ScopedPrinter *sw)
0036       : ELFAttributeParser(sw, CSKYAttrs::getCSKYAttributeTags(), "csky") {}
0037   CSKYAttributeParser()
0038       : ELFAttributeParser(CSKYAttrs::getCSKYAttributeTags(), "csky") {}
0039 };
0040 
0041 } // namespace llvm
0042 
0043 #endif