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/StringSwitch.h" 16 17 namespace llvm { 18 namespace Hexagon { 19 enum class ArchEnum { NoArch, Generic, V5, V55, V60, V62, V65, V66, V67, V68, V69 }; 20 21 inline Optional<Hexagon::ArchEnum> getCpu(StringRef CPU) { 22 return StringSwitch<Optional<Hexagon::ArchEnum>>(CPU) 23 .Case("generic", Hexagon::ArchEnum::V5) 24 .Case("hexagonv5", Hexagon::ArchEnum::V5) 25 .Case("hexagonv55", Hexagon::ArchEnum::V55) 26 .Case("hexagonv60", Hexagon::ArchEnum::V60) 27 .Case("hexagonv62", Hexagon::ArchEnum::V62) 28 .Case("hexagonv65", Hexagon::ArchEnum::V65) 29 .Case("hexagonv66", Hexagon::ArchEnum::V66) 30 .Case("hexagonv67", Hexagon::ArchEnum::V67) 31 .Case("hexagonv67t", Hexagon::ArchEnum::V67) 32 .Case("hexagonv68", Hexagon::ArchEnum::V68) 33 .Case("hexagonv69", Hexagon::ArchEnum::V69) 34 .Default(None); 35 } 36 } // namespace Hexagon 37 } // namespace llvm 38 39 #endif // LLVM_LIB_TARGET_HEXAGON_HEXAGONDEPARCH_H 40