Home
last modified time | relevance | path

Searched refs:dstTy (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFactory.h47 auto dstTy = in genCharacterCopy() local
49 if (!srcLen && !dstLen && srcTy.getFKind() == dstTy.getFKind() && in genCharacterCopy()
50 srcTy.getLen() == dstTy.getLen()) { in genCharacterCopy()
70 if (!srcLen && !dstLen && srcTy.getLen() >= dstTy.getLen()) { in genCharacterCopy()
72 loc, dstTy.getLen() - 1); in genCharacterCopy()
81 auto cdstTy = toArrayTy(dstTy); in genCharacterCopy()
86 srcTy.getFKind() == dstTy.getFKind() in genCharacterCopy()
103 loc, dstTy.getLen() - 1) in genCharacterCopy()
125 auto cdstTy = toArrayTy(dstTy); in genCharacterCopy()
130 srcTy.getFKind() == dstTy.getFKind() in genCharacterCopy()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/
H A DTosaToLinalg.cpp452 Type dstTy = resultTypes.front(); in createLinalgBodyCalculationForElementwiseOp() local
456 if (srcTy == dstTy) in createLinalgBodyCalculationForElementwiseOp()
477 if (srcTy.isUnsignedInteger() && dstTy.isa<FloatType>()) { in createLinalgBodyCalculationForElementwiseOp()
489 if (arith::SIToFPOp::areCastCompatible(srcTy, dstTy)) in createLinalgBodyCalculationForElementwiseOp()
494 if (srcTy.isa<FloatType>() && dstTy.isInteger(1)) { in createLinalgBodyCalculationForElementwiseOp()
501 if (arith::FPToSIOp::areCastCompatible(srcTy, dstTy)) { in createLinalgBodyCalculationForElementwiseOp()
527 return rewriter.create<arith::FPToSIOp>(loc, dstTy, clamped); in createLinalgBodyCalculationForElementwiseOp()
532 if (srcTy.isa<IntegerType>() && dstTy.isInteger(1)) { in createLinalgBodyCalculationForElementwiseOp()
546 APInt::getSignedMinValue(dstTy.getIntOrFloatBitWidth()) in createLinalgBodyCalculationForElementwiseOp()
552 APInt::getSignedMaxValue(dstTy.getIntOrFloatBitWidth()) in createLinalgBodyCalculationForElementwiseOp()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp2198 Value *CreateShadowCast(IRBuilder<> &IRB, Value *V, Type *dstTy, in CreateShadowCast()
2202 size_t dstSizeInBits = VectorOrPrimitiveTypeSizeInBits(dstTy); in CreateShadowCast()
2206 if (dstTy->isIntegerTy() && srcTy->isIntegerTy()) in CreateShadowCast()
2207 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast()
2208 if (dstTy->isVectorTy() && srcTy->isVectorTy() && in CreateShadowCast()
2209 cast<FixedVectorType>(dstTy)->getNumElements() == in CreateShadowCast()
2211 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast()
2215 return IRB.CreateBitCast(V2, dstTy); in CreateShadowCast()