This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Change predicate for fma/fmac legacy
ClosedPublic

Authored by rampitec on Oct 27 2020, 10:03 AM.

Details

Summary

I do not exactly like the use of a negative predicate to
enable instructions' support. Change HasNoMadMacF32Insts
with HasFmaLegacy32.

Diff Detail

Event Timeline

rampitec created this revision.Oct 27 2020, 10:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2020, 10:03 AM
rampitec requested review of this revision.Oct 27 2020, 10:03 AM

I don't think this should move towards less fine grained predicates. You could rename to HasFmacLegacy

rampitec updated this revision to Diff 301049.Oct 27 2020, 10:15 AM
rampitec edited the summary of this revision. (Show Details)

Changed predicate to HasFmaLegacy.

foad accepted this revision.Oct 27 2020, 11:49 AM

Sorry to bikeshed, but I think HasFmaLegacyF32 would be a better name. This has nothing to do with the v_fma_legacy_f16 instruction, which has a completely kind of "legacy" behaviour. OK with that change.

This revision is now accepted and ready to land.Oct 27 2020, 11:49 AM
rampitec updated this revision to Diff 301073.Oct 27 2020, 11:53 AM
rampitec edited the summary of this revision. (Show Details)

Renamed to HasFmaLegacyF32 as suggested by Jay.

This revision was automatically updated to reflect the committed changes.