LLVM 23.0.0git
EnumTables.cpp
Go to the documentation of this file.
1//===- EnumTables.cpp - Enum to string conversion tables --------*- C++ -*-===//
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
10#include "llvm/ADT/Enum.h"
12
13using namespace llvm;
14
16#define PDB_ENUM_CLASS_ENT(enum_class, enum) \
17 { \
18 {#enum}, std::underlying_type_t<enum_class>(enum_class::enum) \
19 }
20 constexpr EnumStringDef<uint16_t> Defs[] = {
28 };
29 static constexpr auto Names = BUILD_ENUM_STRINGS(Defs);
30 return EnumStrings(Names);
31}
#define BUILD_ENUM_STRINGS(Tab)
Definition Enum.h:120
#define PDB_ENUM_CLASS_ENT(enum_class, enum)
LLVM_ABI EnumStrings< uint16_t, 1 > getOMFSegMapDescFlagNames()
This is an optimization pass for GlobalISel generic memory operations.
EnumStrings(const EnumStringsStorage< T, NumStrs, N, StrLen > &) -> EnumStrings< T, NumStrs >
Compile-time data representation of enum entries.
Definition Enum.h:47