[all-commits] [llvm/llvm-project] 23d475: [OpenACC][CIR] Add lowering for 'copy' array index...

Erich Keane via All-commits all-commits at lists.llvm.org
Fri May 23 07:05:08 PDT 2025


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

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenOpenACCClause.cpp
    M clang/test/CIR/CodeGenOpenACC/combined-copy.c
    M clang/test/CIR/CodeGenOpenACC/compute-copy.c

  Log Message:
  -----------
  [OpenACC][CIR] Add lowering for 'copy' array indexes (#140971)

The array indexes(and sections) are represented by the acc.bounds
operation, which this ensures we fill in properly. The lowerbound is
required, so we always get that.

The upperbound or extent is required. We typically do extent, since that
is the 'length' as specified by ACC, but in cases where we have implicit
length, we use the extent instead.

It isn't clear when 'stride' should be anything besides 1, though by my
reading, since we have full-types in the emitted code, we should never
have it be anything but 1.

This patch enables these for copy on compute and combined constructs,
and makes sure to test everything I could think of for
combinations/permutations.



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