[all-commits] [llvm/llvm-project] 29d475: [mlir][openacc] Add legalize data pass for compute...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Feb 5 08:38:25 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29d47513b3ce706b5df66409170e40ba39f3795a
      https://github.com/llvm/llvm-project/commit/29d47513b3ce706b5df66409170e40ba39f3795a
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-02-05 (Mon, 05 Feb 2024)

  Changed paths:
    M flang/include/flang/Optimizer/Support/InitFIR.h
    A flang/test/Fir/OpenACC/legalize-data.fir
    M mlir/include/mlir/Dialect/OpenACC/CMakeLists.txt
    A mlir/include/mlir/Dialect/OpenACC/Transforms/CMakeLists.txt
    A mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.h
    A mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.td
    M mlir/include/mlir/InitAllPasses.h
    M mlir/lib/Dialect/OpenACC/CMakeLists.txt
    A mlir/lib/Dialect/OpenACC/IR/CMakeLists.txt
    A mlir/lib/Dialect/OpenACC/Transforms/CMakeLists.txt
    A mlir/lib/Dialect/OpenACC/Transforms/LegalizeData.cpp
    A mlir/test/Dialect/OpenACC/legalize-data.mlir

  Log Message:
  -----------
  [mlir][openacc] Add legalize data pass for compute operation (#80351)

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.

---------

Co-authored-by: Slava Zakharin <szakharin at nvidia.com>




More information about the All-commits mailing list