With this revision, all builtin attributes and types will have been moved to the ODS generator.
Depends On D98473
Paths
| Differential D98474
[mlir][IR] Move the remaining builtin attributes to ODS. ClosedPublic Authored by rriddle on Mar 11 2021, 6:10 PM.
Details Summary With this revision, all builtin attributes and types will have been moved to the ODS generator. Depends On D98473
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 12 2021, 7:35 AM Closed by commit rGcaa7038a8932: [mlir][IR] Move the remaining builtin attributes to ODS. (authored by rriddle). · Explain WhyMar 16 2021, 4:39 PM This revision was automatically updated to reflect the committed changes. Comment Actions This change broke the mlir-nvidia bot, you didn't get an email notification for this? It seems that the issue is with the Python bindings which are exercising recovering from a getChecked() test. The test does: try: fattr_invalid = FloatAttr.get( IntegerType.get_signless(32), 42) except ValueError as e: # CHECK: invalid 'Type(i32)' and expected floating point type. print(e) But now it asserts: mlir/include/mlir/IR/Types.h:243: U mlir::Type::cast() const [U = mlir::FloatType]: Assertion `isa<U>()' failed. Aborted I think this is what is fixed in https://reviews.llvm.org/D98764 ; but I'm curious why it was broken in this patch and if there are other "demon" hidden in here?
Revision Contents
Diff 330118 mlir/include/mlir/IR/BuiltinAttributes.h
mlir/include/mlir/IR/BuiltinAttributes.td
mlir/include/mlir/IR/OpBase.td
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/IR/AttributeDetail.h
mlir/lib/IR/BuiltinAttributes.cpp
mlir/lib/IR/MLIRContext.cpp
mlir/lib/Parser/AttributeParser.cpp
mlir/lib/TableGen/AttrOrTypeDef.cpp
mlir/test/CAPI/ir.c
mlir/test/IR/invalid.mlir
mlir/test/IR/pretty-attributes.mlir
mlir/test/mlir-tblgen/attrdefs.td
mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
|