As far as I am aware, not using const in MLIR only applies to Operations, not to types or attributes. Parts of the codebase currently assume const correctness of types. An example are type interfaces which only generate const methods.
This patch applies const to all immutable methods of the types in the LLVMIR Dialect, allowing type interfaces to be added in the future.
Notably, this was already done for LLVMPointerType back when the DataLayoutTypeInterface was added to it.