This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix enqueue block lowering for opaque pointers
ClosedPublic

Authored by arsenm on Dec 23 2022, 3:20 PM.

Details

Reviewers
yaxunl
rampitec
cdevadas
nikic
Group Reviewers
Restricted Project
Summary

This was looking for a specific constant cast of the function, when
the type doesn't matter. Doesn't bother trying to handle typed
pointers, it will just assert.

Things probably don't work completely correctly if the block kernel
address is captured somewhere else, but that wouldn't work before
either. The uses should really be loads out of the handle, and the
handle initializer should contain the kernel address.

Diff Detail

Event Timeline

arsenm created this revision.Dec 23 2022, 3:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 23 2022, 3:20 PM
arsenm requested review of this revision.Dec 23 2022, 3:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 23 2022, 3:20 PM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Jan 3 2023, 10:49 AM
This revision is now accepted and ready to land.Jan 3 2023, 10:49 AM