memref.alloc it is possible to specify the alignment using an attribute, it appears from the documentation that this is not possible for
memref.global objects. Is there any way of specifying it? If not, would it be possible to add this feature (an
alignment attribute on
mlir.global) which would be very useful in vectorized code?
Note that in LLVM IR, global variables allow the specification of an alignment, but this is not possible in the
llvm dialect of MLIR. I therefore assume that the extension would have to touch the
llvm.mlir.globaloperations and the lowering passes of both
mlir-translate. But not in fundamental ways.
I could do it (it seems doable), but this would be my first contribution to the MLIR codebase, and therefore I’d need some supervision.