This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][AMDGPU] Refactor setting uniform work group size attribute
ClosedPublic

Authored by domada on Apr 17 2023, 6:18 AM.

Details

Summary

Work group size attribute was set in Clang specific class. That's why we cannot reuse this code in Flang.

If we move setting of this attribute to OpenMPIRBuilder, then we can reuse this code in Flang and Clang. Function createOffloadEntry from OpenMPIRBuilder is already used by Clang (via OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata function).

Diff Detail

Event Timeline

domada created this revision.Apr 17 2023, 6:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 6:18 AM
domada requested review of this revision.Apr 17 2023, 6:18 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
jdoerfert accepted this revision.Apr 17 2023, 11:36 AM
This revision is now accepted and ready to land.Apr 17 2023, 11:36 AM