This patch adds a simple pass to replace the uses inside compute operation. It replaces the `varPtr` values with their corresponding `accPtr` values gathered through the dataClauseOperands. private and reductions variables are not included in this pass since they will normally be replace when they are materialized. Reland with fix for dependencies
23 lines
432 B
CMake
23 lines
432 B
CMake
add_mlir_dialect_library(MLIROpenACCTransforms
|
|
LegalizeData.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/OpenACC
|
|
|
|
DEPENDS
|
|
MLIROpenACCPassIncGen
|
|
MLIROpenACCOpsIncGen
|
|
MLIROpenACCEnumsIncGen
|
|
MLIROpenACCAttributesIncGen
|
|
MLIROpenACCOpsInterfacesIncGen
|
|
MLIROpenACCTypeInterfacesIncGen
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIROpenACCDialect
|
|
MLIRFuncDialect
|
|
MLIRIR
|
|
MLIRPass
|
|
MLIRSupport
|
|
MLIRTransforms
|
|
)
|