This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Erase llvm.global_ctors/global_dtors after lowering
ClosedPublic

Authored by arsenm on Nov 29 2022, 7:06 AM.

Details

Reviewers
pvellien
reshabh
JonChesterfield
sameerds
Group Reviewers
Restricted Project
Summary

We should be able to run the pass multiple times without breaking
anything. If we still need to track these for some reason, we could
replace with new entries for the kernels.

Diff Detail

Event Timeline

arsenm created this revision.Nov 29 2022, 7:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 29 2022, 7:06 AM
arsenm requested review of this revision.Nov 29 2022, 7:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 29 2022, 7:06 AM
Herald added a subscriber: wdng. · View Herald Transcript

The change looks good.

Need to update the patch so per-merge checks could run.
It complains "The patch may not apply if it includes only the most recent of multiple local commits." now.

sameerds added inline comments.Dec 9 2022, 1:03 AM
llvm/test/CodeGen/AMDGPU/lower-ctor-dtor.ll
6

Using "CHECK-" as a prefix for a custom check prefix is a bit confusing. Why not just use something clearly distinct, like "ISA"?

sameerds accepted this revision.Dec 9 2022, 1:03 AM

LGTM, other than the optional nit.

This revision is now accepted and ready to land.Dec 9 2022, 1:03 AM