[all-commits] [llvm/llvm-project] 467487: [flang][OpenMP] Reuse semantic check for "constant...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Thu Oct 16 10:00:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 467487f2a15d9b62c6999184daddbe9b51864e3b
      https://github.com/llvm/llvm-project/commit/467487f2a15d9b62c6999184daddbe9b51864e3b
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2025-10-16 (Thu, 16 Oct 2025)

  Changed paths:
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Parser/openmp-parsers.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/test/Parser/OpenMP/allocate-align-tree.f90
    M flang/test/Semantics/OpenMP/allocate-align01.f90

  Log Message:
  -----------
  [flang][OpenMP] Reuse semantic check for "constantness" of alignment (#163624)

Use ScalarIntConstantExpr in the parse tree instead of ScalarIntExpr.
This will still parse a general expression, but the semantic checker for
expressions will automatically perfom a test for whether the value is
constant or not.

Use that instead of manual checks, it will make diagnostics more
uniform. There is no functional change other than that.



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