This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Make OMod explicit for V_CVT_{U,I}*
ClosedPublic

Authored by Joe_Nash on Feb 26 2021, 2:59 PM.

Details

Summary

Make OMod explicit instead of implied by HasModifiers in the
operand list. Requires explicitly setting HasOMod=1 for
irregular OMod usage in instruction V_CVT_{U,I}*

Diff Detail

Event Timeline

Joe_Nash created this revision.Feb 26 2021, 2:59 PM
Joe_Nash requested review of this revision.Feb 26 2021, 2:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 26 2021, 2:59 PM
Joe_Nash updated this revision to Diff 327178.Mar 1 2021, 10:33 AM

remove erroneous addition of OMod to cvt_flr_i32_f32 &
cvt_rpi_i32_f32

foad accepted this revision.Mar 2 2021, 3:49 AM

LGTM since these instructions are documented as supporting OMOD.

llvm/lib/Target/AMDGPU/SIInstrInfo.td
1626–1630

Not really related to your patch, but couldn't we clean up all these nested !ifs by using a big !con of little fragments like !if(HasOMod, (ins omod0:$omod), (ins))?

This revision is now accepted and ready to land.Mar 2 2021, 3:49 AM
This revision was automatically updated to reflect the committed changes.