This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Use source modifiers with f16->f32 conversions
ClosedPublic

Authored by arsenm on Jan 13 2017, 1:55 PM.

Details

Summary

The operand types were defined to fit the fp16_to_fp node, which
has the half as an integer type. v_cvt_f32_f16 does support
source modifiers, so change this to have an FP type and modifiers.

For targets without legal f16, this requires recognizing the
bit operations and trying to produce them.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 84368.Jan 13 2017, 1:55 PM
arsenm retitled this revision from to AMDGPU: Use source modifiers with f16->f32 conversions.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
kzhuravl accepted this revision.Jan 31 2017, 2:38 PM

LGTM.

This revision is now accepted and ready to land.Jan 31 2017, 2:38 PM
arsenm closed this revision.Feb 1 2017, 6:42 PM

r293857