[all-commits] [llvm/llvm-project] f15c43: [flang][OpenMP] Tolerate compiler directives in lo...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Mon Nov 24 07:55:23 PST 2025


  Branch: refs/heads/users/kparzysz/tolerate-directives
  Home:   https://github.com/llvm/llvm-project
  Commit: f15c43f47ae09ad54ce9e9fe9ef94014cd5a3bc0
      https://github.com/llvm/llvm-project/commit/f15c43f47ae09ad54ce9e9fe9ef94014cd5a3bc0
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2025-11-24 (Mon, 24 Nov 2025)

  Changed paths:
    M flang/lib/Lower/OpenMP/Utils.cpp
    M flang/lib/Semantics/check-omp-loop.cpp
    M flang/lib/Semantics/resolve-directives.cpp
    A flang/test/Semantics/OpenMP/compiler-directives-loop.f90
    M flang/test/Semantics/OpenMP/loop-association.f90

  Log Message:
  -----------
  [flang][OpenMP] Tolerate compiler directives in loop constructs

PR168884 flagged compiler directives (!dir$ ...) inside OpenMP loop
constructs as errors. This caused some customer applications to fail
to compile (issue 169229).

Downgrade the error to a warning, and gracefully ignore compiler
directives when lowering loop constructs to MLIR.

Fixes https://github.com/llvm/llvm-project/issues/169229



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