OpenMP 5.2 introduces a Fortran specific construct that aims to replace the executable allocate directive. This patch seeks to add parser support for the directive as well as the allocator clause with the extended align/complex modifier.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I'm currently working on adding the corresponding semantic check, but I wasn't sure if it should be included in this revision.
Comment Actions
LG. Minor Nit comments inline.
This is fine.
flang/lib/Parser/openmp-parsers.cpp | ||
---|---|---|
144 | Nit: This does not match what is implemented below. From this syntax it looks like, align can occur only with an allocator. The reference card says | |
592 | Nit: Might want to say what clause is. |
Nit: This does not match what is implemented below. From this syntax it looks like, align can occur only with an allocator.
The reference card says
!$omp allocate (list) [clause[ [,]clause] ... ]
clause -> align (alignment) alignment | allocator (allocator)