/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | MIPatternMatch.h | 242 template <typename SrcTy, unsigned Opcode> struct UnaryOp_match { 243 SrcTy L; 245 UnaryOp_match(const SrcTy &LHS) : L(LHS) {} 258 template <typename SrcTy> 259 inline UnaryOp_match<SrcTy, TargetOpcode::G_ANYEXT> 260 m_GAnyExt(const SrcTy &Src) { 261 return UnaryOp_match<SrcTy, TargetOpcode::G_ANYEXT>(Src); 264 template <typename SrcTy> 265 inline UnaryOp_match<SrcTy, TargetOpcode::G_SEXT> m_GSExt(const SrcTy &Src) { 266 return UnaryOp_match<SrcTy, TargetOpcode::G_SEXT>(Src); [all …]
|
D | LegalizationArtifactCombiner.h | 114 LLT SrcTy = MRI.getType(SrcReg); in tryCombineZExt() local 115 APInt Mask = APInt::getAllOnesValue(SrcTy.getScalarSizeInBits()); in tryCombineZExt() 157 LLT SrcTy = MRI.getType(SrcReg); in tryCombineSExt() local 158 uint64_t SizeInBits = SrcTy.getScalarSizeInBits(); in tryCombineSExt() 444 LLT SrcTy = MRI.getType(SrcReg); in tryCombineExtract() local 450 unsigned MergeSrcSize = SrcTy.getSizeInBits() / NumMergeSrcs; in tryCombineExtract()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64RegisterBankInfo.cpp | 549 LLT SrcTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 552 getFPExtMapping(DstTy.getSizeInBits(), SrcTy.getSizeInBits()), in getInstrMapping() 560 LLT SrcTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 561 if (ShiftAmtTy.getSizeInBits() == 64 && SrcTy.getSizeInBits() == 32) in getInstrMapping() 595 LLT SrcTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 598 bool SrcIsGPR = !SrcTy.isVector() && SrcTy.getSizeInBits() <= 64; in getInstrMapping() 640 LLT SrcTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() local 641 if (!SrcTy.isVector() && SrcTy.getSizeInBits() == 128) in getInstrMapping() 713 LLT SrcTy = MRI.getType(MI.getOperand(2).getReg()); in getInstrMapping() local 714 if (SrcTy.isVector()) { in getInstrMapping() [all …]
|
D | AArch64LegalizerInfo.cpp | 122 const auto &SrcTy = Query.Types[0]; in AArch64LegalizerInfo() local 124 return !SrcTy.isVector() && SrcTy.getSizeInBits() == 32 && in AArch64LegalizerInfo() 326 const LLT &SrcTy = Query.Types[1]; in AArch64LegalizerInfo() local 327 return Ty.isVector() && !SrcTy.getElementType().isPointer() && in AArch64LegalizerInfo() 328 Ty.getElementType() != SrcTy.getElementType(); in AArch64LegalizerInfo() 357 const LLT &SrcTy = Query.Types[1]; in AArch64LegalizerInfo() local 360 if (SrcTy == s1) in AArch64LegalizerInfo() 366 unsigned SrcSize = SrcTy.getSizeInBits(); in AArch64LegalizerInfo() 585 const LLT &SrcTy = Query.Types[1]; in AArch64LegalizerInfo() local 588 if (DstTy != SrcTy) in AArch64LegalizerInfo()
|
D | AArch64InstructionSelector.cpp | 783 static unsigned selectFPConvOpc(unsigned GenericOpc, LLT DstTy, LLT SrcTy) { in selectFPConvOpc() argument 784 if (!DstTy.isScalar() || !SrcTy.isScalar()) in selectFPConvOpc() 788 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectFPConvOpc() 1065 static Optional<int64_t> getVectorSHLImm(LLT SrcTy, Register Reg, MachineRegisterInfo &MRI) { in getVectorSHLImm() argument 1073 switch (SrcTy.getElementType().getSizeInBits()) { in getVectorSHLImm() 1268 const LLT SrcTy = MRI.getType(SrcReg); in preISelLower() local 1269 if (SrcTy.isVector()) in preISelLower() 1272 if (SrcTy.getSizeInBits() != 32 || ShiftTy.getSizeInBits() != 64) in preISelLower() 1279 auto Trunc = MIB.buildInstr(TargetOpcode::COPY, {SrcTy}, {}) in preISelLower() 1678 LLT SrcTy = MRI.getType(SrcReg); in select() local [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 2462 Type *SrcTy = getOperand(0)->getType(); in isLosslessCast() local 2464 if (SrcTy == DstTy) in isLosslessCast() 2468 if (SrcTy->isPointerTy()) in isLosslessCast() 2482 Type *SrcTy, in isNoopCast() argument 2502 return DL.getIntPtrType(SrcTy)->getScalarSizeInBits() == in isNoopCast() 2506 SrcTy->getScalarSizeInBits(); in isNoopCast() 2524 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument 2588 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair() 2609 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair() 2621 if (SrcTy->isIntegerTy()) in isEliminableCastPair() [all …]
|
D | Verifier.cpp | 2570 Type *SrcTy = I.getOperand(0)->getType(); in visitTruncInst() local 2574 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst() 2577 Assert(SrcTy->isIntOrIntVectorTy(), "Trunc only operates on integer", &I); in visitTruncInst() 2579 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst() 2588 Type *SrcTy = I.getOperand(0)->getType(); in visitZExtInst() local 2592 Assert(SrcTy->isIntOrIntVectorTy(), "ZExt only operates on integer", &I); in visitZExtInst() 2594 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst() 2596 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst() 2606 Type *SrcTy = I.getOperand(0)->getType(); in visitSExtInst() local 2610 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 235 Type *SrcTy = CI1->getSrcTy(); in isEliminableCastPair() local 242 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr; in isEliminableCastPair() 247 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair() 253 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) || in isEliminableCastPair() 581 Type *SrcTy = Trunc.getSrcTy(); in narrowBinOp() local 583 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy)) in narrowBinOp() 690 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc() local 696 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) && in visitTrunc() 732 Value *And = Builder.CreateAnd(Src, ConstantInt::get(SrcTy, 1)); in visitTrunc() 742 APInt MaskC = APInt(SrcTy->getScalarSizeInBits(), 1).shl(*C); in visitTrunc() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Linker/ |
D | IRMover.cpp | 56 void addTypeMapping(Type *DstTy, Type *SrcTy); 64 Type *get(Type *SrcTy); 65 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited); 74 Type *remapType(Type *SrcTy) override { return get(SrcTy); } in remapType() argument 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() 120 Type *&Entry = MappedTypes[SrcTy]; in areTypesIsomorphic() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | GISelKnownBits.cpp | 351 LLT SrcTy = MRI.getType(SrcReg); in computeKnownBitsImpl() local 352 unsigned SrcBitWidth = SrcTy.isPointer() in computeKnownBitsImpl() 353 ? DL.getIndexSizeInBits(SrcTy.getAddressSpace()) in computeKnownBitsImpl() 354 : SrcTy.getSizeInBits(); in computeKnownBitsImpl() 413 LLT SrcTy = MRI.getType(Src); in computeNumSignBits() local 414 unsigned Tmp = DstTy.getScalarSizeInBits() - SrcTy.getScalarSizeInBits(); in computeNumSignBits() 419 LLT SrcTy = MRI.getType(Src); in computeNumSignBits() local 423 unsigned NumSrcBits = SrcTy.getScalarSizeInBits(); in computeNumSignBits()
|
D | LegalizerHelper.cpp | 665 LLT SrcTy = MRI.getType(SrcReg); in narrowScalar() local 669 if ((SrcTy.getSizeInBits() != SizeOp0 / 2) || in narrowScalar() 670 SrcTy.getSizeInBits() != NarrowTy.getSizeInBits()) { in narrowScalar() 687 LLT SrcTy = MRI.getType(MI.getOperand(1).getReg()); in narrowScalar() local 688 uint64_t SizeOp1 = SrcTy.getSizeInBits(); in narrowScalar() 694 Register ZeroReg = MIRBuilder.buildConstant(SrcTy, 0).getReg(0); in narrowScalar() 842 LLT SrcTy = MRI.getType(SrcReg); in narrowScalar() local 843 if (SrcTy.isVector()) in narrowScalar() 848 unsigned LeftoverBits = SrcTy.getSizeInBits() - HandledSize; in narrowScalar() 849 if (SrcTy.isVector() && LeftoverBits != 0) in narrowScalar() [all …]
|
D | MachineIRBuilder.cpp | 484 LLT SrcTy = Src.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() 505 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildExtract() local 509 assert(SrcTy.isValid() && "invalid operand type"); in buildExtract() 511 assert(Index + DstTy.getSizeInBits() <= SrcTy.getSizeInBits() && in buildExtract() 515 if (DstTy.getSizeInBits() == SrcTy.getSizeInBits()) { in buildExtract() 910 void MachineIRBuilder::validateTruncExt(const LLT &DstTy, const LLT &SrcTy, in validateTruncExt() argument [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
D | IceInstARM32.cpp | 162 Type SrcTy = Instr->getSrc(0)->getType(); in emitUnaryopGPR() local 165 Str << getWidthString(SrcTy); in emitUnaryopGPR() 176 Type SrcTy = Instr->getSrc(0)->getType(); in emitUnaryopFP() local 180 Str << getFpWidthString(SrcTy); in emitUnaryopFP() 183 Str << getSVecWidthString(SrcTy); in emitUnaryopFP() 186 Str << getUVecWidthString(SrcTy); in emitUnaryopFP() 705 const Type SrcTy = getSrc(0)->getType(); in emitIAS() local 706 switch (SrcTy) { in emitIAS() 709 typeStdString(SrcTy)); in emitIAS() 716 Asm->vceqqi(typeElementType(SrcTy), Dest, getSrc(0), getSrc(1)); in emitIAS() [all …]
|
D | IceInstX8632.cpp | 846 Type SrcTy, const Operand *Src, in emitIASCastRegOp() argument 855 (Asm->*(Emitter.RegReg))(DestTy, DestReg, SrcTy, SrcReg); in emitIASCastRegOp() 858 (Asm->*(Emitter.RegAddr))(DestTy, DestReg, SrcTy, SrcStackAddr); in emitIASCastRegOp() 862 (Asm->*(Emitter.RegAddr))(DestTy, DestReg, SrcTy, in emitIASCastRegOp() 942 Type SrcTy = this->getSrc(0)->getType(); in emit() local 943 assert(isVectorType(SrcTy)); in emit() 944 switch (SrcTy) { in emit() 971 const Type SrcTy = Src->getType(); in emitIAS() local 972 assert(isVectorType(SrcTy)); in emitIAS() 977 Asm->movmsk(SrcTy, DestReg, SrcReg); in emitIAS() [all …]
|
D | IceInstX8664.cpp | 838 Type SrcTy, const Operand *Src, in emitIASCastRegOp() argument 847 (Asm->*(Emitter.RegReg))(DestTy, DestReg, SrcTy, SrcReg); in emitIASCastRegOp() 850 (Asm->*(Emitter.RegAddr))(DestTy, DestReg, SrcTy, SrcStackAddr); in emitIASCastRegOp() 854 (Asm->*(Emitter.RegAddr))(DestTy, DestReg, SrcTy, in emitIASCastRegOp() 934 Type SrcTy = this->getSrc(0)->getType(); in emit() local 935 assert(isVectorType(SrcTy)); in emit() 936 switch (SrcTy) { in emit() 963 const Type SrcTy = Src->getType(); in emitIAS() local 964 assert(isVectorType(SrcTy)); in emitIAS() 969 Asm->movmsk(SrcTy, DestReg, SrcReg); in emitIAS() [all …]
|
D | IceAssemblerX8664.cpp | 349 void AssemblerX8664::movzx(Type SrcTy, GPRRegister dst, GPRRegister src) { in movzx() argument 350 if (SrcTy == IceType_i32) { in movzx() 358 bool ByteSized = isByteSizedType(SrcTy); in movzx() 359 assert(ByteSized || SrcTy == IceType_i16); in movzx() 360 emitRexRB(RexTypeIrrelevant, dst, SrcTy, src); in movzx() 366 void AssemblerX8664::movzx(Type SrcTy, GPRRegister dst, const AsmAddress &src) { in movzx() argument 367 if (SrcTy == IceType_i32) { in movzx() 375 bool ByteSized = isByteSizedType(SrcTy); in movzx() 376 assert(ByteSized || SrcTy == IceType_i16); in movzx() 377 emitRex(SrcTy, src, RexTypeIrrelevant, dst); in movzx() [all …]
|
D | IceAssemblerX8632.cpp | 348 void AssemblerX8632::movzx(Type SrcTy, GPRRegister dst, GPRRegister src) { in movzx() argument 350 bool ByteSized = isByteSizedType(SrcTy); in movzx() 351 assert(ByteSized || SrcTy == IceType_i16); in movzx() 357 void AssemblerX8632::movzx(Type SrcTy, GPRRegister dst, const AsmAddress &src) { in movzx() argument 359 bool ByteSized = isByteSizedType(SrcTy); in movzx() 360 assert(ByteSized || SrcTy == IceType_i16); in movzx() 366 void AssemblerX8632::movsx(Type SrcTy, GPRRegister dst, GPRRegister src) { in movsx() argument 368 bool ByteSized = isByteSizedType(SrcTy); in movsx() 369 assert(ByteSized || SrcTy == IceType_i16); in movsx() 375 void AssemblerX8632::movsx(Type SrcTy, GPRRegister dst, const AsmAddress &src) { in movsx() argument [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86InstructionSelector.cpp | 716 const LLT SrcTy = MRI.getType(SrcReg); in selectTruncOrPtrToInt() local 728 const TargetRegisterClass *SrcRC = getRegClass(SrcTy, SrcRB); in selectTruncOrPtrToInt() 780 const LLT SrcTy = MRI.getType(SrcReg); 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() 788 LLT SrcTy; in selectZext() member 801 [SrcTy, DstTy](const ZextEntry &El) { in selectZext() 802 return El.DstTy == DstTy && El.SrcTy == SrcTy; in selectZext() 810 const TargetRegisterClass *SrcRC = getRegClass(SrcTy, SrcRB); in selectZext() 846 if (SrcTy != LLT::scalar(1)) in selectZext() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineVerifier.cpp | 1056 LLT SrcTy = MRI->getType(MI->getOperand(1).getReg()); in verifyPreISelGenericInstruction() local 1057 if (!DstTy.isValid() || !SrcTy.isValid()) in verifyPreISelGenericInstruction() 1060 if (SrcTy.isPointer() != DstTy.isPointer()) in verifyPreISelGenericInstruction() 1063 if (SrcTy.getSizeInBits() != DstTy.getSizeInBits()) in verifyPreISelGenericInstruction() 1071 LLT SrcTy = MRI->getType(MI->getOperand(1).getReg()); in verifyPreISelGenericInstruction() local 1072 if (!DstTy.isValid() || !SrcTy.isValid()) in verifyPreISelGenericInstruction() 1075 verifyVectorElementMatch(DstTy, SrcTy, MI); in verifyPreISelGenericInstruction() 1078 SrcTy = SrcTy.getScalarType(); in verifyPreISelGenericInstruction() 1083 if (SrcTy.isPointer()) in verifyPreISelGenericInstruction() 1086 if (!SrcTy.isPointer()) in verifyPreISelGenericInstruction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 563 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() 572 unsigned NumParts = getNumVectorRegs(SrcTy); in getVectorTruncCost() 582 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorTruncCost() 583 unsigned VF = SrcTy->getVectorNumElements(); in getVectorTruncCost() 593 if (VF == 8 && SrcTy->getScalarSizeInBits() == 64 && in getVectorTruncCost() 603 getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy) { in getVectorBitmaskConversionCost() argument 604 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() && in getVectorBitmaskConversionCost() [all …]
|
D | SystemZTargetTransformInfo.h | 81 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/ |
D | HexagonTargetTransformInfo.cpp | 254 Type *SrcTy, const Instruction *I) { in getCastInstrCost() argument 255 if (SrcTy->isFPOrFPVectorTy() || DstTy->isFPOrFPVectorTy()) { in getCastInstrCost() 256 unsigned SrcN = SrcTy->isFPOrFPVectorTy() ? getTypeNumElements(SrcTy) : 0; in getCastInstrCost() 259 std::pair<int, MVT> SrcLT = TLI.getTypeLegalizationCost(DL, SrcTy); in getCastInstrCost()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 1273 Type *SrcTy = SrcVal->getType(); in executeTruncInst() local 1274 if (SrcTy->isVectorTy()) { in executeTruncInst() 1292 Type *SrcTy = SrcVal->getType(); in executeSExtInst() local 1294 if (SrcTy->isVectorTy()) { in executeSExtInst() 1312 Type *SrcTy = SrcVal->getType(); in executeZExtInst() local 1314 if (SrcTy->isVectorTy()) { in executeZExtInst() 1378 Type *SrcTy = SrcVal->getType(); in executeFPToUIInst() local 1381 if (SrcTy->getTypeID() == Type::VectorTyID) { in executeFPToUIInst() 1383 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst() 1402 assert(SrcTy->isFloatingPointTy() && "Invalid FPToUI instruction"); in executeFPToUIInst() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMTargetTransformInfo.cpp | 173 EVT SrcTy = TLI->getValueType(DL, Src); in getCastInstrCost() local 176 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 196 LoadConversionTbl, ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT())) in getCastInstrCost() 207 if (SrcTy.isVector() && ST->hasMVEIntegerOps()) { in getCastInstrCost() 210 DstTy.getSimpleVT(), SrcTy.getSimpleVT())) in getCastInstrCost() 293 if (SrcTy.isVector() && ST->hasNEON()) { in getCastInstrCost() 296 SrcTy.getSimpleVT())) in getCastInstrCost() 323 if (SrcTy.isFloatingPoint() && ST->hasNEON()) { in getCastInstrCost() 326 SrcTy.getSimpleVT())) in getCastInstrCost() 354 if (SrcTy.isInteger() && ST->hasNEON()) { in getCastInstrCost() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | MergeFunctions.cpp | 486 Type *SrcTy = V->getType(); in createCast() local 487 if (SrcTy->isStructTy()) { in createCast() 489 assert(SrcTy->getStructNumElements() == DestTy->getStructNumElements()); in createCast() 491 for (unsigned int I = 0, E = SrcTy->getStructNumElements(); I < E; ++I) { in createCast() 502 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) in createCast() 504 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) in createCast()
|