[all-commits] [llvm/llvm-project] cc048f: [flang][OpenMP] Lowering support for declare varia...

Abid Qadeer via All-commits all-commits at lists.llvm.org
Mon Jul 13 07:56:05 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc048f0d5516923ea29e9887eb92da0456eeb331
      https://github.com/llvm/llvm-project/commit/cc048f0d5516923ea29e9887eb92da0456eeb331
  Author: Abid Qadeer <haqadeer at amd.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M flang/include/flang/Lower/OpenMP.h
    A flang/include/flang/Semantics/omp-declare-variant.h
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Lower/CMakeLists.txt
    M flang/lib/Lower/CallInterface.cpp
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    M flang/lib/Lower/OpenMP/Utils.cpp
    M flang/lib/Semantics/check-omp-variant.cpp
    A flang/test/Lower/OpenMP/Todo/declare-variant-structured-trait-property.f90
    A flang/test/Lower/OpenMP/Todo/declare-variant-target-device.f90
    R flang/test/Lower/OpenMP/Todo/declare-variant.f90
    A flang/test/Lower/OpenMP/declare-variant-call.f90
    A flang/test/Lower/OpenMP/declare-variant-construct.f90
    A flang/test/Lower/OpenMP/declare-variant-device.f90
    A flang/test/Lower/OpenMP/declare-variant-implementation.f90
    A flang/test/Lower/OpenMP/declare-variant-module.f90
    A flang/test/Lower/OpenMP/declare-variant-target-device.f90
    M flang/test/Semantics/OpenMP/declare-variant.f90

  Log Message:
  -----------
  [flang][OpenMP] Lowering support for declare variant. (#206988)

Add lowering support for OpenMP DECLARE VARIANT. Each directive is
recorded on its base procedure during the structure checks. During call
lowering, best variant is picked based on recorded selecter and context.

Note: this PR does not include module-file support for DECLARE VARIANT,
so cross-module variant resolution is not yet available; it will be
added in a follow-up PR.

Assisted by: Cursor



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