[all-commits] [llvm/llvm-project] dab8c8: [OpenACC] Implement 'firstprivate' clause copy low...

Erich Keane via All-commits all-commits at lists.llvm.org
Tue Aug 19 06:02:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dab8c88f1533e6f2b4c788fc1c4a67ceb2e6c1e5
      https://github.com/llvm/llvm-project/commit/dab8c88f1533e6f2b4c788fc1c4a67ceb2e6c1e5
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2025-08-19 (Tue, 19 Aug 2025)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenDecl.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/lib/CIR/CodeGen/CIRGenOpenACCClause.cpp
    M clang/test/CIR/CodeGenOpenACC/combined-firstprivate-clause.cpp
    M clang/test/CIR/CodeGenOpenACC/compute-firstprivate-clause-templates.cpp
    M clang/test/CIR/CodeGenOpenACC/compute-firstprivate-clause.cpp

  Log Message:
  -----------
  [OpenACC] Implement 'firstprivate' clause copy lowering (#154150)

This patch is the last of the 'firstprivate' clause lowering patches. It
takes the already generated 'copy' init from Sema and uses it to
generate the IR for the copy section of the recipe.

However, one thing that this patch had to do, was come up with a way to
hijack the decl registration in CIRGenFunction. Because these decls are
being created in a 'different' place, we need to remove the things we've
added. We could alternatively generate these 'differently', but it seems
worth a little extra effort here to avoid having to re-implement
variable initialization.



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