[MLIR] Add support for alloca() of non-zero address spaces
authorKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Tue, 15 Feb 2022 16:55:22 +0000 (16:55 +0000)
committerKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Tue, 15 Feb 2022 18:41:30 +0000 (18:41 +0000)
commit5f6ce97408e978945d44ba33066514fa11f9a416
treebed186e6da42eb6908cfc3204bb3b8c0f4d0454d
parent8cff26d290d63a3efa2c4ff1f5513aedcf8a5c8b
[MLIR] Add support for alloca() of non-zero address spaces

This change is needed when lowering alloca()-using code on targets
such as ROCDL that represent private scratch space as a separate
address space.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D119775
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/test/Target/LLVMIR/llvmir.mlir