[all-commits] [llvm/llvm-project] ff0220: [flang][acc] Allow orphaned acc cache directive (#...

khaki3 via All-commits all-commits at lists.llvm.org
Wed Mar 4 09:42:09 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff0220d236dedccb8011873e9b92071fbfa74a0e
      https://github.com/llvm/llvm-project/commit/ff0220d236dedccb8011873e9b92071fbfa74a0e
  Author: khaki3 <47756807+khaki3 at users.noreply.github.com>
  Date:   2026-03-04 (Wed, 04 Mar 2026)

  Changed paths:
    M flang/docs/OpenACC.md
    M flang/lib/Semantics/check-acc-structure.cpp
    M flang/lib/Semantics/check-acc-structure.h
    M flang/test/Semantics/OpenACC/acc-cache-validity.f90

  Log Message:
  -----------
  [flang][acc] Allow orphaned acc cache directive (#184448)

While the spec allows the cache directive at the top of a loop body, the
directive has also been utilized at the top of an acc routine. This PR
removes the semantic check that rejects the cache directive outside of a
loop, allowing orphaned `!$acc cache` similar to CIR.

The OpenACC.md deviation document is updated to note this extension.



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