/freebsd/contrib/llvm-project/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 …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | LegalizationArtifactCombiner.h | 129 LLT DstTy = MRI.getType(DstReg); in tryCombineZExt() local 131 isConstantUnsupported(DstTy)) in tryCombineZExt() 200 LLT DstTy = MRI.getType(DstReg); in tryCombineSExt() local 206 if (DstTy != MRI.getType(TruncSrc)) in tryCombineSExt() 253 const LLT DstTy = MRI.getType(DstReg); in tryCombineTrunc() local 347 if (DstTy == FoundRegTy) { in tryCombineTrunc() 374 LLT DstTy = MRI.getType(DstReg); in tryFoldImplicitDef() local 386 if (isConstantUnsupported(DstTy)) in tryFoldImplicitDef() 953 LLT DstTy = MRI.getType(Dst); in tryCombineMergeLike() local 1010 getCoverTy(DstTy, UnmergeSrcTy) == DstTy) { in tryCombineMergeLike() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerLowering.cpp | 419 LLT DstTy = MRI.getType(Dst); in matchEXT() local 429 !isSingletonExtMask(Mask, DstTy)) in matchEXT() 709 if (DstTy != SrcTy) in matchDupLane() 925 LLT DstTy = MRI.getType(LHS); in getVectorFCMP() local 983 LLT DstTy = MRI.getType(Dst); in matchLowerVectorFCMP() local 1009 LLT DstTy = MRI.getType(Dst); in applyLowerVectorFCMP() local 1078 LLT DstTy = MRI.getType(DstReg); in matchVectorSextInReg() local 1079 return DstTy.isVector(); in matchVectorSextInReg() 1101 if (!DstTy.isVector()) in matchUnmergeExtToUnmerge() 1145 if (DstTy.isVector()) { in matchExtMulToMULL() [all …]
|
H A D | AArch64PreLegalizerCombiner.cpp | 245 LLT DstTy = MRI.getType(DstReg); in matchExtAddvToUdotAddv() local 247 if (DstTy.getScalarSizeInBits() != 32 || MidTy.getScalarSizeInBits() != 32) in matchExtAddvToUdotAddv() 434 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchExtUaddvToUaddlv() local 435 if ((DstTy.getScalarSizeInBits() == 16 && in matchExtUaddvToUaddlv() 437 (DstTy.getScalarSizeInBits() == 32 && in matchExtUaddvToUaddlv() 439 (DstTy.getScalarSizeInBits() == 64 && in matchExtUaddvToUaddlv() 457 LLT DstTy = MRI.getType(DstReg); in applyExtUaddvToUaddlv() local 544 if (DstTy.getScalarSizeInBits() > MidScalarSize) { in applyExtUaddvToUaddlv()
|
H A D | AArch64LegalizerInfo.cpp | 623 LLT DstTy = Query.Types[0]; in AArch64LegalizerInfo() local 931 const LLT &DstTy = Query.Types[0]; in AArch64LegalizerInfo() local 935 if (DstTy != SrcTy) in AArch64LegalizerInfo() 1478 LLT DstTy = MRI.getType(DstReg); in legalizeIntrinsic() local 1481 if (DstTy.isScalar() && DstTy.getScalarSizeInBits() <= 32) { in legalizeIntrinsic() 1497 if (DstTy.getScalarSizeInBits() < 32) in legalizeIntrinsic() 1975 LLT DstTy = MRI.getType(Dst); in legalizeFCopySign() local 1977 const unsigned DstSize = DstTy.getSizeInBits(); in legalizeFCopySign() 1995 VecTy = LLT::fixed_vector(2, DstTy); in legalizeFCopySign() 2000 VecTy = LLT::fixed_vector(4, DstTy); in legalizeFCopySign() [all …]
|
H A D | AArch64InstructionSelector.cpp | 2086 if (!DstTy.isPointer()) in preISelLower() 2187 if (DstTy.isVector()) in earlySelectSHL() 2573 LLT DstTy = MRI.getType(DstReg); in select() local 2577 if (!DstTy.isVector() || DstTy.getSizeInBits() > 128) { in select() 2729 LLT DstTy = MRI.getType(DstReg); in select() local 2730 (void)DstTy; in select() 3314 if (DstTy.isVector()) in select() 3715 LLT DstTy = MRI.getType(DstReg); in selectVectorICmp() local 3916 LLT DstTy = MRI.getType(DstReg); in emitNarrowVector() local 3949 if (DstTy == LLT::scalar(128)) { in selectMergeValues() [all …]
|
H A D | AArch64PostLegalizerCombiner.cpp | 71 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchExtractVecEltPairwiseAdd() local 84 unsigned DstSize = DstTy.getSizeInBits(); in matchExtractVecEltPairwiseAdd() 102 std::get<1>(MatchInfo) = DstTy; in matchExtractVecEltPairwiseAdd() 345 const LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchOrToBSP() local 346 if (!DstTy.isVector()) in matchOrToBSP() 360 for (int I = 0, E = DstTy.getNumElements(); I < E; I++) { in matchOrToBSP()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LegalizerHelper.cpp | 355 if (DstTy == LCMTy) { in buildWidenedRemergeToDst() 3245 LLT VecTy = DstTy; in bitcastInsertVectorElt() 5431 if (DstTy != Src1Ty || DstTy != Src2Ty) in moreElementsVectorShuffle() 6395 if (DstTy.isVector() && isPowerOf2_32(DstTy.getNumElements()) && in lowerTRUNC() 6614 if (DstTy == S32) { in lowerSITOFP() 6646 if (DstTy != S32 && DstTy != S64) in lowerFPTOUI() 7409 (DstTy.isVector() && DstTy.getElementType() != InsertTy)) in lowerInsert() 7943 DstTy, Sign, MIRBuilder.buildConstant(DstTy, InvertionMask)); in lowerISFPCLASS() 7967 DstTy = NewTy; in lowerSelect() 7987 MaskTy = DstTy; in lowerSelect() [all …]
|
H A D | GISelKnownBits.cpp | 144 LLT DstTy = MRI.getType(R); in computeKnownBitsImpl() local 150 if (!DstTy.isValid()) { in computeKnownBitsImpl() 286 if (DstTy.isVector()) in computeKnownBitsImpl() 376 if (DstTy.isVector()) in computeKnownBitsImpl() 415 if (DstTy.isVector()) in computeKnownBitsImpl() 450 if (DstTy.isVector()) in computeKnownBitsImpl() 500 if (DstTy.isVector()) in computeKnownBitsImpl() 626 LLT DstTy = MRI.getType(R); in computeNumSignBits() local 633 if (!DstTy.isValid()) in computeNumSignBits() 664 if (DstTy.isVector()) in computeNumSignBits() [all …]
|
H A D | MachineIRBuilder.cpp | 379 LLT DstTy = Res.getLLTTy(*getMRI()); in buildFConstant() local 577 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildCast() local 578 if (SrcTy == DstTy) in buildCast() 598 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildExtract() local 730 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleSplat() local 733 auto UndefVec = buildUndef(DstTy); in buildShuffleSplat() 744 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleVector() local 751 (void)DstTy; in buildShuffleVector() 1084 if (DstTy.isVector()) { in validateTruncExt() 1224 return DstTy.isScalar(); in buildInstr() [all …]
|
H A D | CombinerHelper.cpp | 2476 if (SrcTy == DstTy) { in applyCombineTruncOfExt() 2526 NewShiftTy = DstTy; in matchCombineTruncOfShift() 2575 LLT DstTy = MRI.getType(Dst); in applyCombineTruncOfShift() local 2586 if (NewShiftTy == DstTy) in applyCombineTruncOfShift() 4023 if (ScalarTy != DstTy) { in applyExtractVecEltBuildVec() 4278 LLT DstTy = MRI.getType(Dst); in matchICmpToLHSKnownBits() local 5155 if (!isLegalOrBeforeLegalizer({TargetOpcode::G_MUL, {DstTy, DstTy}})) in matchUDivByConst() 5161 {DstTy.isVector() ? DstTy.changeElementSize(1) : LLT::scalar(1), in matchUDivByConst() 5162 DstTy}})) in matchUDivByConst() 6132 if (DstTy.isPointer()) in matchFPSelectToMinMax() [all …]
|
H A D | CallLowering.cpp | 567 LLT DstTy = MRI.getType(DstRegs[0]); in buildCopyToRegs() local 576 const unsigned DstSize = DstTy.getSizeInBits(); in buildCopyToRegs() 584 if (SrcTy.isScalar() && DstTy.isScalar()) { in buildCopyToRegs() 1254 static bool isCopyCompatibleType(LLT SrcTy, LLT DstTy) { in isCopyCompatibleType() argument 1255 if (SrcTy == DstTy) in isCopyCompatibleType() 1258 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits()) in isCopyCompatibleType() 1262 DstTy = DstTy.getScalarType(); in isCopyCompatibleType() 1264 return (SrcTy.isPointer() && DstTy.isScalar()) || in isCopyCompatibleType() 1265 (DstTy.isPointer() && SrcTy.isScalar()); in isCopyCompatibleType()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineVerifier.cpp | 1147 if (DstTy.isVector()) in verifyPreISelGenericInstruction() 1245 if (SrcTy == DstTy) in verifyPreISelGenericInstruction() 1260 DstTy = DstTy.getScalarType(); in verifyPreISelGenericInstruction() 1400 if (DstTy.isVector()) { in verifyPreISelGenericInstruction() 1491 (DstTy.isVector() && DstTy.getNumElements() != SrcTy.getNumElements())) in verifyPreISelGenericInstruction() 1546 if (!DstTy.isPointer()) in verifyPreISelGenericInstruction() 1621 int DstNumElts = DstTy.isVector() ? DstTy.getNumElements() : 1; in verifyPreISelGenericInstruction() 1730 if (!DstTy.isScalar()) in verifyPreISelGenericInstruction() 1754 if (!DstTy.isScalar()) in verifyPreISelGenericInstruction() 1762 if (DstTy.isVector()) { in verifyPreISelGenericInstruction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/ |
H A D | X86InstructionSelector.cpp | 765 const LLT DstTy = MRI.getType(DstReg); in selectTruncOrPtrToInt() local 849 if (DstTy == LLT::scalar(8)) in selectZext() 851 else if (DstTy == LLT::scalar(16)) in selectZext() 853 else if (DstTy == LLT::scalar(32)) in selectZext() 855 else if (DstTy == LLT::scalar(64)) in selectZext() 861 if (DstTy != LLT::scalar(8)) { in selectZext() 1106 switch (DstTy.getSizeInBits()) { in selectUAddSub() 1203 if (!DstTy.isVector()) in selectExtract() 1230 if (DstTy.getSizeInBits() == 128) in selectExtract() 1260 if (DstTy.getSizeInBits() == 128) in emitExtractSubreg() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprScalar.cpp | 1257 DstElementTy = DstTy; in EmitScalarCast() 1379 if (SrcTy == DstTy) { in EmitScalarConversion() 1467 llvm::Type *ResTy = DstTy; in EmitScalarConversion() 1491 DstTy = CGF.FloatTy; in EmitScalarConversion() 1496 if (DstTy != ResTy) { in EmitScalarConversion() 1529 ConvertType(DstTy)); in EmitFixedPointConversion() 1534 if (DstTy->isIntegerType()) in EmitFixedPointConversion() 1556 if (DstTy->isBooleanType()) { in EmitComplexToScalarConversion() 1722 if (SrcTy == DstTy) in VisitConvertVectorExpr() 1730 assert(DstTy->isVectorTy() && in VisitConvertVectorExpr() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 67 void addTypeMapping(Type *DstTy, Type *SrcTy); 97 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping() 133 return Entry == DstTy; in areTypesIsomorphic() 137 if (DstTy == SrcTy) { in areTypesIsomorphic() 138 Entry = DstTy; in areTypesIsomorphic() 148 Entry = DstTy; in areTypesIsomorphic() 157 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic() 164 Entry = DstTy; in areTypesIsomorphic() 174 if (isa<IntegerType>(DstTy)) in areTypesIsomorphic() 197 Entry = DstTy; in areTypesIsomorphic() [all …]
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | BDCE.cpp | 114 auto *const DstTy = SE->getDestTy(); in bitTrackingDCE() local 115 const uint32_t DestBitSize = DstTy->getScalarSizeInBits(); in bitTrackingDCE() 120 Builder.CreateZExt(SE->getOperand(0), DstTy, SE->getName())); in bitTrackingDCE()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetTransformInfo.cpp | 307 InstructionCost HexagonTTIImpl::getCastInstrCost(unsigned Opcode, Type *DstTy, in getCastInstrCost() argument 315 if (isNonHVXFP(SrcTy) || isNonHVXFP(DstTy)) in getCastInstrCost() 318 if (SrcTy->isFPOrFPVectorTy() || DstTy->isFPOrFPVectorTy()) { in getCastInstrCost() 320 unsigned DstN = DstTy->isFPOrFPVectorTy() ? getTypeNumElements(DstTy) : 0; in getCastInstrCost() 323 std::pair<InstructionCost, MVT> DstLT = getTypeLegalizationCost(DstTy); in getCastInstrCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 657 getVectorTruncCost(Type *SrcTy, Type *DstTy) { in getVectorTruncCost() argument 658 assert (SrcTy->isVectorTy() && DstTy->isVectorTy()); in getVectorTruncCost() 663 cast<FixedVectorType>(DstTy)->getNumElements() && in getVectorTruncCost() 678 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorTruncCost() 690 DstTy->getScalarSizeInBits() == 8) in getVectorTruncCost() 699 getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy) { in getVectorBitmaskConversionCost() argument 700 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() && in getVectorBitmaskConversionCost() 705 unsigned DstScalarBits = DstTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost() 706 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorBitmaskConversionCost() 709 PackCost = getVectorTruncCost(SrcTy, DstTy); in getVectorBitmaskConversionCost() [all …]
|
H A D | SystemZTargetTransformInfo.h | 99 unsigned getVectorTruncCost(Type *SrcTy, Type *DstTy); 100 unsigned getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/ |
H A D | PPCRegisterBankInfo.cpp | 219 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local 221 unsigned DstSize = DstTy.getSizeInBits(); in getInstrMapping() 223 bool DstIsGPR = !DstTy.isVector(); in getInstrMapping()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 496 EVT DstTy = TLI->getValueType(DL, Dst); in getCastInstrCost() local 498 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 510 IsLegalFPType(SrcTy) && IsLegalFPType(DstTy))) in getCastInstrCost() 512 return 2 * DstTy.getVectorNumElements() * in getCastInstrCost() 622 DstTy.getSimpleVT(), in getCastInstrCost() 631 DstTy.getScalarType() == MVT::f32) || in getCastInstrCost() 633 DstTy.getScalarType() == MVT::f64))) { in getCastInstrCost() 834 if (IsLegalFPType(SrcTy) && IsLegalFPType(DstTy)) in getCastInstrCost() 848 SrcTy.getSizeInBits() > DstTy.getSizeInBits()) in getCastInstrCost() 1490 Type *DstTy = in getMemoryOpCost() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Instructions.cpp | 3201 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair() 3207 if (DstTy == MidTy) in isEliminableCastPair() 3252 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair() 3253 if (SrcTy == DstTy) in isEliminableCastPair() 3270 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair() 3288 DstTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 3304 DstTy->isPtrOrPtrVectorTy() && in isEliminableCastPair() 3316 DstTy->isIntOrIntVectorTy() && in isEliminableCastPair() 3720 SrcTy->isAggregateType() || DstTy->isAggregateType()) in castIsValid() 3726 bool DstIsVec = isa<VectorType>(DstTy); in castIsValid() [all …]
|