[mlir] Remove OpaqueElementsAttr
authorRiver Riddle <riddleriver@gmail.com>
Sat, 16 Jul 2022 03:08:32 +0000 (20:08 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 1 Aug 2022 22:00:54 +0000 (15:00 -0700)
commit40abd7ea641b1150fba58098d1545c0ddc6899cc
tree9a0617e382e26aa557bd6a2ce7be12c52789ac85
parent7651522b78d1340164591e09c4ae1d74857c7bb8
[mlir] Remove OpaqueElementsAttr

This attribute is technical debt from the early stages of MLIR, before
ElementsAttr was an interface and when it was more difficult for
dialects to define their own types of attributes. At present it isn't
used at all in tree (aside from being convenient for eliding other
ElementsAttr), and has had little to no evolution in the past three years.

Differential Revision: https://reviews.llvm.org/D129917
17 files changed:
mlir/include/mlir-c/BuiltinAttributes.h
mlir/include/mlir/IR/BuiltinAttributes.td
mlir/include/mlir/Interfaces/DecodeAttributesInterfaces.h [deleted file]
mlir/lib/AsmParser/AttributeParser.cpp
mlir/lib/AsmParser/Parser.h
mlir/lib/AsmParser/TokenKinds.def
mlir/lib/CAPI/IR/BuiltinAttributes.cpp
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/IR/BuiltinAttributes.cpp
mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
mlir/test/CAPI/ir.c
mlir/test/IR/attribute.mlir
mlir/test/IR/elements-attr-interface.mlir
mlir/test/IR/invalid-builtin-attributes.mlir
mlir/test/IR/pretty-attributes.mlir
mlir/test/python/ir/operation.py
mlir/utils/gdb-scripts/prettyprinters.py