Displaying 2 results from an estimated 2 matches for "lowerbitcast".
2016 Jan 25
1
Return value from TargetLowering::LowerOperation?
...get v2i16, v4i16, v2i32, v4i32, v2f32, v4f32 are legal and all
other vector types are not.
Vectors of i16 are a bit special and we need to custom lower bitcasts
to/from them. Therefore we do
setOperationAction(ISD::BITCAST, VT, Custom);
on all MVT:s, and in our target's LowerOperation/LowerBitcast we
specifically handle when the source or target type is v2i16 or v4i16,
and for other cases we just return the input SDValue and let the
"normal" code handle it in whatever way it see fits.
In this particular case, when it crashes, we have a bitcast from v2i64
to v4i32:
t70: v4i32...
2016 Jan 22
3
Return value from TargetLowering::LowerOperation?
Hi,
I'm a litle bit puzzled by the TargetLowering::LowerOperation function,
and what different callers of this function assumes about the returned
value.
In several places it seems like it is assumed that LowerOperation can
return three kinds of values:
* Something completely new.
* SDValue()
* The same SDValue as LowerOperation was called on.
However in some places, e.g. in