This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Promote generic pointer kernel arguments into global
ClosedPublic

Authored by rampitec on Oct 8 2021, 2:15 PM.

Details

Summary

The new pass walks kernel's pointer arguments, then loads from them.
If a loaded value is a pointer and loaded pointer is unmodified in
the kernel before the load, then promote loaded pointer to global.
Then recursively continue.

Diff Detail

Event Timeline

rampitec created this revision.Oct 8 2021, 2:15 PM
rampitec requested review of this revision.Oct 8 2021, 2:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 8 2021, 2:15 PM
Herald added a subscriber: wdng. · View Herald Transcript

PSDB passed.

rampitec updated this revision to Diff 378723.Oct 11 2021, 10:26 AM

clang-format'ed.

hliao accepted this revision.Oct 12 2021, 5:55 AM

LGTM

This revision is now accepted and ready to land.Oct 12 2021, 5:55 AM
This revision was landed with ongoing or failed builds.Oct 12 2021, 10:07 AM
This revision was automatically updated to reflect the committed changes.