This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] [NFC] Introduce subtargets check for MI hardware.
AbandonedPublic

Authored by hsmhsm on Mar 23 2022, 7:49 PM.

Details

Diff Detail

Event Timeline

hsmhsm created this revision.Mar 23 2022, 7:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2022, 7:49 PM
hsmhsm requested review of this revision.Mar 23 2022, 7:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2022, 7:49 PM
foad added a comment.Mar 24 2022, 2:38 AM

I think predicate methods in GCNSubtarget should name particular features, like "hasAGPRs" and "hasAGPRToAGPRCopies" (probably not the best names because I don't know much about GFX90x features).

rampitec added inline comments.Mar 24 2022, 10:49 AM
llvm/lib/Target/AMDGPU/GCNSubtarget.h
997

It is a no action todo for now. You can just remove it.

hsmhsm updated this revision to Diff 418090.Mar 24 2022, 5:13 PM

Fix review comments by Stas.

hsmhsm marked an inline comment as done.Mar 24 2022, 5:14 PM

What's the reason behind this? You are not even using it.

What's the reason behind this? You are not even using it.

I thought, it would be bit cleaner to use, for example ST.isGFX908Subtarget() compared to ST.hasMAIInsts() && !ST.hasGFX90AInsts().

So, if think, it does not make much sense, then I will ignore this patch, and abandon it.

hsmhsm abandoned this revision.Mar 25 2022, 3:25 AM