[all-commits] [llvm/llvm-project] dfe773: [mlir][acc] Add acc.compute_region and acc.par_wid...

Razvan Lupusoru via All-commits all-commits at lists.llvm.org
Thu Mar 5 13:14:19 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfe773869032eb2c5cf3b4f71d28fb32dc4248b5
      https://github.com/llvm/llvm-project/commit/dfe773869032eb2c5cf3b4f71d28fb32dc4248b5
  Author: Razvan Lupusoru <razvan.lupusoru at gmail.com>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M mlir/include/mlir/Dialect/OpenACC/OpenACCCGOps.td
    M mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
    M mlir/include/mlir/Dialect/OpenACC/OpenACCOpsTypes.td
    M mlir/lib/Dialect/OpenACC/IR/OpenACCCG.cpp
    M mlir/test/Dialect/OpenACC/invalid-cg.mlir
    M mlir/test/Dialect/OpenACC/ops-cg.mlir

  Log Message:
  -----------
  [mlir][acc] Add acc.compute_region and acc.par_width operations (#184864)

Introduce two new codegen operations to the acc dialect that model GPU
compute region execution and parallel launch configuration:
- acc.par_width: specifies a parallel dimension.
- acc.compute_region: wraps a region of code for GPU execution,
capturing
launch configuration (from acc.par_width results) and input values as
block arguments.

These operations bridge the gap between high-level OpenACC compute
constructs (acc.parallel, acc.kernels, acc.serial) and gpu.launch. The
passes that do these transformations will soon follow.

---------

Co-authored-by: Scott Manley <rscottmanley at gmail.com>



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