32template <
typename EnumType>
43template <
typename T,
typename>
48 template <
typename ParserT>
49 static FailureOr<::llzk::polymorphic::StructCleanupMode>
parse(ParserT &parser) {
51 std::string enumKeyword;
52 auto loc = parser.getCurrentLocation();
53 if (failed(parser.parseOptionalKeywordOrString(&enumKeyword)))
54 return parser.emitError(loc,
"expected keyword for Specifies the extent to which unused parameterized structs are removed during the flattening pass.");
59 return parser.emitError(loc,
"invalid Specifies the extent to which unused parameterized structs are removed during the flattening pass. specification: ") << enumKeyword;
66 auto valueStr = stringifyEnum(value);
68 case ::llzk::polymorphic::StructCleanupMode::Disabled:
69 case ::llzk::polymorphic::StructCleanupMode::Preimage:
72 return p <<
'"' << valueStr <<
'"';
82 static inline ::llzk::polymorphic::StructCleanupMode
getEmptyKey() {
90 static unsigned getHashValue(const ::llzk::polymorphic::StructCleanupMode &val) {
91 return StorageInfo::getHashValue(
static_cast<uint32_t
>(val));
94 static bool isEqual(const ::llzk::polymorphic::StructCleanupMode &lhs, const ::llzk::polymorphic::StructCleanupMode &rhs) {
inline ::llvm::raw_ostream & operator<<(::llvm::raw_ostream &p, ::llzk::OutputStream value)
::std::optional< StructCleanupMode > symbolizeStructCleanupMode(::llvm::StringRef str)
::std::optional< EnumType > symbolizeEnum(::llvm::StringRef)
inline ::llvm::StringRef stringifyEnum(StructCleanupMode enumValue)
inline ::std::optional< StructCleanupMode > symbolizeEnum< StructCleanupMode >(::llvm::StringRef str)
::llvm::StringRef stringifyStructCleanupMode(StructCleanupMode val)
constexpr unsigned getMaxEnumValForStructCleanupMode()
static unsigned getHashValue(const ::llzk::polymorphic::StructCleanupMode &val)
::llvm::DenseMapInfo< uint32_t > StorageInfo
static inline ::llzk::polymorphic::StructCleanupMode getEmptyKey()
static inline ::llzk::polymorphic::StructCleanupMode getTombstoneKey()
static bool isEqual(const ::llzk::polymorphic::StructCleanupMode &lhs, const ::llzk::polymorphic::StructCleanupMode &rhs)
static FailureOr<::llzk::polymorphic::StructCleanupMode > parse(ParserT &parser)