[all-commits] [llvm/llvm-project] 542cba: [OpenACC][CIR] Handle firstprivate bounds recipe l...

Erich Keane via All-commits all-commits at lists.llvm.org
Mon Oct 6 06:46:43 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 542cba893018e6c7faebbc5c19e5c10034c160ea
      https://github.com/llvm/llvm-project/commit/542cba893018e6c7faebbc5c19e5c10034c160ea
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2025-10-06 (Mon, 06 Oct 2025)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.cpp
    M clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.h
    M clang/lib/Sema/SemaOpenACC.cpp
    M clang/test/CIR/CodeGenOpenACC/combined-firstprivate-clause.cpp
    M clang/test/CIR/CodeGenOpenACC/compute-firstprivate-clause.c
    M clang/test/CIR/CodeGenOpenACC/compute-firstprivate-clause.cpp
    A clang/test/CIR/CodeGenOpenACC/firstprivate-clause-recipes.cpp

  Log Message:
  -----------
  [OpenACC][CIR] Handle firstprivate bounds recipe lowering (#161873)

These work the same as the other two (private and reduction) except that
the expression for the 'init' is a copy instead of a default/value init,
and in a separate region. This patch gets all of that correct, and
ensures we generate these as expected.

There is a little extra work to make sure that the bounds-loop
generation does 2 separate array index operations, otherwise this is
very much like the reduction implementation.



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