[flang-commits] [flang] [flang][OpenMP] Make all block constructs share the same structure (PR #150956)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Thu Jul 31 10:08:44 PDT 2025


================
@@ -130,8 +130,7 @@ subroutine dotprod (b, c, n, block_size, num_teams, block_threads)
  !REF: /dotprod/sum
  sum = 0.0e0
 !$omp target  map(to:b,c)  map(tofrom:sum)
-!$omp teams  num_teams(num_teams) thread_limit(block_threads) reduction(+: sum&
-!$OMP&)
----------------
kparzysz wrote:

The current output doesn't have the two spaces between "teams" and "num_teams".  The only character in the continuation line was `)`, and now it all fits in a single line.

As to why this happens, I think the unparser for OmpDirectiveSpecification doesn't print the extra space, whereas the previous unparsers did.

https://github.com/llvm/llvm-project/pull/150956


More information about the flang-commits mailing list