This is an archive of the discontinued LLVM Phabricator instance.

[HLSL] Allow SV_GroupIndex for lib profile.
ClosedPublic

Authored by python3kgae on Sep 20 2022, 4:44 PM.

Details

Summary

Lib profile could include all kind of entry functions.

Diff Detail

Event Timeline

python3kgae created this revision.Sep 20 2022, 4:44 PM
Herald added a project: Restricted Project. · View Herald Transcript
python3kgae requested review of this revision.Sep 20 2022, 4:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 4:44 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

This looks reasonable to me, but I leave the final sign-off to @beanz.

clang/test/CodeGenHLSL/GlobalDestructors.hlsl
1

Strips an introduced trailing whitespace.

beanz added inline comments.Sep 21 2022, 8:35 AM
clang/lib/Sema/SemaDeclAttr.cpp
6901

I think the underlying issue here is that some attributes should only be validated on entry points that are being compiled as entry points in the current compilation action. Please file a GitHub issue for this and put the issue URL in the comment here.

Update comments and format.

python3kgae marked 2 inline comments as done.Sep 21 2022, 9:21 AM
beanz accepted this revision.Sep 21 2022, 9:54 AM

LGTM.

This revision is now accepted and ready to land.Sep 21 2022, 9:54 AM
This revision was landed with ongoing or failed builds.Sep 21 2022, 12:30 PM
This revision was automatically updated to reflect the committed changes.