[all-commits] [llvm/llvm-project] e5f09a: [OpenACC][CIR] Start work to lower 'loop' (#137972)

Erich Keane via All-commits all-commits at lists.llvm.org
Thu May 1 08:42:25 PDT 2025


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

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenStmtOpenACCLoop.cpp
    M clang/lib/Sema/SemaOpenACC.cpp
    A clang/test/CIR/CodeGenOpenACC/loop.cpp
    M clang/test/CIR/CodeGenOpenACC/openacc-not-implemented.cpp

  Log Message:
  -----------
  [OpenACC][CIR] Start work to lower 'loop' (#137972)

As can be seen by the comment, this ends up being a construct that is
going to be quite a lot of work in the future to make sure we properly
identify the upperbound, lowerbound, and step. For now, we just treat
the 'loop' as container so that we can put the 'for' loop into it.

In the future, we'll have to teach the OpenACC dialect how to derive the
upperbound, lowerbound, and step from the cir.for loop. Additionally,
we'll probably have to add a few more options to it so that we can give
it the recipes it needs to determine these for random access iterators.
For Integer and Pointer values, these should already be known.



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