Home
last modified time | relevance | path

Searched refs:DstTy (Results 1 – 25 of 87) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h203 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 DExecution.cpp1231 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument
1236 Type *DstVecTy = DstTy->getScalarType(); in executeTruncInst()
1244 IntegerType *DITy = cast<IntegerType>(DstTy); in executeTruncInst()
1251 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument
1256 Type *DstVecTy = DstTy->getScalarType(); in executeSExtInst()
1264 auto *DITy = cast<IntegerType>(DstTy); in executeSExtInst()
1271 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument
1276 Type *DstVecTy = DstTy->getScalarType(); in executeZExtInst()
1285 auto *DITy = cast<IntegerType>(DstTy); in executeZExtInst()
1292 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelperVectorOps.cpp40 LLT DstTy = MRI.getType(Dst); in matchExtractVectorElement() local
82 isLegalOrBeforeLegalizer({TargetOpcode::G_IMPLICIT_DEF, {DstTy}})) { in matchExtractVectorElement()
262 LLT DstTy = MRI.getType(Dst); in matchExtractVectorElementWithBuildVectorTrunc() local
266 if (!isLegalOrBeforeLegalizer({TargetOpcode::G_TRUNC, {DstTy, SrcTy}})) in matchExtractVectorElementWithBuildVectorTrunc()
341 LLT DstTy = MRI.getType(Dst); in matchExtractVectorElementWithShuffleVector() local
344 isLegalOrBeforeLegalizer({TargetOpcode::G_IMPLICIT_DEF, {DstTy}})) { in matchExtractVectorElementWithShuffleVector()
369 {TargetOpcode::G_EXTRACT_VECTOR_ELT, {DstTy, NewVectorTy, IdxTy}}) || in matchExtractVectorElementWithShuffleVector()
387 LLT DstTy = MRI.getType(Dst); in matchInsertVectorElementOOB() local
390 if (!DstTy.isFixedVector()) in matchInsertVectorElementOOB()
396 if (MaybeIndex && MaybeIndex->Value.uge(DstTy.getNumElements()) && in matchInsertVectorElementOOB()
[all …]
H A DLegalizerHelper.cpp250 LLT LegalizerHelper::extractGCDType(SmallVectorImpl<Register> &Parts, LLT DstTy, in extractGCDType() argument
253 LLT GCDTy = getGCDType(getGCDType(SrcTy, NarrowTy), DstTy); in extractGCDType()
258 LLT LegalizerHelper::buildLCMMergePieces(LLT DstTy, LLT NarrowTy, LLT GCDTy, in buildLCMMergePieces() argument
261 LLT LCMTy = getLCMType(DstTy, NarrowTy); in buildLCMMergePieces()
351 LLT DstTy = MRI.getType(DstReg); in buildWidenedRemergeToDst() local
356 if (DstTy == LCMTy) { in buildWidenedRemergeToDst()
362 if (DstTy.isScalar() && LCMTy.isScalar()) { in buildWidenedRemergeToDst()
368 unsigned NumDefs = LCMTy.getSizeInBits() / DstTy.getSizeInBits(); in buildWidenedRemergeToDst()
372 UnmergeDefs[I] = MRI.createGenericVirtualRegister(DstTy); in buildWidenedRemergeToDst()
1231 LLT DstTy = MRI.getType(DstReg); in narrowScalar() local
[all …]
H A DGISelKnownBits.cpp149 LLT DstTy = MRI.getType(R); in computeKnownBitsImpl() local
155 if (!DstTy.isValid()) { in computeKnownBitsImpl()
160 unsigned BitWidth = DstTy.getScalarSizeInBits(); in computeKnownBitsImpl()
288 if (DstTy.isVector()) in computeKnownBitsImpl()
378 if (DstTy.isVector()) in computeKnownBitsImpl()
380 if (TL.getBooleanContents(DstTy.isVector(), in computeKnownBitsImpl()
418 if (DstTy.isVector()) in computeKnownBitsImpl()
458 if (DstTy.isVector()) in computeKnownBitsImpl()
508 if (DstTy.isVector()) in computeKnownBitsImpl()
592 if (TL.getBooleanContents(DstTy.isVector(), false) == in computeKnownBitsImpl()
[all …]
H A DMachineIRBuilder.cpp386 LLT DstTy = Res.getLLTTy(*getMRI()); in buildFConstant() local
389 ConstantFP::get(Ctx, getAPFloatFromSize(Val, DstTy.getScalarSizeInBits())); in buildFConstant()
598 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildCast() local
599 if (SrcTy == DstTy) in buildCast()
603 if (SrcTy.isPointer() && DstTy.isScalar()) in buildCast()
605 else if (DstTy.isPointer() && SrcTy.isScalar()) in buildCast()
608 assert(!SrcTy.isPointer() && !DstTy.isPointer() && "n G_ADDRCAST yet"); in buildCast()
619 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildExtract() local
623 assert(DstTy.isValid() && "invalid operand type"); in buildExtract()
624 assert(Index + DstTy.getSizeInBits() <= SrcTy.getSizeInBits() && in buildExtract()
[all …]
H A DCombinerHelper.cpp343 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchCombineConcatVectors() local
345 {TargetOpcode::G_BUILD_VECTOR, {DstTy, MRI.getType(Ops[0])}})) { in matchCombineConcatVectors()
1665 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in constantFoldFpUnary() local
1666 Result.convert(getFltSemanticForLLT(DstTy), APFloat::rmNearestTiesToEven, in constantFoldFpUnary()
2146 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in applyCombineUnmergeMergeToPlainValues() local
2147 bool CanReuseInputDirectly = DstTy == SrcTy; in applyCombineUnmergeMergeToPlainValues()
2412 LLT DstTy = MRI.getType(DstReg); in matchCombineI2PToP2I() local
2415 m_GPtrToInt(m_all_of(m_SpecificType(DstTy), m_Reg(Reg)))); in matchCombineI2PToP2I()
2485 auto DstTy = MRI.getType(PtrAdd.getReg(0)); in matchCombineConstPtrAddToI2P() local
2487 NewCst = Cst.zextOrTrunc(DstTy.getSizeInBits()); in matchCombineConstPtrAddToI2P()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h100 const LLT DstTy = MRI.getType(DstReg); in tryCombineAnyExt() local
101 if (isInstLegal({TargetOpcode::G_CONSTANT, {DstTy}})) { in tryCombineAnyExt()
109 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
135 LLT DstTy = MRI.getType(DstReg); in tryCombineZExt() local
136 if (isInstUnsupported({TargetOpcode::G_AND, {DstTy}}) || in tryCombineZExt()
137 isConstantUnsupported(DstTy)) in tryCombineZExt()
142 if (SextSrc && (DstTy != MRI.getType(SextSrc))) in tryCombineZExt()
143 SextSrc = Builder.buildSExtOrTrunc(DstTy, SextSrc).getReg(0); in tryCombineZExt()
144 if (TruncSrc && (DstTy != MRI.getType(TruncSrc))) in tryCombineZExt()
145 TruncSrc = Builder.buildAnyExtOrTrunc(DstTy, TruncSrc).getReg(0); in tryCombineZExt()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp353 LLT DstTy = MRI.getType(Dst); in matchEXT() local
358 auto ExtInfo = getExtMask(Mask, DstTy.getNumElements()); in matchEXT()
363 !isSingletonExtMask(Mask, DstTy)) in matchEXT()
694 const LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchDupLane() local
704 if (DstTy != SrcTy) in matchDupLane()
922 LLT DstTy = MRI.getType(LHS); in getVectorFCMP() local
923 assert(DstTy.isVector() && "Expected vector types only?"); in getVectorFCMP()
924 assert(DstTy == MRI.getType(RHS) && "Src and Dst types must match!"); in getVectorFCMP()
929 return [LHS, RHS, IsZero, DstTy](MachineIRBuilder &MIB) { in getVectorFCMP()
931 ? MIB.buildInstr(AArch64::G_FCMEQZ, {DstTy}, {LHS}) in getVectorFCMP()
[all …]
H A DAArch64PostLegalizerCombiner.cpp71 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()
347 const LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchOrToBSP() local
348 if (!DstTy.isVector()) in matchOrToBSP()
362 for (int I = 0, E = DstTy.getNumElements(); I < E; I++) { in matchOrToBSP()
389 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchCombineMulCMLT() local
391 if (DstTy != LLT::fixed_vector(2, 64) && DstTy != LLT::fixed_vector(2, 32) && in matchCombineMulCMLT()
392 DstTy != LLT::fixed_vector(4, 32) && DstTy != LLT::fixed_vector(4, 16) && in matchCombineMulCMLT()
393 DstTy != LLT::fixed_vector(8, 16)) in matchCombineMulCMLT()
[all …]
H A DAArch64PreLegalizerCombiner.cpp245 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()
568 LLT DstTy = MRI.getType(DstReg); in matchPushAddSubExt() local
569 if (!DstTy.isVector()) in matchPushAddSubExt()
H A DAArch64LegalizerInfo.cpp629 LLT DstTy = Query.Types[0]; in AArch64LegalizerInfo() local
631 return DstTy.isVector() && SrcTy.getSizeInBits() > 128 && in AArch64LegalizerInfo()
632 DstTy.getScalarSizeInBits() * 2 <= SrcTy.getScalarSizeInBits(); in AArch64LegalizerInfo()
989 const LLT &DstTy = Query.Types[0]; in AArch64LegalizerInfo() local
993 if (DstTy != SrcTy) in AArch64LegalizerInfo()
996 {v2s64, v2p0, v2s32, v4s32, v4s16, v16s8, v8s8, v8s16}, DstTy); in AArch64LegalizerInfo()
1032 const LLT DstTy = Query.Types[0]; in AArch64LegalizerInfo() local
1035 0, DstTy.changeElementSize(SrcTy.getSizeInBits()) in AArch64LegalizerInfo()
1037 DstTy.getElementCount().divideCoefficientBy( in AArch64LegalizerInfo()
1411 LLT DstTy = MRI.getType(DstReg); in legalizeICMP() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1184 LLT DstTy = MRI->getType(MI->getOperand(0).getReg()); in verifyPreISelGenericInstruction() local
1185 if (DstTy.isVector()) in verifyPreISelGenericInstruction()
1195 if (CI->getBitWidth() != DstTy.getSizeInBits()) in verifyPreISelGenericInstruction()
1205 DstTy.getSizeInBits()) { in verifyPreISelGenericInstruction()
1259 LLT DstTy = MRI->getType(MI->getOperand(0).getReg()); in verifyPreISelGenericInstruction() local
1260 if (!DstTy.isValid() || !all_of(drop_begin(MI->operands()), in verifyPreISelGenericInstruction()
1261 [this, &DstTy](const MachineOperand &MO) { in verifyPreISelGenericInstruction()
1265 if (!Ty.isValid() || (Ty != DstTy)) in verifyPreISelGenericInstruction()
1275 LLT DstTy = MRI->getType(MI->getOperand(0).getReg()); in verifyPreISelGenericInstruction() local
1277 if (!DstTy.isValid() || !SrcTy.isValid()) in verifyPreISelGenericInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstructionSelector.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/
H A DX86InstructionSelector.cpp799 const LLT DstTy = MRI.getType(DstReg); in selectTruncOrPtrToInt() local
811 const TargetRegisterClass *DstRC = getRegClass(DstTy, DstRB); in selectTruncOrPtrToInt()
863 const LLT DstTy = MRI.getType(DstReg); in selectZext() local
866 assert(!(SrcTy == LLT::scalar(8) && DstTy == LLT::scalar(16)) && in selectZext()
868 assert(!(SrcTy == LLT::scalar(8) && DstTy == LLT::scalar(32)) && in selectZext()
870 assert(!(SrcTy == LLT::scalar(16) && DstTy == LLT::scalar(32)) && in selectZext()
872 assert(!(SrcTy == LLT::scalar(8) && DstTy == LLT::scalar(64)) && in selectZext()
874 assert(!(SrcTy == LLT::scalar(16) && DstTy == LLT::scalar(64)) && in selectZext()
876 assert(!(SrcTy == LLT::scalar(32) && DstTy == LLT::scalar(64)) && in selectZext()
883 if (DstTy == LLT::scalar(8)) in selectZext()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp312 Value *EmitConversionToBool(Value *Src, QualType DstTy);
318 llvm::Type *DstTy, SourceLocation Loc);
362 llvm::Type *SrcTy, llvm::Type *DstTy,
365 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy,
371 Value *EmitFixedPointConversion(Value *Src, QualType SrcTy, QualType DstTy,
377 QualType SrcTy, QualType DstTy,
959 QualType DstType, llvm::Type *DstTy, SourceLocation Loc) { in EmitFloatConversionCheck() argument
961 if (!isa<llvm::IntegerType>(DstTy)) in EmitFloatConversionCheck()
1032 llvm::Type *DstTy = Dst->getType(); in EmitIntegerTruncationCheckHelper() local
1033 (void)DstTy; // Only used in assert() in EmitIntegerTruncationCheckHelper()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp68 void addTypeMapping(Type *DstTy, Type *SrcTy);
88 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
92 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
98 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
126 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
128 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic()
134 return Entry == DstTy; in areTypesIsomorphic()
138 if (DstTy == SrcTy) { in areTypesIsomorphic()
139 Entry = DstTy; in areTypesIsomorphic()
149 Entry = DstTy; in areTypesIsomorphic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp180 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/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp294 InstructionCost HexagonTTIImpl::getCastInstrCost(unsigned Opcode, Type *DstTy, in getCastInstrCost() argument
302 if (isNonHVXFP(SrcTy) || isNonHVXFP(DstTy)) in getCastInstrCost()
305 if (SrcTy->isFPOrFPVectorTy() || DstTy->isFPOrFPVectorTy()) { in getCastInstrCost()
307 unsigned DstN = DstTy->isFPOrFPVectorTy() ? getTypeNumElements(DstTy) : 0; in getCastInstrCost()
310 std::pair<InstructionCost, MVT> DstLT = getTypeLegalizationCost(DstTy); in getCastInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DBDCE.cpp120 auto *const DstTy = SE->getDestTy(); in bitTrackingDCE() local
121 const uint32_t DestBitSize = DstTy->getScalarSizeInBits(); in bitTrackingDCE()
126 Builder.CreateZExt(SE->getOperand(0), DstTy, SE->getName())); in bitTrackingDCE()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp659 getVectorTruncCost(Type *SrcTy, Type *DstTy) { in getVectorTruncCost() argument
660 assert (SrcTy->isVectorTy() && DstTy->isVectorTy()); in getVectorTruncCost()
662 DstTy->getPrimitiveSizeInBits().getFixedValue() && in getVectorTruncCost()
665 cast<FixedVectorType>(DstTy)->getNumElements() && in getVectorTruncCost()
680 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorTruncCost()
692 DstTy->getScalarSizeInBits() == 8) in getVectorTruncCost()
701 getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy) { in getVectorBitmaskConversionCost() argument
702 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() && in getVectorBitmaskConversionCost()
707 unsigned DstScalarBits = DstTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost()
708 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorBitmaskConversionCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp2761 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument
2826 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2846 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair()
2852 if (DstTy == MidTy) in isEliminableCastPair()
2867 if (SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace()) in isEliminableCastPair()
2891 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
2892 if (SrcTy == DstTy) in isEliminableCastPair()
2909 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
2917 if (SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace()) in isEliminableCastPair()
2927 DstTy->isPtrOrPtrVectorTy() && in isEliminableCastPair()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCRegisterBankInfo.cpp220 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local
222 unsigned DstSize = DstTy.getSizeInBits(); in getInstrMapping()
224 bool DstIsGPR = !DstTy.isVector(); in getInstrMapping()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp500 EVT DstTy = TLI->getValueType(DL, Dst); in getCastInstrCost() local
502 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost()
514 IsLegalFPType(SrcTy) && IsLegalFPType(DstTy))) in getCastInstrCost()
515 if (CCH == TTI::CastContextHint::Masked && DstTy.getSizeInBits() > 128) in getCastInstrCost()
516 return 2 * DstTy.getVectorNumElements() * in getCastInstrCost()
537 LoadConversionTbl, ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT())) in getCastInstrCost()
560 DstTy.getSimpleVT(), SrcTy.getSimpleVT())) in getCastInstrCost()
572 DstTy.getSimpleVT(), SrcTy.getSimpleVT())) in getCastInstrCost()
589 SrcTy.getSimpleVT(), DstTy.getSimpleVT())) in getCastInstrCost()
600 SrcTy.getSimpleVT(), DstTy.getSimpleVT())) in getCastInstrCost()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_handlers.cpp559 const TypeDescriptor &DstTy = Data->ToType; in handleImplicitConversion() local
561 bool DstSigned = DstTy.isSignedIntegerTy(); in handleImplicitConversion()
603 << (SrcSigned ? "" : "un") << DstTy << Value(DstTy, Dst) in handleImplicitConversion()
610 << (SrcSigned ? "" : "un") << DstTy << Value(DstTy, Dst) in handleImplicitConversion()
611 << DstTy.getIntegerBitWidth() << (DstSigned ? "" : "un"); in handleImplicitConversion()

1234