This patch implements lowering for the F08 parity intrinsic. This is related to D129785 which implements folding for the same.
This largely follows the implementation of the any and all intrinsics which are related.
Paths
| Differential D129788
Lower F08 parity intrinsic ClosedPublic Authored by tarunprabhu on Jul 14 2022, 10:39 AM.
Details Summary This patch implements lowering for the F08 parity intrinsic. This is related to D129785 which implements folding for the same. This largely follows the implementation of the any and all intrinsics which are related.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Aug 23 2022, 12:04 AM Closed by commit rG5259528fc898: [flang] Lower F08 parity intrinsic (authored by tarunprabhu). · Explain WhyAug 24 2022, 7:02 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 455191 flang/include/flang/Optimizer/Builder/Runtime/Reduction.h
flang/lib/Lower/IntrinsicCall.cpp
flang/lib/Optimizer/Builder/Runtime/Reduction.cpp
flang/test/Lower/Intrinsics/parity.f90
flang/unittests/Optimizer/Builder/Runtime/ReductionTest.cpp
|
I think you should use asBox here, using asAddr will force non contiguous masks to be evaluated into a contiguous temp before calling the runtime, and this is probably some choice we should leave to the runtime.