Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/
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 …]
DExecution.cpp1270 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument
1275 Type *DstVecTy = DstTy->getScalarType(); in executeTruncInst()
1283 IntegerType *DITy = cast<IntegerType>(DstTy); in executeTruncInst()
1290 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument
1295 Type *DstVecTy = DstTy->getScalarType(); in executeSExtInst()
1303 auto *DITy = cast<IntegerType>(DstTy); in executeSExtInst()
1310 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument
1315 Type *DstVecTy = DstTy->getScalarType(); in executeZExtInst()
1324 auto *DITy = cast<IntegerType>(DstTy); in executeZExtInst()
1331 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizationArtifactCombiner.h84 const LLT &DstTy = MRI.getType(DstReg); in tryCombineAnyExt() local
85 if (isInstLegal({TargetOpcode::G_CONSTANT, {DstTy}})) { in tryCombineAnyExt()
88 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
109 LLT DstTy = MRI.getType(DstReg); in tryCombineZExt() local
110 if (isInstUnsupported({TargetOpcode::G_AND, {DstTy}}) || in tryCombineZExt()
111 isConstantUnsupported(DstTy)) in tryCombineZExt()
117 DstTy, Mask.zext(DstTy.getScalarSizeInBits())); in tryCombineZExt()
118 Builder.buildAnd(DstReg, Builder.buildAnyExtOrTrunc(DstTy, TruncSrc), in tryCombineZExt()
128 const LLT &DstTy = MRI.getType(DstReg); in tryCombineZExt() local
129 if (isInstLegal({TargetOpcode::G_CONSTANT, {DstTy}})) { in tryCombineZExt()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstructionSelector.cpp715 const LLT DstTy = MRI.getType(DstReg); in selectTruncOrPtrToInt() local
727 const TargetRegisterClass *DstRC = getRegClass(DstTy, DstRB); in selectTruncOrPtrToInt()
779 const LLT DstTy = MRI.getType(DstReg); in selectZext() local
782 assert(!(SrcTy == LLT::scalar(8) && DstTy == LLT::scalar(32)) && in selectZext()
784 assert(!(SrcTy == LLT::scalar(16) && DstTy == LLT::scalar(32)) && in selectZext()
789 LLT DstTy; in selectZext() member
801 [SrcTy, DstTy](const ZextEntry &El) { in selectZext()
802 return El.DstTy == DstTy && El.SrcTy == SrcTy; in selectZext()
809 const TargetRegisterClass *DstRC = getRegClass(DstTy, DstRB); in selectZext()
850 if (DstTy == LLT::scalar(8)) in selectZext()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineVerifier.cpp978 LLT DstTy = MRI->getType(MI->getOperand(0).getReg()); in verifyPreISelGenericInstruction() local
979 if (DstTy.isVector()) in verifyPreISelGenericInstruction()
989 if (CI->getBitWidth() != DstTy.getSizeInBits()) in verifyPreISelGenericInstruction()
999 DstTy.getSizeInBits()) { in verifyPreISelGenericInstruction()
1038 LLT DstTy = MRI->getType(MI->getOperand(0).getReg()); in verifyPreISelGenericInstruction() local
1039 if (!DstTy.isValid() || in verifyPreISelGenericInstruction()
1041 [this, &DstTy](const MachineOperand &MO) { in verifyPreISelGenericInstruction()
1045 if (!Ty.isValid() || (Ty != DstTy)) in verifyPreISelGenericInstruction()
1055 LLT DstTy = MRI->getType(MI->getOperand(0).getReg()); in verifyPreISelGenericInstruction() local
1057 if (!DstTy.isValid() || !SrcTy.isValid()) in verifyPreISelGenericInstruction()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DLegalizerHelper.cpp796 LLT DstTy = MRI.getType(DstReg); in narrowScalar() local
797 if (DstTy.isVector()) in narrowScalar()
800 if (8 * MMO.getSize() != DstTy.getSizeInBits()) { in narrowScalar()
1182 LLT DstTy = MRI.getType(DstReg); in widenScalarMergeValues() local
1183 if (DstTy.isVector()) in widenScalarMergeValues()
1188 const int DstSize = DstTy.getSizeInBits(); in widenScalarMergeValues()
1195 unsigned PartSize = DstTy.getSizeInBits() / NumSrc; in widenScalarMergeValues()
1209 Register NextResult = I + 1 == NumOps && WideTy == DstTy ? DstReg : in widenScalarMergeValues()
1220 else if (DstTy.isPointer()) in widenScalarMergeValues()
1286 if (DstTy.getSizeInBits() == WideDstTy.getSizeInBits()) { in widenScalarMergeValues()
[all …]
DGISelKnownBits.cpp95 LLT DstTy = MRI.getType(R); in computeKnownBitsImpl() local
101 if (!DstTy.isValid()) { in computeKnownBitsImpl()
106 unsigned BitWidth = DstTy.getSizeInBits(); in computeKnownBitsImpl()
109 if (DstTy.isVector()) in computeKnownBitsImpl()
272 if (TL.getBooleanContents(DstTy.isVector(), in computeKnownBitsImpl()
391 LLT DstTy = MRI.getType(R); in computeNumSignBits() local
397 if (!DstTy.isValid()) in computeNumSignBits()
414 unsigned Tmp = DstTy.getScalarSizeInBits() - SrcTy.getScalarSizeInBits(); in computeNumSignBits()
422 unsigned DstTyBits = DstTy.getScalarSizeInBits(); in computeNumSignBits()
DMachineIRBuilder.cpp339 LLT DstTy = Res.getLLTTy(*getMRI()); in buildFConstant() local
342 ConstantFP::get(Ctx, getAPFloatFromSize(Val, DstTy.getScalarSizeInBits())); in buildFConstant()
485 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildCast() local
486 if (SrcTy == DstTy) in buildCast()
490 if (SrcTy.isPointer() && DstTy.isScalar()) in buildCast()
492 else if (DstTy.isPointer() && SrcTy.isScalar()) in buildCast()
495 assert(!SrcTy.isPointer() && !DstTy.isPointer() && "n G_ADDRCAST yet"); in buildCast()
506 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildExtract() local
510 assert(DstTy.isValid() && "invalid operand type"); in buildExtract()
511 assert(Index + DstTy.getSizeInBits() <= SrcTy.getSizeInBits() && in buildExtract()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DTruncInstCombine.cpp142 Type *DstTy = CurrentTruncInst->getType(); in getMinBitWidth() local
143 unsigned TruncBitWidth = DstTy->getScalarSizeInBits(); in getMinBitWidth()
208 if (DstTy->isVectorTy()) in getMinBitWidth()
211 Type *Ty = DL.getSmallestLegalIntType(DstTy->getContext(), MinBitWidth); in getMinBitWidth()
222 if (!DstTy->isVectorTy() && FromLegal && !ToLegal) in getMinBitWidth()
364 Type *DstTy = CurrentTruncInst->getType(); in ReduceExpressionDag() local
365 if (Res->getType() != DstTy) { in ReduceExpressionDag()
367 Res = Builder.CreateIntCast(Res, DstTy, false); in ReduceExpressionDag()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Linker/
DIRMover.cpp56 void addTypeMapping(Type *DstTy, Type *SrcTy);
76 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
80 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
86 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
114 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
116 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic()
122 return Entry == DstTy; in areTypesIsomorphic()
126 if (DstTy == SrcTy) { in areTypesIsomorphic()
127 Entry = DstTy; in areTypesIsomorphic()
137 Entry = DstTy; in areTypesIsomorphic()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp563 getVectorTruncCost(Type *SrcTy, Type *DstTy) { in getVectorTruncCost() argument
564 assert (SrcTy->isVectorTy() && DstTy->isVectorTy()); in getVectorTruncCost()
565 assert (SrcTy->getPrimitiveSizeInBits() > DstTy->getPrimitiveSizeInBits() && in getVectorTruncCost()
567 assert (SrcTy->getVectorNumElements() == DstTy->getVectorNumElements() && in getVectorTruncCost()
582 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorTruncCost()
594 DstTy->getScalarSizeInBits() == 8) in getVectorTruncCost()
603 getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy) { in getVectorBitmaskConversionCost() argument
604 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() && in getVectorBitmaskConversionCost()
609 unsigned DstScalarBits = DstTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost()
610 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorBitmaskConversionCost()
[all …]
DSystemZTargetTransformInfo.h81 unsigned getVectorTruncCost(Type *SrcTy, Type *DstTy);
82 unsigned getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonTargetTransformInfo.cpp253 unsigned HexagonTTIImpl::getCastInstrCost(unsigned Opcode, Type *DstTy, in getCastInstrCost() argument
255 if (SrcTy->isFPOrFPVectorTy() || DstTy->isFPOrFPVectorTy()) { in getCastInstrCost()
257 unsigned DstN = DstTy->isFPOrFPVectorTy() ? getTypeNumElements(DstTy) : 0; in getCastInstrCost()
260 std::pair<int, MVT> DstLT = TLI.getTypeLegalizationCost(DL, DstTy); in getCastInstrCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp783 static unsigned selectFPConvOpc(unsigned GenericOpc, LLT DstTy, LLT SrcTy) { in selectFPConvOpc() argument
784 if (!DstTy.isScalar() || !SrcTy.isScalar()) in selectFPConvOpc()
787 const unsigned DstSize = DstTy.getSizeInBits(); in selectFPConvOpc()
1305 const LLT DstTy = MRI.getType(I.getOperand(0).getReg()); in earlySelectSHL() local
1306 if (DstTy.isVector()) in earlySelectSHL()
1308 bool Is64Bit = DstTy.getSizeInBits() == 64; in earlySelectSHL()
1546 LLT DstTy = MRI.getType(DstReg); in select() local
1550 if (!DstTy.isVector() || DstTy.getSizeInBits() > 128) { in select()
1557 unsigned NumElts = DstTy.getNumElements(); in select()
1566 unsigned EltSize = DstTy.getElementType().getSizeInBits(); in select()
[all …]
DAArch64TargetTransformInfo.cpp205 bool AArch64TTIImpl::isWideningInstruction(Type *DstTy, unsigned Opcode, in isWideningInstruction() argument
212 DstTy->getVectorNumElements()); in isWideningInstruction()
217 if (!DstTy->isVectorTy() || DstTy->getScalarSizeInBits() < 16) in isWideningInstruction()
247 auto DstTyL = TLI->getTypeLegalizationCost(DL, DstTy); in isWideningInstruction()
249 if (!DstTyL.second.isVector() || DstElTySize != DstTy->getScalarSizeInBits()) in isWideningInstruction()
295 EVT DstTy = TLI->getValueType(DL, Dst); in getCastInstrCost() local
297 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost()
398 DstTy.getSimpleVT(), in getCastInstrCost()
DAArch64RegisterBankInfo.cpp548 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local
552 getFPExtMapping(DstTy.getSizeInBits(), SrcTy.getSizeInBits()), in getInstrMapping()
594 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local
596 unsigned Size = DstTy.getSizeInBits(); in getInstrMapping()
597 bool DstIsGPR = !DstTy.isVector() && DstTy.getSizeInBits() <= 64; in getInstrMapping()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstructions.cpp2463 Type *DstTy = getType(); in isLosslessCast() local
2464 if (SrcTy == DstTy) in isLosslessCast()
2469 return DstTy->isPointerTy(); in isLosslessCast()
2524 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument
2589 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2609 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair()
2615 if (DstTy->isFloatingPointTy()) in isEliminableCastPair()
2632 if (SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace()) in isEliminableCastPair()
2656 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
2672 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
[all …]
DConstants.cpp1846 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, in getPtrToInt() argument
1850 assert(DstTy->isIntOrIntVectorTy() && in getPtrToInt()
1852 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy)); in getPtrToInt()
1854 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&& in getPtrToInt()
1856 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); in getPtrToInt()
1859 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, in getIntToPtr() argument
1863 assert(DstTy->isPtrOrPtrVectorTy() && in getIntToPtr()
1865 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy)); in getIntToPtr()
1867 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&& in getIntToPtr()
1869 return getFoldedCast(Instruction::IntToPtr, C, DstTy, OnlyIfReduced); in getIntToPtr()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp665 const LLT DstTy = Query.Types[0]; in AMDGPULegalizerInfo() local
671 if (MemSize < DstTy.getSizeInBits()) in AMDGPULegalizerInfo()
674 if (DstTy.isVector() && DstTy.getSizeInBits() > MemSize) in AMDGPULegalizerInfo()
756 const LLT DstTy = Query.Types[0]; in AMDGPULegalizerInfo() local
759 const unsigned DstSize = DstTy.getSizeInBits(); in AMDGPULegalizerInfo()
784 const LLT DstTy = Query.Types[0]; in AMDGPULegalizerInfo() local
787 LLT EltTy = DstTy.getElementType(); in AMDGPULegalizerInfo()
792 unsigned NumElts = DstTy.getNumElements(); in AMDGPULegalizerInfo()
809 (EltSize / Align < DstTy.getNumElements())) { in AMDGPULegalizerInfo()
1261 LLT DstTy = MRI.getType(Dst); in legalizeAddrSpaceCast() local
[all …]
DAMDGPURegisterBankInfo.cpp1476 LLT DstTy = MRI.getType(DstReg); in applyMappingImpl() local
1477 if (DstTy != LLT::scalar(1)) in applyMappingImpl()
1563 LLT DstTy = MRI.getType(DstReg); in applyMappingImpl() local
1583 if (DstTy.getSizeInBits() != 64) in applyMappingImpl()
1587 LLT HalfTy = getHalfSizedType(DstTy); in applyMappingImpl()
1644 LLT DstTy = MRI.getType(DstReg); in applyMappingImpl() local
1646 if (DstTy.getSizeInBits() == 1) { in applyMappingImpl()
1664 if (DstTy.getSizeInBits() != 64) in applyMappingImpl()
1667 LLT HalfTy = getHalfSizedType(DstTy); in applyMappingImpl()
1717 LLT DstTy = MRI.getType(DstReg); in applyMappingImpl() local
[all …]
DAMDGPUInstructionSelector.cpp452 LLT DstTy = MRI->getType(DstReg); in selectG_EXTRACT() local
455 const unsigned DstSize = DstTy.getSizeInBits(); in selectG_EXTRACT()
488 LLT DstTy = MRI->getType(DstReg); in selectG_MERGE_VALUES() local
497 const unsigned DstSize = DstTy.getSizeInBits(); in selectG_MERGE_VALUES()
532 LLT DstTy = MRI->getType(DstReg0); in selectG_UNMERGE_VALUES() local
535 const unsigned DstSize = DstTy.getSizeInBits(); in selectG_UNMERGE_VALUES()
1248 const LLT DstTy = MRI->getType(DstReg); in selectG_TRUNC() local
1250 if (!DstTy.isScalar()) in selectG_TRUNC()
1257 if (DstTy == S1) { in selectG_TRUNC()
1267 unsigned DstSize = DstTy.getSizeInBits(); in selectG_TRUNC()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h912 Type *DstTy = I->getType(); in getInstructionLatency() local
922 if (StructType* StructTy = dyn_cast<StructType>(DstTy)) in getInstructionLatency()
923 DstTy = StructTy->getElementType(0); in getInstructionLatency()
927 if (VectorType *VectorTy = dyn_cast<VectorType>(DstTy)) in getInstructionLatency()
928 DstTy = VectorTy->getElementType(); in getInstructionLatency()
929 if (DstTy->isFloatingPointTy()) in getInstructionLatency()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp174 EVT DstTy = TLI->getValueType(DL, Dst); in getCastInstrCost() local
176 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost()
196 LoadConversionTbl, ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT())) in getCastInstrCost()
210 DstTy.getSimpleVT(), SrcTy.getSimpleVT())) in getCastInstrCost()
295 DstTy.getSimpleVT(), in getCastInstrCost()
325 DstTy.getSimpleVT(), in getCastInstrCost()
356 ISD, DstTy.getSimpleVT(), in getCastInstrCost()
381 ISD, DstTy.getSimpleVT(), in getCastInstrCost()
400 DstTy.getSimpleVT(), in getCastInstrCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsLegalizerInfo.cpp276 LLT DstTy = MRI.getType(Dst); in legalizeCustom() local
281 if (DstTy != s32 && DstTy != s64) in legalizeCustom()
300 if (DstTy == s64) in legalizeCustom()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.h463 bool isTruncateFree(Type *SrcTy, Type *DstTy) const override { in isTruncateFree() argument
465 if (!SrcTy->isIntegerTy() || !DstTy->isIntegerTy()) in isTruncateFree()
468 DstTy->getPrimitiveSizeInBits() == 32; in isTruncateFree()

12