[all-commits] [llvm/llvm-project] c02403: [OpenACC][CIR] Implement 'host_data' lowering, plu...

Erich Keane via All-commits all-commits at lists.llvm.org
Fri Jun 6 10:59:01 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c02403e37f6194f98f7b757f96546553a6b10bfb
      https://github.com/llvm/llvm-project/commit/c02403e37f6194f98f7b757f96546553a6b10bfb
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenOpenACCClause.cpp
    M clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp
    A clang/test/CIR/CodeGenOpenACC/host_data.c

  Log Message:
  -----------
  [OpenACC][CIR] Implement 'host_data' lowering, plus all clauses (#143136)

'host_data' has its own Op kind, so this handles the lowering there, it
looks exactly like the other ones we've done so far, so nothing novel
here.

host_data takes 3 clauses, 1 of which is required.

'use_device' is required, and results in an acc.use_device operation,
  which then feeds into the dataOperands list on acc.host_data.

'if_present' is a simple attribute on the operand.

'if' is a condition on the operand, identical to our other handling of
'if'.

This patch handles all of these.



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