[flang-commits] [PATCH] D140288: [flang] Do not convey captured globals through host link

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Dec 20 00:23:43 PST 2022


jeanPerier updated this revision to Diff 484173.
jeanPerier added a comment.
Herald added a reviewer: nicolasvasilache.

Honor hasTupleAssociations name by reversing the logic inside and at its use point.

Update one piece of code in ArrayCopyValue that relied on the presence of a tuple
argument to detect internal procedures. Add an fir.internal_proc attribute to internal
function that are capturing host variables so that they can be easily detected even if
they do not have a tuple argument (I thought about using the mangling, but thought
an attribute would be stronger).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140288

Files:
  flang/include/flang/Lower/CallInterface.h
  flang/include/flang/Lower/HostAssociations.h
  flang/include/flang/Lower/PFTBuilder.h
  flang/include/flang/Optimizer/Dialect/FIROpsSupport.h
  flang/lib/Lower/Bridge.cpp
  flang/lib/Lower/CallInterface.cpp
  flang/lib/Lower/HostAssociations.cpp
  flang/lib/Lower/PFTBuilder.cpp
  flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp
  flang/test/Lower/explicit-interface-results-2.f90
  flang/test/Lower/host-associated-functions.f90
  flang/test/Lower/host-associated-globals.f90
  flang/test/Lower/host-associated.f90
  flang/test/Lower/polymorphic.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140288.484173.patch
Type: text/x-patch
Size: 34255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221220/03257104/attachment-0001.bin>


More information about the flang-commits mailing list