[all-commits] [llvm/llvm-project] b30734: [OpenACC][CIR] Lowering for atomic-read (#164299)

Erich Keane via All-commits all-commits at lists.llvm.org
Wed Oct 22 06:11:08 PDT 2025


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

  Changed paths:
    M clang/include/clang/AST/StmtOpenACC.h
    M clang/lib/AST/StmtOpenACC.cpp
    M clang/lib/CIR/CodeGen/CIRGenOpenACCClause.cpp
    M clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp
    A clang/test/CIR/CodeGenOpenACC/atomic-read.cpp

  Log Message:
  -----------
  [OpenACC][CIR] Lowering for atomic-read (#164299)

The OpenACC spec allows only `v = x` form for atomic-read, and only when
both are L-values. The result is this ends up being a pretty trivial
patch, however it adds a decent amount of infrastructure for the other
forms of atomic.

Additionally, the 3.4 spec starts allowing the 'if' clause on atomic,
which has recently been added to the ACC dialect. This patch also
ensures that can be lowered as well. Extensive testing of this feature
was done on other clauses, so there isn't much further work/testing to
be done for it.



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