LLVM  16.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 
9 #ifndef LLVM_LIB_TARGET_HEXAGON_HEXAGONDEPARCH_H
10 #define LLVM_LIB_TARGET_HEXAGON_HEXAGONDEPARCH_H
11 
12 #include "llvm/ADT/StringSwitch.h"
13 
14 namespace llvm {
15 namespace Hexagon {
16 enum class ArchEnum {
17  NoArch,
18  Generic,
19  V5,
20  V55,
21  V60,
22  V62,
23  V65,
24  V66,
25  V67,
26  V68,
27  V69,
28  V71,
29  V73
30 };
31 
34  .Case("generic", Hexagon::ArchEnum::V5)
35  .Case("hexagonv5", Hexagon::ArchEnum::V5)
36  .Case("hexagonv55", Hexagon::ArchEnum::V55)
37  .Case("hexagonv60", Hexagon::ArchEnum::V60)
38  .Case("hexagonv62", Hexagon::ArchEnum::V62)
39  .Case("hexagonv65", Hexagon::ArchEnum::V65)
40  .Case("hexagonv66", Hexagon::ArchEnum::V66)
41  .Case("hexagonv67", Hexagon::ArchEnum::V67)
42  .Case("hexagonv67t", Hexagon::ArchEnum::V67)
43  .Case("hexagonv68", Hexagon::ArchEnum::V68)
44  .Case("hexagonv69", Hexagon::ArchEnum::V69)
45  .Case("hexagonv71", Hexagon::ArchEnum::V71)
46  .Case("hexagonv71t", Hexagon::ArchEnum::V71)
47  .Case("hexagonv73", Hexagon::ArchEnum::V73)
48  .Default(None);
49 }
50 } // namespace Hexagon
51 } // namespace llvm
52 
53 #endif // LLVM_LIB_TARGET_HEXAGON_HEXAGONDEPARCH_H
llvm::StringSwitch::Case
StringSwitch & Case(StringLiteral S, T Value)
Definition: StringSwitch.h:70
llvm::Hexagon::ArchEnum::V73
@ V73
llvm::Hexagon::ArchEnum
ArchEnum
Definition: HexagonDepArch.h:16
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::Hexagon::ArchEnum::NoArch
@ NoArch
llvm::Hexagon::ArchEnum::V65
@ V65
llvm::Optional
Definition: APInt.h:33
llvm::Hexagon::ArchEnum::V5
@ V5
llvm::Hexagon::ArchEnum::V66
@ V66
llvm::Hexagon::ArchEnum::Generic
@ Generic
llvm::Hexagon::ArchEnum::V71
@ V71
llvm::Hexagon::ArchEnum::V62
@ V62
llvm::Hexagon::ArchEnum::V67
@ V67
llvm::Hexagon::ArchEnum::V55
@ V55
llvm::Hexagon::getCpu
Optional< Hexagon::ArchEnum > getCpu(StringRef CPU)
Definition: HexagonDepArch.h:32
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
llvm::None
constexpr std::nullopt_t None
Definition: None.h:27
llvm::Hexagon::ArchEnum::V69
@ V69
StringSwitch.h
llvm::Hexagon::ArchEnum::V68
@ V68
llvm::StringSwitch::Default
R Default(T Value)
Definition: StringSwitch.h:183
llvm::Hexagon::ArchEnum::V60
@ V60
llvm::StringSwitch
A switch()-like statement whose cases are string literals.
Definition: StringSwitch.h:45