[flang-commits] [PATCH] D140118: [flang] Lower procedure ref to user defined elemental procedures (part 1)

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Dec 15 10:11:08 PST 2022


jeanPerier created this revision.
jeanPerier added reviewers: PeteSteinfeld, clementval.
jeanPerier added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
Herald added a project: All.
jeanPerier requested review of this revision.

Lower procedure ref to user defined elemental procedure when:

- there are no arguments that may be dynamically optional
- for functions, the result has no length parameters
- the reference can be unordered
- there are not character by value arguments

This uses the recently added hlfir.elemental operation and tools.
The "core" of the argument preparation is shared between elemental
and non elemental calls (genUserCalls is code moved without any
functional changes)

Depends on D140099 <https://reviews.llvm.org/D140099>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140118

Files:
  flang/include/flang/Optimizer/Builder/HLFIRTools.h
  flang/lib/Lower/CallInterface.cpp
  flang/lib/Lower/ConvertCall.cpp
  flang/lib/Optimizer/Builder/HLFIRTools.cpp
  flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
  flang/test/Lower/HLFIR/elemental-user-procedure-ref.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140118.483225.patch
Type: text/x-patch
Size: 20392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221215/ce2c06d6/attachment-0001.bin>


More information about the flang-commits mailing list