I have added an alignment attribute to memref.global.
Naturally, I have also:
- changed the documentation of memref.global to reflect this
- added verification code that checks that the attribute value (if present) is a positive power of 2
- added code to StandardToLLVM.cpp ensuring that the alignment attribute is correctly passed during lowering.
- added one test case for the lowering to LLVM and one test case checking that the verification code functions.
Nit: I wouldn't expect the documentation of an op to describe how it is lowered to a specific dialect.