[all-commits] [llvm/llvm-project] a96463: [mlir][OpenMP] Add optional alloc region to reduct...

Tom Eccles via All-commits all-commits at lists.llvm.org
Thu Aug 22 06:11:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a964635939ed9fadcaf6833b29f4ebeb9a9df4ef
      https://github.com/llvm/llvm-project/commit/a964635939ed9fadcaf6833b29f4ebeb9a9df4ef
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2024-08-22 (Thu, 22 Aug 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
    M mlir/test/Dialect/OpenMP/invalid.mlir
    M mlir/test/Dialect/OpenMP/ops.mlir

  Log Message:
  -----------
  [mlir][OpenMP] Add optional alloc region to reduction decl (#102522)

This region is intended to separate alloca operations from reduction
variable initialization. This makes it easier to hoist allocas to the
entry block before control flow and complex code for initialization.

The verifier checks that there is at most one block in the alloc region.
This is not sufficient to avoid control flow in general MLIR, but by the
time we are converting to LLVMIR structured control flow should already
have been lowered to the cf dialect.

1/3
Part 2: https://github.com/llvm/llvm-project/pull/102524
Part 3: https://github.com/llvm/llvm-project/pull/102525



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