This greatly simplifies composing enums in attribute/type printers,
which currently reimplement these functions as needed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D136407
[mlir] Generate parser/printers for enums ClosedPublic Authored by rriddle on Oct 20 2022, 5:57 PM.
Details Summary This greatly simplifies composing enums in attribute/type printers,
Diff Detail
Event Timelinerriddle added a child revision: D136408: [mlir] Implement the SubElement interfaces for the builtin locations.Oct 20 2022, 5:57 PM Mogball added inline comments. This revision is now accepted and ready to land.Oct 20 2022, 6:29 PM Closed by commit rG29bb0b5e1d4d: [mlir] Generate parser/printers for enums (authored by rriddle). · Explain WhyOct 21 2022, 3:33 PM This revision was automatically updated to reflect the committed changes. rriddle marked an inline comment as done.
Revision Contents
Diff 469800 mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/test/Dialect/LLVMIR/func.mlir
mlir/test/mlir-tblgen/enums-gen.td
mlir/tools/mlir-tblgen/EnumsGen.cpp
mlir/tools/mlir-tblgen/FormatGen.cpp
|
Can you add a test for a non keyword case?