[flang-commits] [PATCH] D129584: Lower F08 bit-population count intrinsics
Tarun Prabhu via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Jul 12 12:29:57 PDT 2022
tarunprabhu created this revision.
tarunprabhu added reviewers: klausler, vdonaldson, jeanPerier, clementval, awarzynski, kiranchandramohan.
tarunprabhu added a project: Flang.
Herald added subscribers: bzcheeseman, mehdi_amini, rriddle, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
tarunprabhu requested review of this revision.
Herald added a subscriber: stephenneuendorffer.
This patch implements lowering for the Fortran 2008 bit-population count intrinsics POPCNT and POPPAR.
POPCNT is lowered by re-implementing the algorithms from flang/Common/bit-population-count.h <https://github.com/llvm/llvm-project/blob/main/flang/include/flang/Common/bit-population-count.h> directly into MLIR.
POPVAR is implemented in terms of POPCNT.
https://reviews.llvm.org/D129584
Files:
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Evaluate/fold-popcnt.f90
flang/test/Lower/Intrinsics/popcnt.f90
flang/test/Lower/Intrinsics/poppar.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129584.444043.patch
Type: text/x-patch
Size: 36284 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220712/026bd9b3/attachment-0001.bin>
More information about the flang-commits
mailing list