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 <map>
18 
19 namespace llvm {
20 namespace Hexagon {
21 enum class ArchEnum { NoArch, Generic, V5, V55, V60, V62, V65, V66, V67 };
22 
23 static constexpr unsigned ArchValsNumArray[] = {5, 55, 60, 62, 65, 66, 67};
24 static constexpr ArrayRef<unsigned> ArchValsNum(ArchValsNumArray);
25 
26 static constexpr StringLiteral ArchValsTextArray[] = { "v5", "v55", "v60", "v62", "v65", "v66", "v67" };
27 static constexpr ArrayRef<StringLiteral> ArchValsText(ArchValsTextArray);
28 
29 static constexpr StringLiteral CpuValsTextArray[] = { "hexagonv5", "hexagonv55", "hexagonv60", "hexagonv62", "hexagonv65", "hexagonv66", "hexagonv67", "hexagonv67t" };
30 static constexpr ArrayRef<StringLiteral> CpuValsText(CpuValsTextArray);
31 
32 static constexpr StringLiteral CpuNickTextArray[] = { "v5", "v55", "v60", "v62", "v65", "v66", "v67", "v67t" };
33 static constexpr ArrayRef<StringLiteral> CpuNickText(CpuNickTextArray);
34 
35 static const std::map<std::string, ArchEnum> CpuTable{
36     {"generic", Hexagon::ArchEnum::V60},
37     {"hexagonv5", Hexagon::ArchEnum::V5},
38     {"hexagonv55", Hexagon::ArchEnum::V55},
39     {"hexagonv60", Hexagon::ArchEnum::V60},
40     {"hexagonv62", Hexagon::ArchEnum::V62},
41     {"hexagonv65", Hexagon::ArchEnum::V65},
42     {"hexagonv66", Hexagon::ArchEnum::V66},
43     {"hexagonv67", Hexagon::ArchEnum::V67},
44     {"hexagonv67t", Hexagon::ArchEnum::V67},
45 };
46 } // namespace Hexagon
47 } // namespace llvm;
48 #endif  // LLVM_LIB_TARGET_HEXAGON_HEXAGONDEPARCH_H
49