[all-commits] [llvm/llvm-project] c4cd2f: Use selected variants in metadirective construct c...

Chi-Chun, Chen via All-commits all-commits at lists.llvm.org
Wed May 27 11:07:05 PDT 2026


  Branch: refs/heads/users/cchen/flang-metadirective-static
  Home:   https://github.com/llvm/llvm-project
  Commit: c4cd2f810a5aeba392f9991f63ba205308c05bb7
      https://github.com/llvm/llvm-project/commit/c4cd2f810a5aeba392f9991f63ba205308c05bb7
  Author: Chi Chun, Chen <chichun.chen at hpe.com>
  Date:   2026-05-27 (Wed, 27 May 2026)

  Changed paths:
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    M flang/test/Lower/OpenMP/metadirective-construct.f90

  Log Message:
  -----------
  Use selected variants in metadirective construct context

An enclosing selected begin/end metadirective variant can introduce
a construct that is not represented by the PFT parent chain. For example,
an inner metadirective inside target and an outer-selected parallel must
be able to match construct={target, parallel}.

Collect construct traits from already-lowered enclosing OpenMP operations,
which represent both ordinary enclosing constructs and constructs introduced
by selected variants.


  Commit: 1f4ea15193304e569add73ad56aff8f652bdecb5
      https://github.com/llvm/llvm-project/commit/1f4ea15193304e569add73ad56aff8f652bdecb5
  Author: Chi Chun, Chen <chichun.chen at hpe.com>
  Date:   2026-05-27 (Wed, 27 May 2026)

  Changed paths:
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    M flang/test/Semantics/OpenMP/metadirective-common.f90

  Log Message:
  -----------
  Require a selector when lowering WHEN

This patch ensure we don't have missing selector as unconditional in
lowering since `WHEN` requires a context-selector.

Added negative test to replace the positive test testing against missing
selector.


  Commit: 0452b6570b7e9cf15c8ac7236b74817e8aae8be6
      https://github.com/llvm/llvm-project/commit/0452b6570b7e9cf15c8ac7236b74817e8aae8be6
  Author: Chi Chun, Chen <chichun.chen at hpe.com>
  Date:   2026-05-27 (Wed, 27 May 2026)

  Changed paths:
    M flang/test/Lower/OpenMP/metadirective-device-arch.f90

  Log Message:
  -----------
  Fix device arch negative check coverage


  Commit: f32e814b033852b66ed816df2a73c0e6da449263
      https://github.com/llvm/llvm-project/commit/f32e814b033852b66ed816df2a73c0e6da449263
  Author: Chi Chun, Chen <chichun.chen at hpe.com>
  Date:   2026-05-27 (Wed, 27 May 2026)

  Changed paths:
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    M flang/lib/Lower/OpenMP/Utils.cpp
    A flang/test/Lower/OpenMP/Todo/metadirective-structured-trait-property.f90

  Log Message:
  -----------
  Guard unsupported metadirective trait matching


Compare: https://github.com/llvm/llvm-project/compare/0331d5e5def5...f32e814b0338

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