[flang] Lower F08 bit population count intrinsics
authorTarun Prabhu <tarun.prabhu@gmail.com>
Fri, 22 Jul 2022 05:05:33 +0000 (23:05 -0600)
committerTarun Prabhu <tarun.prabhu@gmail.com>
Fri, 22 Jul 2022 05:09:05 +0000 (23:09 -0600)
commitccfee46bc723d07b009078a2fb4a3a42bb1d4502
tree34712dc6338a4c5409db135b4e773742f5ecd9d8
parenta50b9f9f1f89dcdfc163a9fcd76a6bcf20c26521
[flang] Lower F08 bit population count intrinsics

Lower F08 bit population count intrinsics popcnt, poppar, leadz and trailz. popcnt, leadz and trailz are implemented using the corresponding MLIR math intrinsics. poppar is implemented in terms of popcnt.

Differential Revision: https://reviews.llvm.org/D129584
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/leadz.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/popcnt.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/poppar.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/trailz.f90 [new file with mode: 0644]