GDB pretty printer script to improve printing for a few MLIR types.
Most printers just remove one layer of indirection when printing an MLIR type that wraps another.
Directly print (only) the first member for the following types:
- mlir::AbstractOperation
- mlir::Location
- mlir::Attribute
- mlir::NamedAttributeList
- mlir::Value
Directly print (only) the first base class for the following types:
- mlir::DictionaryAttr
- mlir::ElementsAttr
- mlir::EnumAttr
- mlir::EnumCaseAttr
- mlir::LocationAttr
- mlir::StructAttr
Custom printers for the following types:
- mlir::Identifier (print identifier string)
- mlir::OperationName (print name string)
- mlir::detail::StorageUserBase (cast and print *impl)
What types would not have a default visualizer/what case is this intended to handle?