aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorKrzysztof Drewniak <krzysdrewniak@gmail.com>2025-03-27 19:40:06 -0500
committerGitHub <noreply@github.com>2025-03-27 19:40:06 -0500
commitd7c53a91c2c11439429bbd50bb1d0a202c553a47 (patch)
treecd68d747644ca646a177bf006652bf18d85d618f /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parentf4e14e7cf37543e2b57b7b6422a0bd94c50e9040 (diff)
downloadllvm-d7c53a91c2c11439429bbd50bb1d0a202c553a47.zip
llvm-d7c53a91c2c11439429bbd50bb1d0a202c553a47.tar.gz
llvm-d7c53a91c2c11439429bbd50bb1d0a202c553a47.tar.bz2
[mlir] Decouple enum generation from attributes, adding EnumInfo and EnumCase (#132148)
This commit pulls apart the inherent attribute dependence of classes like EnumAttrInfo and EnumAttrCase, factoring them out into simpler EnumCase and EnumInfo variants. This allows specifying the cases of an enum without needing to make the cases, or the EnumInfo itself, a subclass of SignlessIntegerAttrBase. The existing classes are retained as subclasses of the new ones, both for backwards compatibility and to allow attribute-specific information. In addition, the new BitEnum class changes its default printer/parser behavior: cases when multiple keywords appear, like having both nuw and nsw in overflow flags, will no longer be quoted by the operator<<, and the FieldParser instance will now expect multiple keywords. All instances of BitEnumAttr retain the old behavior.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions