/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |* *| |* Enum Utility Definitions *| |* *| |* Automatically generated file, do not edit! *| |* From: StructuredOpsUtils.td *| |* *| \*===----------------------------------------------------------------------===*/ namespace mlir::utils { ::llvm::StringRef stringifyIteratorType(IteratorType val) { switch (val) { case IteratorType::parallel: return "parallel"; case IteratorType::reduction: return "reduction"; } return ""; } ::std::optional symbolizeIteratorType(::llvm::StringRef str) { return ::llvm::StringSwitch<::std::optional>(str) .Case("parallel", IteratorType::parallel) .Case("reduction", IteratorType::reduction) .Default(::std::nullopt); } ::std::optional symbolizeIteratorType(uint32_t value) { switch (value) { case 0: return IteratorType::parallel; case 1: return IteratorType::reduction; default: return ::std::nullopt; } } } // namespace mlir::utils