This is an archive of the discontinued LLVM Phabricator instance.

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

tarunprabhu created this revision.Jul 14 2022, 10:39 AM
Herald added a project: Restricted Project. · View Herald Transcript
tarunprabhu requested review of this revision.Jul 14 2022, 10:39 AM
jeanPerier added inline comments.Jul 20 2022, 2:04 AM
flang/lib/Lower/IntrinsicCall.cpp
888

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.

Addressed @jeanPerier's comment and used asBox instead of asAddr.

tarunprabhu marked an inline comment as done.Aug 22 2022, 9:39 AM
jeanPerier accepted this revision.Aug 23 2022, 12:04 AM

LGTM, thanks

This revision is now accepted and ready to land.Aug 23 2022, 12:04 AM
This revision was automatically updated to reflect the committed changes.