This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Run rewriteDeviceCodeStateMachine in the Module not CGSCC pass
ClosedPublic

Authored by jdoerfert on Jul 20 2021, 12:16 AM.

Details

Summary

While rewriteDeviceCodeStateMachine should probably be folded into
buildCustomStateMachine, we at least need the optimization to happen.
This was not reliably the case in the CGSCC pass but in the Module pass
it seems to work reliably.

This also ports a test to the new kernel encoding (target_init/deinit),
and makes sure we cannot run the kernel in SPMD mode.

Diff Detail

Event Timeline

jdoerfert created this revision.Jul 20 2021, 12:16 AM
jdoerfert requested review of this revision.Jul 20 2021, 12:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2021, 12:16 AM
jhuber6 accepted this revision.Jul 20 2021, 4:54 AM

LGTM

This revision is now accepted and ready to land.Jul 20 2021, 4:54 AM
This revision was landed with ongoing or failed builds.Jul 26 2021, 7:26 PM
This revision was automatically updated to reflect the committed changes.