| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Interpreter.h | 203 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy, 205 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy, 207 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy, 209 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy, 211 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy, 213 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy, 215 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy, 217 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy, 219 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy, 221 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy, [all …]
|
| H A D | Execution.cpp | 1272 Type *DstVecTy = DstTy->getScalarType(); in executeTruncInst() 1300 auto *DITy = cast<IntegerType>(DstTy); in executeSExtInst() 1321 auto *DITy = cast<IntegerType>(DstTy); in executeZExtInst() 1570 if (isa<VectorType>(DstTy)) { in executeBitCastInst() 1571 DstElemTy = DstTy->getScalarType(); in executeBitCastInst() 1575 DstElemTy = DstTy; in executeBitCastInst() 1643 if (isa<VectorType>(DstTy)) { in executeBitCastInst() 1669 if (DstTy->isPointerTy()) { in executeBitCastInst() 1672 } else if (DstTy->isIntegerTy()) { in executeBitCastInst() 1682 } else if (DstTy->isFloatTy()) { in executeBitCastInst() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | LegalizationArtifactCombiner.h | 96 const LLT DstTy = MRI.getType(DstReg); in tryCombineAnyExt() local 126 LLT DstTy = MRI.getType(DstReg); in tryCombineZExt() local 128 isConstantUnsupported(DstTy)) in tryCombineZExt() 134 DstTy, MaskVal.zext(DstTy.getScalarSizeInBits())); in tryCombineZExt() 159 const LLT DstTy = MRI.getType(DstReg); in tryCombineZExt() local 185 LLT DstTy = MRI.getType(DstReg); in tryCombineSExt() local 191 if (DstTy != MRI.getType(TruncSrc)) in tryCombineSExt() 215 const LLT DstTy = MRI.getType(DstReg); in tryCombineSExt() local 343 LLT DstTy = MRI.getType(DstReg); in tryFoldImplicitDef() local 355 if (isConstantUnsupported(DstTy)) in tryFoldImplicitDef() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstructionSelector.cpp | 718 const LLT DstTy = MRI.getType(DstReg); in selectTruncOrPtrToInt() local 802 if (DstTy == LLT::scalar(8)) in selectZext() 804 else if (DstTy == LLT::scalar(16)) in selectZext() 806 else if (DstTy == LLT::scalar(32)) in selectZext() 808 else if (DstTy == LLT::scalar(64)) in selectZext() 814 if (DstTy != LLT::scalar(8)) { in selectZext() 1049 if (DstTy != LLT::scalar(32)) in selectUadde() 1109 if (!DstTy.isVector()) in selectExtract() 1136 if (DstTy.getSizeInBits() == 128) in selectExtract() 1166 if (DstTy.getSizeInBits() == 128) in emitExtractSubreg() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerLowering.cpp | 649 const LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchDupLane() local 659 if (DstTy != SrcTy) in matchDupLane() 859 LLT DstTy = MRI.getType(LHS); in getVectorFCMP() local 860 assert(DstTy.isVector() && "Expected vector types only?"); in getVectorFCMP() 866 return [LHS, RHS, IsZero, DstTy](MachineIRBuilder &MIB) { in getVectorFCMP() 870 return MIB.buildNot(DstTy, FCmp).getReg(0); in getVectorFCMP() 873 return [LHS, RHS, IsZero, DstTy](MachineIRBuilder &MIB) { in getVectorFCMP() 916 LLT DstTy = MRI.getType(Dst); in lowerVectorFCMP() local 917 if (!DstTy.isVector() || !ST.hasNEON()) in lowerVectorFCMP() 946 CmpRes = MIB.buildOr(DstTy, Cmp1Dst, Cmp2Dst).getReg(0); in lowerVectorFCMP() [all …]
|
| H A D | AArch64InstructionSelector.cpp | 1988 if (!DstTy.isPointer()) in preISelLower() 2089 if (DstTy.isVector()) in earlySelectSHL() 2473 LLT DstTy = MRI.getType(DstReg); in select() local 2477 if (!DstTy.isVector() || DstTy.getSizeInBits() > 128) { in select() 2625 LLT DstTy = MRI.getType(DstReg); in select() local 2626 (void)DstTy; in select() 3205 if (DstTy.isVector()) in select() 3777 LLT DstTy = MRI.getType(DstReg); in selectVectorICmp() local 3984 if (DstTy == LLT::scalar(128)) { in selectMergeValues() 5169 if (DstTy.getSizeInBits() != 128) { in selectShuffleVector() [all …]
|
| H A D | AArch64RegisterBankInfo.cpp | 608 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local 612 getFPExtMapping(DstTy.getSizeInBits(), SrcTy.getSizeInBits()), in getInstrMapping() 654 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local 656 unsigned Size = DstTy.getSizeInBits(); in getInstrMapping() 657 bool DstIsGPR = !DstTy.isVector() && DstTy.getSizeInBits() <= 64; in getInstrMapping()
|
| H A D | AArch64LegalizerInfo.cpp | 454 LLT DstTy = Query.Types[0]; in AArch64LegalizerInfo() local 456 return DstTy == v8s8 && SrcTy.getSizeInBits() > 128; in AArch64LegalizerInfo() 673 const LLT &DstTy = Query.Types[0]; in AArch64LegalizerInfo() local 677 if (DstTy != SrcTy) in AArch64LegalizerInfo() 680 if (DstTy == Ty) in AArch64LegalizerInfo() 907 LLT DstTy = MRI.getType(DstReg); in legalizeVectorTrunc() local 909 assert(isPowerOf2_32(DstTy.getSizeInBits()) && in legalizeVectorTrunc() 920 LLT InterTy = SplitSrcTy.changeElementSize(DstTy.getScalarSizeInBits() * 2); in legalizeVectorTrunc() 925 DstTy.changeElementSize(DstTy.getScalarSizeInBits() * 2), SplitSrcs); in legalizeVectorTrunc()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 442 if (DstTy == LCMTy) { in buildWidenedRemergeToDst() 1503 if (DstTy.isVector()) in widenScalarMergeValues() 2949 LLT LoadTy = DstTy; in lowerLoad() 4267 if (DstTy != Src1Ty) in fewerElementsVectorShuffle() 4269 if (DstTy != Src2Ty) in fewerElementsVectorShuffle() 4942 if (DstTy != Src1Ty || DstTy != Src2Ty) in moreElementsVectorShuffle() 6034 if (DstTy == S32) { in lowerSITOFP() 6069 if (DstTy != S32 && DstTy != S64) in lowerFPTOUI() 6837 (DstTy.isVector() && DstTy.getElementType() != InsertTy)) in lowerInsert() 7249 MaskTy = DstTy; in lowerSelect() [all …]
|
| H A D | GISelKnownBits.cpp | 141 LLT DstTy = MRI.getType(R); in computeKnownBitsImpl() local 147 if (!DstTy.isValid()) { in computeKnownBitsImpl() 283 if (DstTy.isVector()) in computeKnownBitsImpl() 373 if (DstTy.isVector()) in computeKnownBitsImpl() 412 if (DstTy.isVector()) in computeKnownBitsImpl() 447 if (DstTy.isVector()) in computeKnownBitsImpl() 499 if (DstTy.isVector()) in computeKnownBitsImpl() 625 LLT DstTy = MRI.getType(R); in computeNumSignBits() local 632 if (!DstTy.isValid()) in computeNumSignBits() 663 if (DstTy.isVector()) in computeNumSignBits() [all …]
|
| H A D | MachineIRBuilder.cpp | 346 LLT DstTy = Res.getLLTTy(*getMRI()); in buildFConstant() local 544 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildCast() local 545 if (SrcTy == DstTy) in buildCast() 565 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildExtract() local 672 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleSplat() local 675 auto UndefVec = buildUndef(DstTy); in buildShuffleSplat() 686 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleVector() local 693 (void)DstTy; in buildShuffleVector() 990 if (DstTy.isVector()) { in validateTruncExt() 1130 return DstTy.isScalar(); in buildInstr() [all …]
|
| H A D | CombinerHelper.cpp | 2250 if (SrcTy == DstTy) { in applyCombineTruncOfExt() 2276 {DstTy, getTargetLowering().getPreferredShiftAmountTy(DstTy)}})) { in matchCombineTruncOfShl() 2818 if (DstTy.isVector()) in matchRedundantAnd() 2861 LLT DstTy = MRI.getType(OrDst); in matchRedundantOr() local 2864 if (DstTy.isVector()) in matchRedundantOr() 3959 if (ScalarTy != DstTy) { in applyExtractVecEltBuildVec() 4214 LLT DstTy = MRI.getType(Dst); in matchICmpToLHSKnownBits() local 4894 LLT DstTy = MRI.getType(Dst); in matchUDivByConst() local 4914 if (!isLegalOrBeforeLegalizer({TargetOpcode::G_MUL, {DstTy, DstTy}})) in matchUDivByConst() 4920 {DstTy.isVector() ? DstTy.changeElementSize(1) : LLT::scalar(1), in matchUDivByConst() [all …]
|
| H A D | CallLowering.cpp | 500 LLT DstTy = MRI.getType(DstRegs[0]); in buildCopyToRegs() local 509 const unsigned DstSize = DstTy.getSizeInBits(); in buildCopyToRegs() 517 if (SrcTy.isScalar() && DstTy.isScalar()) { in buildCopyToRegs() 1188 static bool isCopyCompatibleType(LLT SrcTy, LLT DstTy) { in isCopyCompatibleType() argument 1189 if (SrcTy == DstTy) in isCopyCompatibleType() 1192 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits()) in isCopyCompatibleType() 1196 DstTy = DstTy.getScalarType(); in isCopyCompatibleType() 1198 return (SrcTy.isPointer() && DstTy.isScalar()) || in isCopyCompatibleType() 1199 (DstTy.isScalar() && SrcTy.isPointer()); in isCopyCompatibleType()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineVerifier.cpp | 1034 if (DstTy.isVector()) in verifyPreISelGenericInstruction() 1132 if (SrcTy == DstTy) in verifyPreISelGenericInstruction() 1147 DstTy = DstTy.getScalarType(); in verifyPreISelGenericInstruction() 1158 if (DstTy.isPointer()) in verifyPreISelGenericInstruction() 1357 (DstTy.isVector() && DstTy.getNumElements() != SrcTy.getNumElements())) in verifyPreISelGenericInstruction() 1412 if (!DstTy.isPointer()) in verifyPreISelGenericInstruction() 1491 int DstNumElts = DstTy.isVector() ? DstTy.getNumElements() : 1; in verifyPreISelGenericInstruction() 1600 if (!DstTy.isScalar()) in verifyPreISelGenericInstruction() 1622 if (!DstTy.isScalar()) in verifyPreISelGenericInstruction() 1630 if (DstTy.isVector()) { in verifyPreISelGenericInstruction() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprScalar.cpp | 1220 DstElementTy = DstTy; in EmitScalarCast() 1342 if (SrcTy == DstTy) { in EmitScalarConversion() 1430 llvm::Type *ResTy = DstTy; in EmitScalarConversion() 1454 DstTy = CGF.FloatTy; in EmitScalarConversion() 1459 if (DstTy != ResTy) { in EmitScalarConversion() 1492 ConvertType(DstTy)); in EmitFixedPointConversion() 1497 if (DstTy->isIntegerType()) in EmitFixedPointConversion() 1519 if (DstTy->isBooleanType()) { in EmitComplexToScalarConversion() 1692 if (SrcTy == DstTy) in VisitConvertVectorExpr() 1700 assert(DstTy->isVectorTy() && in VisitConvertVectorExpr() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Linker/ |
| H A D | IRMover.cpp | 64 void addTypeMapping(Type *DstTy, Type *SrcTy); 94 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping() 130 return Entry == DstTy; in areTypesIsomorphic() 134 if (DstTy == SrcTy) { in areTypesIsomorphic() 135 Entry = DstTy; in areTypesIsomorphic() 145 Entry = DstTy; in areTypesIsomorphic() 154 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic() 161 Entry = DstTy; in areTypesIsomorphic() 171 if (isa<IntegerType>(DstTy)) in areTypesIsomorphic() 194 Entry = DstTy; in areTypesIsomorphic() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | TruncInstCombine.cpp | 180 Type *DstTy = CurrentTruncInst->getType(); in getMinBitWidth() local 181 unsigned TruncBitWidth = DstTy->getScalarSizeInBits(); in getMinBitWidth() 246 if (DstTy->isVectorTy()) in getMinBitWidth() 249 Type *Ty = DL.getSmallestLegalIntType(DstTy->getContext(), MinBitWidth); in getMinBitWidth() 260 if (!DstTy->isVectorTy() && FromLegal && !ToLegal) in getMinBitWidth() 490 Type *DstTy = CurrentTruncInst->getType(); in ReduceExpressionGraph() local 491 if (Res->getType() != DstTy) { in ReduceExpressionGraph() 493 Res = Builder.CreateIntCast(Res, DstTy, false); in ReduceExpressionGraph()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | BDCE.cpp | 117 auto *const DstTy = SE->getDestTy(); in bitTrackingDCE() local 118 const uint32_t DestBitSize = DstTy->getScalarSizeInBits(); in bitTrackingDCE() 123 Builder.CreateZExt(SE->getOperand(0), DstTy, SE->getName())); in bitTrackingDCE()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 649 getVectorTruncCost(Type *SrcTy, Type *DstTy) { in getVectorTruncCost() argument 650 assert (SrcTy->isVectorTy() && DstTy->isVectorTy()); in getVectorTruncCost() 652 DstTy->getPrimitiveSizeInBits().getFixedSize() && in getVectorTruncCost() 670 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorTruncCost() 682 DstTy->getScalarSizeInBits() == 8) in getVectorTruncCost() 691 getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy) { in getVectorBitmaskConversionCost() argument 692 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() && in getVectorBitmaskConversionCost() 697 unsigned DstScalarBits = DstTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost() 698 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorBitmaskConversionCost() 701 PackCost = getVectorTruncCost(SrcTy, DstTy); in getVectorBitmaskConversionCost() [all …]
|
| H A D | SystemZTargetTransformInfo.h | 98 unsigned getVectorTruncCost(Type *SrcTy, Type *DstTy); 99 unsigned getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy);
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonTargetTransformInfo.cpp | 285 InstructionCost HexagonTTIImpl::getCastInstrCost(unsigned Opcode, Type *DstTy, in getCastInstrCost() argument 290 if (SrcTy->isFPOrFPVectorTy() || DstTy->isFPOrFPVectorTy()) { in getCastInstrCost() 292 unsigned DstN = DstTy->isFPOrFPVectorTy() ? getTypeNumElements(DstTy) : 0; in getCastInstrCost() 297 TLI.getTypeLegalizationCost(DL, DstTy); in getCastInstrCost()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.cpp | 493 EVT DstTy = TLI->getValueType(DL, Dst); in getCastInstrCost() local 495 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 507 IsLegalFPType(SrcTy) && IsLegalFPType(DstTy))) in getCastInstrCost() 509 return 2 * DstTy.getVectorNumElements() * in getCastInstrCost() 619 DstTy.getSimpleVT(), in getCastInstrCost() 628 DstTy.getScalarType() == MVT::f32) || in getCastInstrCost() 630 DstTy.getScalarType() == MVT::f64))) { in getCastInstrCost() 831 if (IsLegalFPType(SrcTy) && IsLegalFPType(DstTy)) in getCastInstrCost() 845 SrcTy.getSizeInBits() > DstTy.getSizeInBits()) in getCastInstrCost() 1481 Type *DstTy = in getMemoryOpCost() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instructions.cpp | 2900 Type *DstTy = getType(); in isLosslessCast() local 2901 if (SrcTy == DstTy) in isLosslessCast() 2906 return DstTy->isPointerTy(); in isLosslessCast() 3053 if (DstTy->isFloatingPointTy()) in isEliminableCastPair() 3098 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair() 3099 if (SrcTy == DstTy) in isEliminableCastPair() 3116 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair() 3134 DstTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 3156 DstTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 3168 DstTy->isIntOrIntVectorTy() && in isEliminableCastPair() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 1233 Type *DstTy = U->getOperand(0)->getType(); in getUserCost() local 1234 return TargetTTI->getVectorInstrCost(Opcode, DstTy, Idx); in getUserCost() 1249 Type *DstTy = I->getType(); in getInstructionLatency() local 1259 if (StructType *StructTy = dyn_cast<StructType>(DstTy)) in getInstructionLatency() 1260 DstTy = StructTy->getElementType(0); in getInstructionLatency() 1264 if (VectorType *VectorTy = dyn_cast<VectorType>(DstTy)) in getInstructionLatency() 1265 DstTy = VectorTy->getElementType(); in getInstructionLatency() 1266 if (DstTy->isFloatingPointTy()) in getInstructionLatency()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 173 Type *DstTy) { in CreateFixedToFloating() argument 175 Type *OpTy = getAccommodatingFloatType(DstTy, SrcSema); in CreateFixedToFloating() 184 if (OpTy != DstTy) in CreateFixedToFloating() 185 Result = B.CreateFPTrunc(Result, DstTy); in CreateFixedToFloating()
|