Lines Matching defs:srcTy
451 Type srcTy = elementTy;
454 srcTy.getIntOrFloatBitWidth() < dstTy.getIntOrFloatBitWidth();
456 if (srcTy == dstTy)
459 if (isa<FloatType>(srcTy) && isa<FloatType>(dstTy) && bitExtend)
463 if (isa<FloatType>(srcTy) && isa<FloatType>(dstTy) && !bitExtend)
468 if (srcTy.isInteger(1) && arith::UIToFPOp::areCastCompatible(srcTy, dstTy))
472 if (srcTy.isInteger(1) && isa<IntegerType>(dstTy) && bitExtend)
478 if (srcTy.isUnsignedInteger() && isa<FloatType>(dstTy)) {
482 loc, rewriter.getIntegerType(srcTy.getIntOrFloatBitWidth()),
490 if (arith::SIToFPOp::areCastCompatible(srcTy, dstTy))
495 if (isa<FloatType>(srcTy) && dstTy.isInteger(1)) {
497 loc, rewriter.getFloatAttr(srcTy, 0.0));
502 if (arith::FPToSIOp::areCastCompatible(srcTy, dstTy)) {
505 const auto &fltSemantics = cast<FloatType>(srcTy).getFloatSemantics();
514 loc, rewriter.getFloatAttr(getElementTypeOrSelf(srcTy),
518 getElementTypeOrSelf(srcTy),
540 getElementTypeOrSelf(srcTy),
545 if (cast<FloatType>(srcTy).getFPMantissaWidth() >=
553 getElementTypeOrSelf(srcTy),
568 getElementTypeOrSelf(srcTy),
590 if (isa<IntegerType>(srcTy) && dstTy.isInteger(1)) {
592 loc, 0, srcTy.getIntOrFloatBitWidth());
597 if (isa<IntegerType>(srcTy) && isa<IntegerType>(dstTy) && bitExtend)
601 if (isa<IntegerType>(srcTy) && isa<IntegerType>(dstTy) && !bitExtend) {