GPU_DimensionAttr in python binding

This shows gpu.BlockDimOp() receives a GPU_DimensionAttr type argument, but it seems that GPU_DimensionAttr do not have a python binding. Does it mean that we cannot emit gpu.block_dim operation through python?


Non-builtin attributes need to be explicitly exposed to the Python bindings in order to be usable since we don’t have a generic attribute construction mechanism, unlike operations. The bindings, like many other parts of MLIR, are need-driven and if nobody needed that attribute so far, it has not be exposed in the bindings. Contributions are welcome.