[all-commits] [llvm/llvm-project] 5757c4: Fix Flang construct contexts during variant lowering

Chi-Chun, Chen via All-commits all-commits at lists.llvm.org
Thu Sep 24 12:56:10 PDT 2026


  Branch: refs/heads/users/cchen/openmp-variant-matching-scoring
  Home:   https://github.com/llvm/llvm-project
  Commit: 5757c455f1a86780c5f83033f975c098d25aae26
      https://github.com/llvm/llvm-project/commit/5757c455f1a86780c5f83033f975c098d25aae26
  Author: Chi-Chun, Chen <chichun.chen at hpe.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    M flang/lib/Lower/OpenMP/Utils.cpp
    M flang/lib/Lower/OpenMP/Utils.h
    M flang/test/Lower/OpenMP/declare-variant-loop-bounds.f90
    A flang/test/Lower/OpenMP/declare-variant-metadirective-context.f90
    A flang/test/Lower/OpenMP/variant-loop-context-depth.f90

  Log Message:
  -----------
  Fix Flang construct contexts during variant lowering

- Count each enclosing loop construct once, including collapsed nests.
- Match selected directive clauses and bounds in the same contexts as
  directly written directives.
- Evaluate composite clause expressions in source construct order.
- Add regressions for scoring and static/runtime variant selection.


  Commit: f356de2d0eed7fbcd72612fd2a201985e9253a1c
      https://github.com/llvm/llvm-project/commit/f356de2d0eed7fbcd72612fd2a201985e9253a1c
  Author: Chi-Chun, Chen <chichun.chen at hpe.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M clang/include/clang/AST/OpenMPClause.h
    M clang/lib/AST/OpenMPClause.cpp
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    A clang/test/OpenMP/declare_variant_condition_declarations.cpp
    M clang/test/OpenMP/declare_variant_condition_identity_pch.c

  Log Message:
  -----------
  Preserve declaration identity in user conditions

Use canonical AST profiles instead of printed expressions for condition
subset checks. Preserve original expressions through template substitution
and PCH serialization so distinct declarations remain distinguishable.

Add regression coverage for template parameters, scoped declarations,
and PCH round trips.


Compare: https://github.com/llvm/llvm-project/compare/e5d4cbc27881...f356de2d0eed

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