forked from OSchip/llvm-project
1be9fc6611
Enum attributes can be defined using `EnumAttr`, which requires all its cases to be defined with `EnumAttrCase`. To facilitate the interaction between `EnumAttr`s and their C++ consumers, add a new EnumsGen TableGen backend to generate a few common utilities, including an enum class, `llvm::DenseMapInfo` for the enum class, conversion functions from/to strings. This is controlled via the `-gen-enum-decls` and `-gen-enum-defs` command-line options of `mlir-tblgen`. PiperOrigin-RevId: 252209623 |
||
---|---|---|
.. | ||
Dialects | ||
Tutorials | ||
includes | ||
Canonicalization.md | ||
ConversionToLLVMDialect.md | ||
DefiningAttributesAndTypes.md | ||
DeveloperGuide.md | ||
Diagnostics.md | ||
GenericDAGRewriter.md | ||
LangRef.md | ||
MLIRForGraphAlgorithms.md | ||
OpDefinitions.md | ||
Passes.md | ||
Quantization.md | ||
QuickstartRewrites.md | ||
Rationale.md | ||
RationaleSimplifiedPolyhedralForm.md | ||
UsageOfConst.md | ||
WritingAPass.md |