[mlir] Add alloca address space handling to the data layout subsystem
authorJan Sjodin <jan_sjodin@yahoo.com>
Mon, 20 Mar 2023 20:54:52 +0000 (16:54 -0400)
committerJan Sjodin <jan_sjodin@yahoo.com>
Tue, 21 Mar 2023 13:37:08 +0000 (09:37 -0400)
commit382eb7c2c71648fe15fe568ba67f93d3b53beb08
tree0c81e75060b4ebcf3938c933da93b13147e5f2c1
parent8022ff5f197bf3b2e259126e8a7b806504f91151
[mlir] Add alloca address space handling to the data layout subsystem

This patch adds alloca address space information to the data layout interface
and implementation in the DLTI dialect. This is needed for targets that use
separate address spaces for local/stack data.

Reviewed By: ftynse, krzysz00

Differential Revision: https://reviews.llvm.org/D144657
mlir/include/mlir/Dialect/DLTI/DLTI.h
mlir/include/mlir/Dialect/DLTI/DLTIBase.td
mlir/include/mlir/Interfaces/DataLayoutInterfaces.h
mlir/include/mlir/Interfaces/DataLayoutInterfaces.td
mlir/lib/Dialect/DLTI/DLTI.cpp
mlir/lib/Interfaces/DataLayoutInterfaces.cpp
mlir/lib/Target/LLVMIR/ModuleImport.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Dialect/LLVMIR/layout.mlir
mlir/test/lib/Dialect/DLTI/TestDataLayoutQuery.cpp
mlir/unittests/Interfaces/DataLayoutInterfacesTest.cpp