LLVM  14.0.0git
HexagonDepArch.h
Go to the documentation of this file.
1 //===----------------------------------------------------------------------===//
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 // Automatically generated file, do not edit!
9 //===----------------------------------------------------------------------===//
10 
11 
12 #ifndef LLVM_LIB_TARGET_HEXAGON_HEXAGONDEPARCH_H
13 #define LLVM_LIB_TARGET_HEXAGON_HEXAGONDEPARCH_H
14 
15 #include "llvm/ADT/ArrayRef.h"
16 #include "llvm/ADT/StringRef.h"
17 #include "llvm/BinaryFormat/ELF.h"
18 
19 #include <map>
20 #include <string>
21 
22 namespace llvm {
23 namespace Hexagon {
24 enum class ArchEnum { NoArch, Generic, V5, V55, V60, V62, V65, V66, V67, V68 };
25 
26 static constexpr unsigned ArchValsNumArray[] = {5, 55, 60, 62, 65, 66, 67, 68};
28 
29 static constexpr StringLiteral ArchValsTextArray[] = { "v5", "v55", "v60", "v62", "v65", "v66", "v67", "v68" };
31 
32 static constexpr StringLiteral CpuValsTextArray[] = { "hexagonv5", "hexagonv55", "hexagonv60", "hexagonv62", "hexagonv65", "hexagonv66", "hexagonv67", "hexagonv67t", "hexagonv68" };
34 
35 static constexpr StringLiteral CpuNickTextArray[] = { "v5", "v55", "v60", "v62", "v65", "v66", "v67", "v67t", "v68" };
37 
38 static const std::map<std::string, ArchEnum> CpuTable{
39  {"generic", Hexagon::ArchEnum::V5},
40  {"hexagonv5", Hexagon::ArchEnum::V5},
41  {"hexagonv55", Hexagon::ArchEnum::V55},
42  {"hexagonv60", Hexagon::ArchEnum::V60},
43  {"hexagonv62", Hexagon::ArchEnum::V62},
44  {"hexagonv65", Hexagon::ArchEnum::V65},
45  {"hexagonv66", Hexagon::ArchEnum::V66},
46  {"hexagonv67", Hexagon::ArchEnum::V67},
47  {"hexagonv67t", Hexagon::ArchEnum::V67},
48  {"hexagonv68", Hexagon::ArchEnum::V68},
49 };
50 
51 static const std::map<std::string, unsigned> ElfFlagsByCpuStr = {
52  {"generic", llvm::ELF::EF_HEXAGON_MACH_V5},
53  {"hexagonv5", llvm::ELF::EF_HEXAGON_MACH_V5},
54  {"hexagonv55", llvm::ELF::EF_HEXAGON_MACH_V55},
55  {"hexagonv60", llvm::ELF::EF_HEXAGON_MACH_V60},
56  {"hexagonv62", llvm::ELF::EF_HEXAGON_MACH_V62},
57  {"hexagonv65", llvm::ELF::EF_HEXAGON_MACH_V65},
58  {"hexagonv66", llvm::ELF::EF_HEXAGON_MACH_V66},
59  {"hexagonv67", llvm::ELF::EF_HEXAGON_MACH_V67},
60  {"hexagonv67t", llvm::ELF::EF_HEXAGON_MACH_V67T},
61  {"hexagonv68", llvm::ELF::EF_HEXAGON_MACH_V68},
62 };
63 static const std::map<unsigned, std::string> ElfArchByMachFlags = {
73 };
74 static const std::map<unsigned, std::string> ElfCpuByMachFlags = {
75  {llvm::ELF::EF_HEXAGON_MACH_V5, "hexagonv5"},
76  {llvm::ELF::EF_HEXAGON_MACH_V55, "hexagonv55"},
77  {llvm::ELF::EF_HEXAGON_MACH_V60, "hexagonv60"},
78  {llvm::ELF::EF_HEXAGON_MACH_V62, "hexagonv62"},
79  {llvm::ELF::EF_HEXAGON_MACH_V65, "hexagonv65"},
80  {llvm::ELF::EF_HEXAGON_MACH_V66, "hexagonv66"},
81  {llvm::ELF::EF_HEXAGON_MACH_V67, "hexagonv67"},
82  {llvm::ELF::EF_HEXAGON_MACH_V67T, "hexagonv67t"},
83  {llvm::ELF::EF_HEXAGON_MACH_V68, "hexagonv68"},
84 };
85 
86 } // namespace Hexagon
87 } // namespace llvm;
88 
89 #endif // LLVM_LIB_TARGET_HEXAGON_HEXAGONDEPARCH_H
llvm::Hexagon::CpuNickText
static constexpr ArrayRef< StringLiteral > CpuNickText(CpuNickTextArray)
llvm::ELF::EF_HEXAGON_MACH_V65
@ EF_HEXAGON_MACH_V65
Definition: ELF.h:606
llvm::Hexagon::ArchEnum
ArchEnum
Definition: HexagonDepArch.h:24
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::Hexagon::ArchEnum::NoArch
@ NoArch
llvm::Hexagon::ArchValsText
static constexpr ArrayRef< StringLiteral > ArchValsText(ArchValsTextArray)
llvm::Hexagon::ArchEnum::V65
@ V65
StringRef.h
llvm::ELF::EF_HEXAGON_MACH_V66
@ EF_HEXAGON_MACH_V66
Definition: ELF.h:607
llvm::Hexagon::CpuValsText
static constexpr ArrayRef< StringLiteral > CpuValsText(CpuValsTextArray)
llvm::Hexagon::ElfCpuByMachFlags
static const std::map< unsigned, std::string > ElfCpuByMachFlags
Definition: HexagonDepArch.h:74
llvm::ELF::EF_HEXAGON_MACH_V67T
@ EF_HEXAGON_MACH_V67T
Definition: ELF.h:609
llvm::Hexagon::ArchEnum::V5
@ V5
llvm::Hexagon::ArchEnum::V66
@ V66
llvm::StringLiteral
A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs...
Definition: StringRef.h:891
llvm::ELF::EF_HEXAGON_MACH_V68
@ EF_HEXAGON_MACH_V68
Definition: ELF.h:610
ELF.h
llvm::Hexagon::ElfFlagsByCpuStr
static const std::map< std::string, unsigned > ElfFlagsByCpuStr
Definition: HexagonDepArch.h:51
llvm::Hexagon::ArchEnum::Generic
@ Generic
llvm::Hexagon::ArchEnum::V62
@ V62
llvm::ELF::EF_HEXAGON_MACH_V60
@ EF_HEXAGON_MACH_V60
Definition: ELF.h:604
llvm::Hexagon::ArchEnum::V67
@ V67
llvm::Hexagon::ArchValsNum
static constexpr ArrayRef< unsigned > ArchValsNum(ArchValsNumArray)
llvm::Hexagon::ArchValsTextArray
static constexpr StringLiteral ArchValsTextArray[]
Definition: HexagonDepArch.h:29
llvm::Hexagon::CpuNickTextArray
static constexpr StringLiteral CpuNickTextArray[]
Definition: HexagonDepArch.h:35
llvm::ELF::EF_HEXAGON_MACH_V67
@ EF_HEXAGON_MACH_V67
Definition: ELF.h:608
ArrayRef.h
llvm::Hexagon::ArchEnum::V55
@ V55
llvm::ArrayRef< unsigned >
llvm::Hexagon::CpuTable
static const std::map< std::string, ArchEnum > CpuTable
Definition: HexagonDepArch.h:38
llvm::ELF::EF_HEXAGON_MACH_V62
@ EF_HEXAGON_MACH_V62
Definition: ELF.h:605
llvm::Hexagon::ArchValsNumArray
static constexpr unsigned ArchValsNumArray[]
Definition: HexagonDepArch.h:26
llvm::Hexagon::ArchEnum::V68
@ V68
llvm::Hexagon::ArchEnum::V60
@ V60
llvm::ELF::EF_HEXAGON_MACH_V55
@ EF_HEXAGON_MACH_V55
Definition: ELF.h:603
llvm::Hexagon::ElfArchByMachFlags
static const std::map< unsigned, std::string > ElfArchByMachFlags
Definition: HexagonDepArch.h:63
llvm::ELF::EF_HEXAGON_MACH_V5
@ EF_HEXAGON_MACH_V5
Definition: ELF.h:602
llvm::Hexagon::CpuValsTextArray
static constexpr StringLiteral CpuValsTextArray[]
Definition: HexagonDepArch.h:32