[all-commits] [llvm/llvm-project] 5a0ef1: [flang][OpenMP] Introduce `semantics::omp::LoopCon...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Tue Apr 7 06:31:38 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a0ef1f63151b03a2ef0269464f331fa2db806f8
      https://github.com/llvm/llvm-project/commit/5a0ef1f63151b03a2ef0269464f331fa2db806f8
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2026-04-07 (Tue, 07 Apr 2026)

  Changed paths:
    M flang/include/flang/Semantics/openmp-utils.h
    M flang/lib/Semantics/openmp-utils.cpp

  Log Message:
  -----------
  [flang][OpenMP] Introduce `semantics::omp::LoopControl` (#190647)

This structure will contain the symbol for the iteration variable, the
lower and upper bounds, and the increment if present in the form of
evaluate::Expr. A source construct (such as DO CONCURRENT) may have
several iteration variables, each with its own bounds and increment,
represented by a list of LoopControl structures.

For loop-transformation constructs that produce additional loops the
current code returns an empty list of LoopControls, but it may be
extended in the future to represent the yet-nonexistent loops for more
accurate semantic analysis.

The code introduced in this PR is not executed yet, but will be used in
an upcoming PR.

Issue: https://github.com/llvm/llvm-project/issues/185287

---------

Co-authored-by: Michael Kruse <llvm-project at meinersbur.de>



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