llvm-project/mlir/unittests/TableGen
Lei Zhang 1be9fc6611 [TableGen] Generating enum definitions and utility functions
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
2019-06-09 16:24:08 -07:00
..
CMakeLists.txt [TableGen] Generating enum definitions and utility functions 2019-06-09 16:24:08 -07:00
EnumsGenTest.cpp [TableGen] Generating enum definitions and utility functions 2019-06-09 16:24:08 -07:00
FormatTest.cpp [TableGen] Better support for predicate and rewrite rule specification 2019-04-18 11:47:27 -07:00
enums.td [TableGen] Generating enum definitions and utility functions 2019-06-09 16:24:08 -07:00