reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Target/AMDGPU/AMDGPUISelLowering.cpp
 2166   SDValue T = DAG.getNode(ISD::FTRUNC, SL, VT, X);
 2170   SDValue Diff = DAG.getNode(ISD::FSUB, SL, VT, X, T);
 2172   SDValue AbsDiff = DAG.getNode(ISD::FABS, SL, VT, Diff);
 2174   const SDValue Zero = DAG.getConstantFP(0.0, SL, VT);
 2175   const SDValue One = DAG.getConstantFP(1.0, SL, VT);
 2176   const SDValue Half = DAG.getConstantFP(0.5, SL, VT);
 2178   SDValue SignOne = DAG.getNode(ISD::FCOPYSIGN, SL, VT, One, X);
 2183   SDValue Cmp = DAG.getSetCC(SL, SetCCVT, AbsDiff, Half, ISD::SETOGE);
 2185   SDValue Sel = DAG.getNode(ISD::SELECT, SL, VT, Cmp, SignOne, Zero);
 2187   return DAG.getNode(ISD::FADD, SL, VT, T, Sel);