[all-commits] [llvm/llvm-project] 922ab7: [MLIR][OpenMP] Extend omp.private materialization ...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Thu May 2 23:59:24 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 922ab7089b2eb234afa6fa0e7db85110cd8a3351
      https://github.com/llvm/llvm-project/commit/922ab7089b2eb234afa6fa0e7db85110cd8a3351
  Author: Kareem Ergawy <kareem.ergawy at amd.com>
  Date:   2024-05-03 (Fri, 03 May 2024)

  Changed paths:
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    A mlir/test/Target/LLVMIR/openmp-omp.private-dealloc.mlir

  Log Message:
  -----------
  [MLIR][OpenMP] Extend omp.private materialization support: `dealloc` (#90841)

Extends current support for delayed privatization during translation to
LLVM IR. This adds support for materlizaing the `dealloc` region in
`omp.private` ops when this region contains clean-up/deallocation logic
that needs to be executed at the end of the parallel region.

This changes the `OMPIRBuilder` slightly to execute the finalization
callback **after** the privatization callback. This allows us to collect
information about privatized variables on the MLIR and LLVM sides so
that we can properly emit deallocation logic.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list