[flang-commits] [PATCH] D129616: Lower F08 bitwise-reduction intrinsics (IALL, IANY, IPARITY)

Tarun Prabhu via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Sep 13 15:22:03 PDT 2022


tarunprabhu updated this revision to Diff 459892.
tarunprabhu added a comment.

Handle the kind=16 case by manually generating the call to the runtime function.

Since the code for iall, iany and iparity were the same, the whole code was turned into a macro. I couldn't think of a cleaner way of doing it since mkRTKey was also a macro and relied on token pasting.

Added more tests, particularly for the kind=16 case.


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

https://reviews.llvm.org/D129616

Files:
  flang/include/flang/Optimizer/Builder/Runtime/Reduction.h
  flang/lib/Lower/IntrinsicCall.cpp
  flang/lib/Optimizer/Builder/Runtime/Reduction.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129616.459892.patch
Type: text/x-patch
Size: 15695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220913/86b95aa7/attachment.bin>


More information about the flang-commits mailing list