Lines Matching defs:CommonFXSema

199   auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
200 APFixedPoint ConvertedThis = convert(CommonFXSema);
201 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
207 if (CommonFXSema.isSaturated()) {
208 Result = CommonFXSema.isSigned() ? ThisVal.sadd_sat(OtherVal)
218 return APFixedPoint(Result, CommonFXSema);
223 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
224 APFixedPoint ConvertedThis = convert(CommonFXSema);
225 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
231 if (CommonFXSema.isSaturated()) {
232 Result = CommonFXSema.isSigned() ? ThisVal.ssub_sat(OtherVal)
242 return APFixedPoint(Result, CommonFXSema);
247 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
248 APFixedPoint ConvertedThis = convert(CommonFXSema);
249 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
255 unsigned Wide = CommonFXSema.getWidth() * 2;
256 if (CommonFXSema.isSigned()) {
272 if (CommonFXSema.isSigned())
274 .relativeAShl(CommonFXSema.getLsbWeight());
277 .relativeLShl(CommonFXSema.getLsbWeight());
279 Result.setIsSigned(CommonFXSema.isSigned());
283 APSInt Max = APFixedPoint::getMax(CommonFXSema).getValue()
285 APSInt Min = APFixedPoint::getMin(CommonFXSema).getValue()
287 if (CommonFXSema.isSaturated()) {
298 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()),
299 CommonFXSema);
304 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
305 APFixedPoint ConvertedThis = convert(CommonFXSema);
306 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
315 CommonFXSema.getWidth() * 2 + std::max(-CommonFXSema.getMsbWeight(), 0);
316 if (CommonFXSema.isSigned()) {
326 if (CommonFXSema.getLsbWeight() < 0)
327 ThisVal = ThisVal.shl(-CommonFXSema.getLsbWeight());
328 else if (CommonFXSema.getLsbWeight() > 0)
329 OtherVal = OtherVal.shl(CommonFXSema.getLsbWeight());
331 if (CommonFXSema.isSigned()) {
340 Result.setIsSigned(CommonFXSema.isSigned());
344 APSInt Max = APFixedPoint::getMax(CommonFXSema).getValue()
346 APSInt Min = APFixedPoint::getMin(CommonFXSema).getValue()
348 if (CommonFXSema.isSaturated()) {
359 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()),
360 CommonFXSema);