[all-commits] [llvm/llvm-project] c734d7: [flang][semantics][OpenMP] no privatisation of stm...

Tom Eccles via All-commits all-commits at lists.llvm.org
Fri Oct 4 02:46:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c734d77b9913052012faf91fdc19753f791421d9
      https://github.com/llvm/llvm-project/commit/c734d77b9913052012faf91fdc19753f791421d9
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2024-10-04 (Fri, 04 Oct 2024)

  Changed paths:
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
    M flang/lib/Semantics/resolve-directives.cpp
    M flang/lib/Semantics/semantics.cpp
    M flang/test/Lower/OpenMP/statement-function.f90
    A flang/test/Semantics/OpenMP/private03.f90

  Log Message:
  -----------
  [flang][semantics][OpenMP] no privatisation of stmt functions (#106550)

OpenMP prohibits privatisation of variables that appear in expressions
for statement functions.

This is a re-working of an old patch https://reviews.llvm.org/D93213 by
@praveen-g-ctt.

The old patch couldn't be landed because of ordering concerns. Statement
functions are rewritten during parse tree rewriting, but this was done
after resolve-directives and so some array expressions were incorrectly
identified as statement functions. For this reason **I have opted to
re-order the semantics driver so that resolve-directives is run after
parse tree rewriting**.

Closes #54677

---------

Co-authored-by: Praveen <praveen at compilertree.com>



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