This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Rename predefined macro __AMDGCN_WAVEFRONT_SIZE
ClosedPublic

Authored by yaxunl on Jun 30 2023, 5:40 AM.

Details

Summary

rename it to __AMDGCN_WAVEFRONT_SIZE__ for consistency.

__AMDGCN_WAVEFRONT_SIZE will be deprecated in the future.

Diff Detail

Event Timeline

yaxunl created this revision.Jun 30 2023, 5:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 5:40 AM
yaxunl requested review of this revision.Jun 30 2023, 5:40 AM
arsenm added inline comments.Jun 30 2023, 6:18 AM
clang/lib/Basic/Targets/AMDGPU.cpp
318

If you're renaming it anyway, might as well go for __AMDGPU?

yaxunl marked an inline comment as done.Jun 30 2023, 7:36 AM
yaxunl added inline comments.
clang/lib/Basic/Targets/AMDGPU.cpp
318

but this will cause inconsistency with __AMDGCN_CUMODE__ and __AMDGCN_UNSAFE_FP_ATOMICS__, and all the other __amdgcn_* macros.

I think this is a step in the right direction. @arsenm ?

lgtm except for dropping test coverage

clang/test/Driver/hip-macros.hip
20

This shouldn't drop the check for the old one

yaxunl updated this revision to Diff 536431.Jun 30 2023, 2:31 PM
yaxunl marked 2 inline comments as done.

revised by comments

arsenm accepted this revision.Jun 30 2023, 2:32 PM
This revision is now accepted and ready to land.Jun 30 2023, 2:32 PM
This revision was landed with ongoing or failed builds.Jul 2 2023, 8:10 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2023, 8:10 AM