[all-commits] [llvm/llvm-project] b8f5cb: [OpenACC][CIR] 'cache' construct lowering (#146915)

Erich Keane via All-commits all-commits at lists.llvm.org
Mon Jul 7 08:35:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8f5cbb4ffbf3901425a6e4f5d86eb8cba5b0ddd
      https://github.com/llvm/llvm-project/commit/b8f5cbb4ffbf3901425a6e4f5d86eb8cba5b0ddd
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2025-07-07 (Mon, 07 Jul 2025)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    A clang/lib/CIR/CodeGen/CIRGenOpenACC.cpp
    M clang/lib/CIR/CodeGen/CIRGenOpenACCClause.cpp
    M clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp
    M clang/lib/CIR/CodeGen/CIRGenStmtOpenACCLoop.cpp
    M clang/lib/CIR/CodeGen/CMakeLists.txt
    A clang/test/CIR/CodeGenOpenACC/cache.c

  Log Message:
  -----------
  [OpenACC][CIR] 'cache' construct lowering (#146915)

The 'cache' construct is an interesting one, in that it doesn't take any
clauses, and is exclusively a collection of variables. Lowering wise,
  these just get added to the associated acc.loop.  This did require
  some work to ensure that the cache doesn't have 'vars' that aren't
  inside of the loop, but Sema is taking care of that with a warning.

Otherwise this is just a fairly simple amount of lowering, where each
'var' in the list creates an acc.cache, which is added to the acc.loop.



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