[PATCH] D120460: [flang] Fix processing ModuleLikeUnit evaluationList

Peixin Qiao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 01:06:48 PST 2022


peixin updated this revision to Diff 414292.
peixin retitled this revision from "[flang] Fix lowering OpenMP/OpenACC declarative constructs in non-module unit" to "[flang] Fix processing ModuleLikeUnit evaluationList".
peixin edited the summary of this revision.
peixin added a comment.
Herald added a project: All.

The previous design for lowering OpenMP/OpenACC declarative constructs in module is dirty. Refactor the code as follows:

EnterModule (push ModuleLikeUnit evalutionList)

  [Enter OpenMP/OpenACC decl constructs] (push declconstruct ... as other directives)
  [Exit OpenMP/OpenACC decl constructs] (pop declconstruct ... as other directives)
  [Enter module procedure] (pop ModuleLikeUnit evalutionList)
  [Exit module procedure]

ExitModule (pop ModuleLikeUnit evalutionList if there is no module procedure)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120460/new/

https://reviews.llvm.org/D120460

Files:
  flang/lib/Lower/PFTBuilder.cpp
  flang/test/Lower/pre-fir-tree06.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120460.414292.patch
Type: text/x-patch
Size: 3120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220310/aff43959/attachment.bin>


More information about the llvm-commits mailing list