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

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Wed Oct 15 13:28:35 PDT 2025


  Branch: refs/heads/users/kparzysz/constant-align-value
  Home:   https://github.com/llvm/llvm-project
  Commit: fd98b14b61cb709a0910b1d76cec2e80f4e8c0f7
      https://github.com/llvm/llvm-project/commit/fd98b14b61cb709a0910b1d76cec2e80f4e8c0f7
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2025-10-15 (Wed, 15 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

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