This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Check OpenMP assumptions on call-sites as well
ClosedPublic

Authored by jhuber6 on Sep 7 2021, 10:26 AM.

Details

Summary

This patch adds functionality to check assumption attributes on call
sites as well.

Diff Detail

Event Timeline

jhuber6 created this revision.Sep 7 2021, 10:26 AM
jhuber6 requested review of this revision.Sep 7 2021, 10:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2021, 10:26 AM

Test missing.

llvm/include/llvm/IR/Assumptions.h
50

I think this should check CB and then the callee, if available. So documentation and impl need to change slightly.

llvm/lib/Transforms/IPO/OpenMPOpt.cpp
3725

Once the CB version checks the callee this will be much simpler.

jhuber6 updated this revision to Diff 371151.Sep 7 2021, 12:31 PM

Adding tests and addressing comments

jhuber6 updated this revision to Diff 371170.Sep 7 2021, 1:33 PM

Forgot to change the OpenMPOpt implementation.

jdoerfert accepted this revision.Sep 7 2021, 1:36 PM

LG. one nit.

llvm/lib/Transforms/IPO/OpenMPOpt.cpp
3718

No need to use pointers here.

This revision is now accepted and ready to land.Sep 7 2021, 1:36 PM
jhuber6 updated this revision to Diff 371173.Sep 7 2021, 1:39 PM

Fixing nit.

This revision was landed with ongoing or failed builds.Sep 10 2021, 11:53 AM
This revision was automatically updated to reflect the committed changes.