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, V69 }; 25 26 static constexpr unsigned ArchValsNumArray[] = {5, 55, 60, 62, 65, 66, 67, 68, 69}; 27 static constexpr ArrayRef<unsigned> ArchValsNum(ArchValsNumArray); 28 29 static constexpr StringLiteral ArchValsTextArray[] = { "v5", "v55", "v60", "v62", "v65", "v66", "v67", "v68", "v69" }; 30 static constexpr ArrayRef<StringLiteral> ArchValsText(ArchValsTextArray); 31 32 static constexpr StringLiteral CpuValsTextArray[] = { "hexagonv5", "hexagonv55", "hexagonv60", "hexagonv62", "hexagonv65", "hexagonv66", "hexagonv67", "hexagonv67t", "hexagonv68", "hexagonv69" }; 33 static constexpr ArrayRef<StringLiteral> CpuValsText(CpuValsTextArray); 34 35 static constexpr StringLiteral CpuNickTextArray[] = { "v5", "v55", "v60", "v62", "v65", "v66", "v67", "v67t", "v68", "v69" }; 36 static constexpr ArrayRef<StringLiteral> CpuNickText(CpuNickTextArray); 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 {"hexagonv69", Hexagon::ArchEnum::V69}, 50 }; 51 52 static const std::map<std::string, unsigned> ElfFlagsByCpuStr = { 53 {"generic", llvm::ELF::EF_HEXAGON_MACH_V5}, 54 {"hexagonv5", llvm::ELF::EF_HEXAGON_MACH_V5}, 55 {"hexagonv55", llvm::ELF::EF_HEXAGON_MACH_V55}, 56 {"hexagonv60", llvm::ELF::EF_HEXAGON_MACH_V60}, 57 {"hexagonv62", llvm::ELF::EF_HEXAGON_MACH_V62}, 58 {"hexagonv65", llvm::ELF::EF_HEXAGON_MACH_V65}, 59 {"hexagonv66", llvm::ELF::EF_HEXAGON_MACH_V66}, 60 {"hexagonv67", llvm::ELF::EF_HEXAGON_MACH_V67}, 61 {"hexagonv67t", llvm::ELF::EF_HEXAGON_MACH_V67T}, 62 {"hexagonv68", llvm::ELF::EF_HEXAGON_MACH_V68}, 63 {"hexagonv69", llvm::ELF::EF_HEXAGON_MACH_V69}, 64 }; 65 static const std::map<unsigned, std::string> ElfArchByMachFlags = { 66 {llvm::ELF::EF_HEXAGON_MACH_V5, "V5"}, 67 {llvm::ELF::EF_HEXAGON_MACH_V55, "V55"}, 68 {llvm::ELF::EF_HEXAGON_MACH_V60, "V60"}, 69 {llvm::ELF::EF_HEXAGON_MACH_V62, "V62"}, 70 {llvm::ELF::EF_HEXAGON_MACH_V65, "V65"}, 71 {llvm::ELF::EF_HEXAGON_MACH_V66, "V66"}, 72 {llvm::ELF::EF_HEXAGON_MACH_V67, "V67"}, 73 {llvm::ELF::EF_HEXAGON_MACH_V67T, "V67T"}, 74 {llvm::ELF::EF_HEXAGON_MACH_V68, "V68"}, 75 {llvm::ELF::EF_HEXAGON_MACH_V69, "V69"}, 76 }; 77 static const std::map<unsigned, std::string> ElfCpuByMachFlags = { 78 {llvm::ELF::EF_HEXAGON_MACH_V5, "hexagonv5"}, 79 {llvm::ELF::EF_HEXAGON_MACH_V55, "hexagonv55"}, 80 {llvm::ELF::EF_HEXAGON_MACH_V60, "hexagonv60"}, 81 {llvm::ELF::EF_HEXAGON_MACH_V62, "hexagonv62"}, 82 {llvm::ELF::EF_HEXAGON_MACH_V65, "hexagonv65"}, 83 {llvm::ELF::EF_HEXAGON_MACH_V66, "hexagonv66"}, 84 {llvm::ELF::EF_HEXAGON_MACH_V67, "hexagonv67"}, 85 {llvm::ELF::EF_HEXAGON_MACH_V67T, "hexagonv67t"}, 86 {llvm::ELF::EF_HEXAGON_MACH_V68, "hexagonv68"}, 87 {llvm::ELF::EF_HEXAGON_MACH_V69, "hexagonv69"}, 88 }; 89 90 } // namespace Hexagon 91 } // namespace llvm; 92 93 #endif // LLVM_LIB_TARGET_HEXAGON_HEXAGONDEPARCH_H 94