Lines Matching defs:CommonFXSema

189   auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
190 APFixedPoint ConvertedThis = convert(CommonFXSema);
191 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
197 if (CommonFXSema.isSaturated()) {
198 Result = CommonFXSema.isSigned() ? ThisVal.sadd_sat(OtherVal)
208 return APFixedPoint(Result, CommonFXSema);
213 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
214 APFixedPoint ConvertedThis = convert(CommonFXSema);
215 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
221 if (CommonFXSema.isSaturated()) {
222 Result = CommonFXSema.isSigned() ? ThisVal.ssub_sat(OtherVal)
232 return APFixedPoint(Result, CommonFXSema);
237 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
238 APFixedPoint ConvertedThis = convert(CommonFXSema);
239 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
245 unsigned Wide = CommonFXSema.getWidth() * 2;
246 if (CommonFXSema.isSigned()) {
262 if (CommonFXSema.isSigned())
264 .relativeAShl(CommonFXSema.getLsbWeight());
267 .relativeLShl(CommonFXSema.getLsbWeight());
269 Result.setIsSigned(CommonFXSema.isSigned());
273 APSInt Max = APFixedPoint::getMax(CommonFXSema).getValue()
275 APSInt Min = APFixedPoint::getMin(CommonFXSema).getValue()
277 if (CommonFXSema.isSaturated()) {
288 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()),
289 CommonFXSema);
294 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
295 APFixedPoint ConvertedThis = convert(CommonFXSema);
296 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
305 CommonFXSema.getWidth() * 2 + std::max(-CommonFXSema.getMsbWeight(), 0);
306 if (CommonFXSema.isSigned()) {
316 if (CommonFXSema.getLsbWeight() < 0)
317 ThisVal = ThisVal.shl(-CommonFXSema.getLsbWeight());
318 else if (CommonFXSema.getLsbWeight() > 0)
319 OtherVal = OtherVal.shl(CommonFXSema.getLsbWeight());
321 if (CommonFXSema.isSigned()) {
330 Result.setIsSigned(CommonFXSema.isSigned());
334 APSInt Max = APFixedPoint::getMax(CommonFXSema).getValue()
336 APSInt Min = APFixedPoint::getMin(CommonFXSema).getValue()
338 if (CommonFXSema.isSaturated()) {
349 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()),
350 CommonFXSema);