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

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d091206dd656c2a9d31d6088a4aa6f9c2cc7156
      https://github.com/llvm/llvm-project/commit/0d091206dd656c2a9d31d6088a4aa6f9c2cc7156
  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.

Reland with fix for dependencies




More information about the All-commits mailing list