This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][NFC] Add getMaxMUBUFImmOffset
ClosedPublic

Authored by piotr on Feb 23 2023, 12:42 AM.

Details

Summary

Replace magic constant 4095 with the function getMaxMUBUFImmOffset().

Diff Detail

Event Timeline

piotr created this revision.Feb 23 2023, 12:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2023, 12:42 AM
piotr requested review of this revision.Feb 23 2023, 12:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2023, 12:42 AM
foad accepted this revision.Feb 23 2023, 2:15 AM

Looks fine to me, thanks.

It's a bit unfortunate that some functions return the max offset value and others return the size of the offset field in bits, but we can always clean that up later if necessary.

This revision is now accepted and ready to land.Feb 23 2023, 2:15 AM
This revision was landed with ongoing or failed builds.Feb 23 2023, 2:35 AM
This revision was automatically updated to reflect the committed changes.