/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 46 void DecodeInsertElementMask(unsigned NumElts, unsigned Idx, unsigned Len, in DecodeInsertElementMask() argument 48 assert((Idx + Len) <= NumElts && "Insertion out of range"); in DecodeInsertElementMask() 50 for (unsigned i = 0; i != NumElts; ++i) in DecodeInsertElementMask() 53 ShuffleMask[Idx + i] = NumElts + i; in DecodeInsertElementMask() 74 void DecodeMOVSLDUPMask(unsigned NumElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVSLDUPMask() argument 75 for (int i = 0, e = NumElts / 2; i < e; ++i) { in DecodeMOVSLDUPMask() 81 void DecodeMOVSHDUPMask(unsigned NumElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVSHDUPMask() argument 82 for (int i = 0, e = NumElts / 2; i < e; ++i) { in DecodeMOVSHDUPMask() 88 void DecodeMOVDDUPMask(unsigned NumElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVDDUPMask() argument 91 for (unsigned l = 0; l < NumElts; l += NumLaneElts) in DecodeMOVDDUPMask() [all …]
|
D | X86ShuffleDecode.h | 34 void DecodeInsertElementMask(unsigned NumElts, unsigned Idx, unsigned Len, 45 void DecodeMOVSLDUPMask(unsigned NumElts, SmallVectorImpl<int> &ShuffleMask); 47 void DecodeMOVSHDUPMask(unsigned NumElts, SmallVectorImpl<int> &ShuffleMask); 49 void DecodeMOVDDUPMask(unsigned NumElts, SmallVectorImpl<int> &ShuffleMask); 51 void DecodePSLLDQMask(unsigned NumElts, unsigned Imm, 54 void DecodePSRLDQMask(unsigned NumElts, unsigned Imm, 57 void DecodePALIGNRMask(unsigned NumElts, unsigned Imm, 60 void DecodeVALIGNMask(unsigned NumElts, unsigned Imm, 66 void DecodePSHUFMask(unsigned NumElts, unsigned ScalarBits, unsigned Imm, 72 void DecodePSHUFHWMask(unsigned NumElts, unsigned Imm, [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 126 unsigned NumElts = Width / 8; in DecodePSHUFBMask() local 127 assert((NumElts == 16 || NumElts == 32 || NumElts == 64) && in DecodePSHUFBMask() 130 for (unsigned i = 0; i != NumElts; ++i) { in DecodePSHUFBMask() 165 unsigned NumElts = Width / ElSize; in DecodeVPERMILPMask() local 167 assert((NumElts == 2 || NumElts == 4 || NumElts == 8 || NumElts == 16) && in DecodeVPERMILPMask() 170 for (unsigned i = 0; i != NumElts; ++i) { in DecodeVPERMILPMask() 202 unsigned NumElts = Width / ElSize; in DecodeVPERMIL2PMask() local 204 assert((NumElts == 2 || NumElts == 4 || NumElts == 8) && in DecodeVPERMIL2PMask() 207 for (unsigned i = 0; i != NumElts; ++i) { in DecodeVPERMIL2PMask() 238 Index += Src * NumElts; in DecodeVPERMIL2PMask() [all …]
|
D | X86MCInstLower.cpp | 2590 int NumElts; in EmitInstruction() local 2593 case X86::MOVDDUPrm: NumElts = 2; break; in EmitInstruction() 2594 case X86::VMOVDDUPrm: NumElts = 2; break; in EmitInstruction() 2595 case X86::VMOVDDUPZ128rm: NumElts = 2; break; in EmitInstruction() 2596 case X86::VBROADCASTSSrm: NumElts = 4; break; in EmitInstruction() 2597 case X86::VBROADCASTSSYrm: NumElts = 8; break; in EmitInstruction() 2598 case X86::VBROADCASTSSZ128m: NumElts = 4; break; in EmitInstruction() 2599 case X86::VBROADCASTSSZ256m: NumElts = 8; break; in EmitInstruction() 2600 case X86::VBROADCASTSSZm: NumElts = 16; break; in EmitInstruction() 2601 case X86::VBROADCASTSDYrm: NumElts = 4; break; in EmitInstruction() [all …]
|
D | X86ISelLowering.cpp | 2171 const unsigned NumElts = VT.getVectorNumElements(); in getSetCCResultType() local 2180 return EVT::getVectorVT(Context, MVT::i1, NumElts); in getSetCCResultType() 2188 return EVT::getVectorVT(Context, MVT::i1, NumElts); in getSetCCResultType() 4985 unsigned NumElts = std::min(DataVT.getVectorNumElements(), in getTgtMemIntrinsic() local 4987 Info.memVT = MVT::getVectorVT(DataVT.getVectorElementType(), NumElts); in getTgtMemIntrinsic() 4997 unsigned NumElts = std::min(DataVT.getVectorNumElements(), in getTgtMemIntrinsic() local 4999 Info.memVT = MVT::getVectorVT(DataVT.getVectorElementType(), NumElts); in getTgtMemIntrinsic() 5356 unsigned NumElts = Mask.size(); in isUndefLowerHalf() local 5357 return isUndefInRange(Mask, 0, NumElts / 2); in isUndefLowerHalf() 5362 unsigned NumElts = Mask.size(); in isUndefUpperHalf() local [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitstream/Reader/ |
D | BitstreamReader.cpp | 102 unsigned NumElts = MaybeVBR.get(); in skipRecord() local 103 for (unsigned i = 0; i != NumElts; ++i) in skipRecord() 146 unsigned NumElts = MaybeNum.get(); in skipRecord() local 160 NumElts * EltEnc.getEncodingData())) in skipRecord() 165 for (; NumElts; --NumElts) in skipRecord() 173 if (Error Err = JumpToBit(GetCurrentBitNo() + NumElts * 6)) in skipRecord() 185 unsigned NumElts = MaybeNum.get(); in skipRecord() local 189 size_t NewEnd = GetCurrentBitNo()+((NumElts+3)&~3)*8; in skipRecord() 216 uint32_t NumElts = MaybeNumElts.get(); in readRecord() local 218 for (unsigned i = 0; i != NumElts; ++i) in readRecord() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 895 unsigned NumElts = ResultTy->getVectorNumElements() * 8; in UpgradeX86PSLLDQIntrinsics() local 898 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSLLDQIntrinsics() 909 for (unsigned l = 0; l != NumElts; l += 16) in UpgradeX86PSLLDQIntrinsics() 911 unsigned Idx = NumElts + i - Shift; in UpgradeX86PSLLDQIntrinsics() 912 if (Idx < NumElts) in UpgradeX86PSLLDQIntrinsics() 913 Idx -= NumElts - 16; // end of lane, switch operand. in UpgradeX86PSLLDQIntrinsics() 917 Res = Builder.CreateShuffleVector(Res, Op, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSLLDQIntrinsics() 929 unsigned NumElts = ResultTy->getVectorNumElements() * 8; in UpgradeX86PSRLDQIntrinsics() local 932 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSRLDQIntrinsics() 943 for (unsigned l = 0; l != NumElts; l += 16) in UpgradeX86PSRLDQIntrinsics() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 178 unsigned NumElts = Ext.getVectorOperandType()->getNumElements(); in foldBitcastExtElt() local 179 if (NumSrcElts == NumElts) in foldBitcastExtElt() 185 if (NumSrcElts < NumElts) { in foldBitcastExtElt() 196 unsigned NarrowingRatio = NumElts / NumSrcElts; in foldBitcastExtElt() 330 unsigned NumElts = EI.getVectorOperandType()->getNumElements(); in visitExtractElementInst() local 333 if (!IndexC->getValue().ule(NumElts)) in visitExtractElementInst() 337 if (NumElts != 1) { in visitExtractElementInst() 341 APInt UndefElts(NumElts, 0); in visitExtractElementInst() 342 APInt DemandedElts(NumElts, 0); in visitExtractElementInst() 354 APInt UndefElts(NumElts, 0); in visitExtractElementInst() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypesGeneric.cpp | 342 unsigned NumElts = 2; in ExpandOp_BITCAST() local 346 NumElts); in ExpandOp_BITCAST() 350 NumElts = N->getValueType(0).getVectorNumElements(); in ExpandOp_BITCAST() 355 IntegerToVector(N->getOperand(0), NumElts, Ops, NVT.getVectorElementType()); in ExpandOp_BITCAST() 358 DAG.getBuildVector(NVT, dl, makeArrayRef(Ops.data(), NumElts)); in ExpandOp_BITCAST() 369 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_BUILD_VECTOR() local 380 NewElts.reserve(NumElts*2); in ExpandOp_BUILD_VECTOR() 382 for (unsigned i = 0; i < NumElts; ++i) { in ExpandOp_BUILD_VECTOR() 407 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_INSERT_VECTOR_ELT() local 419 EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewEVT, NumElts*2); in ExpandOp_INSERT_VECTOR_ELT() [all …]
|
D | LegalizeVectorTypes.cpp | 2976 unsigned NumElts = VT.getVectorNumElements(); in WidenVecRes_BinaryCanTrap() local 2978 while (!TLI.isTypeLegal(VT) && NumElts != 1) { in WidenVecRes_BinaryCanTrap() 2979 NumElts = NumElts / 2; in WidenVecRes_BinaryCanTrap() 2980 VT = EVT::getVectorVT(*DAG.getContext(), WidenEltVT, NumElts); in WidenVecRes_BinaryCanTrap() 2983 if (NumElts != 1 && !TLI.canOpTrap(N->getOpcode(), VT)) { in WidenVecRes_BinaryCanTrap() 2991 if (NumElts == 1) in WidenVecRes_BinaryCanTrap() 3010 while (CurNumElts >= NumElts) { in WidenVecRes_BinaryCanTrap() 3018 Idx += NumElts; in WidenVecRes_BinaryCanTrap() 3019 CurNumElts -= NumElts; in WidenVecRes_BinaryCanTrap() 3022 NumElts = NumElts / 2; in WidenVecRes_BinaryCanTrap() [all …]
|
D | TargetLowering.cpp | 625 unsigned NumElts = DemandedElts.getBitWidth(); in SimplifyMultipleUseDemandedBits() local 652 for (unsigned j = 0; j != NumElts; ++j) in SimplifyMultipleUseDemandedBits() 670 for (unsigned i = 0; i != NumElts; ++i) in SimplifyMultipleUseDemandedBits() 766 for (unsigned i = 0; i != NumElts; ++i) { in SimplifyMultipleUseDemandedBits() 772 IdentityRHS &= ((M - NumElts) == i); in SimplifyMultipleUseDemandedBits() 808 unsigned NumElts = OriginalDemandedElts.getBitWidth(); in SimplifyDemandedBits() local 810 NumElts == Op.getValueType().getVectorNumElements()) && in SimplifyDemandedBits() 844 DemandedElts = APInt::getAllOnesValue(NumElts); in SimplifyDemandedBits() 933 if (Idx.ule(NumElts - NumSubElts)) { in SimplifyDemandedBits() 966 if (SubIdx && SubIdx->getAPIntValue().ule(NumSrcElts - NumElts)) { in SimplifyDemandedBits() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86IntelInstPrinter.cpp | 162 unsigned NumElts; in printVecCompareInstr() local 164 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 8 : 16; in printVecCompareInstr() 166 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 4 : 8; in printVecCompareInstr() 168 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 2 : 4; in printVecCompareInstr() 169 OS << "{1to" << NumElts << "}"; in printVecCompareInstr() 302 unsigned NumElts; in printVecCompareInstr() local 304 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 8 : 16; in printVecCompareInstr() 306 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 4 : 8; in printVecCompareInstr() 308 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 2 : 4; in printVecCompareInstr() 309 OS << "{1to" << NumElts << "}"; in printVecCompareInstr()
|
D | X86ATTInstPrinter.cpp | 172 unsigned NumElts; in printVecCompareInstr() local 174 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 8 : 16; in printVecCompareInstr() 176 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 4 : 8; in printVecCompareInstr() 178 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 2 : 4; in printVecCompareInstr() 179 OS << "{1to" << NumElts << "}"; in printVecCompareInstr() 314 unsigned NumElts; in printVecCompareInstr() local 316 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 8 : 16; in printVecCompareInstr() 318 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 4 : 8; in printVecCompareInstr() 320 NumElts = (Desc.TSFlags & X86II::VEX_W) ? 2 : 4; in printVecCompareInstr() 321 OS << "{1to" << NumElts << "}"; in printVecCompareInstr()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 847 unsigned NumElts = VT.getVectorNumElements(); in getTypeConversion() local 851 if (NumElts == 1) in getTypeConversion() 861 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion() 862 EVT NVT = EVT::getVectorVT(Context, EltVT, NumElts); in getTypeConversion() 873 EVT::getVectorVT(Context, EltVT, NumElts / 2)); in getTypeConversion() 894 MVT NVT = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion() 898 EVT::getVectorVT(Context, EltVT, NumElts)); in getTypeConversion() 910 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion() 917 MVT LargerVector = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion() 942 unsigned NumElts = VT.getVectorNumElements(); in getVectorTypeBreakdownMVT() local [all …]
|
D | InterleavedAccessPass.cpp | 197 unsigned NumElts = Mask.size(); in isReInterleaveMask() local 198 if (NumElts < 4) in isReInterleaveMask() 203 if (NumElts % Factor) in isReInterleaveMask() 206 unsigned LaneLen = NumElts / Factor; in isReInterleaveMask()
|
D | HardwareLoops.cpp | 179 PHINode *InsertPHICounter(Value *NumElts, Value *EltsRem); 489 PHINode* HardwareLoop::InsertPHICounter(Value *NumElts, Value *EltsRem) { in InsertPHICounter() argument 494 PHINode *Index = Builder.CreatePHI(NumElts->getType(), 2); in InsertPHICounter() 495 Index->addIncoming(NumElts, Preheader); in InsertPHICounter()
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/ |
D | NaClBitstreamReader.cpp | 115 unsigned NumElts = ReadVBR(6); in skipRecord() local 116 for (unsigned i = 0; i != NumElts; ++i) in skipRecord() 134 unsigned NumElts = ReadVBR(6); in skipRecord() local 140 for (; NumElts; --NumElts) in skipRecord() 204 unsigned NumElts = ReadVBR(6); in readRecord() local 205 for (unsigned i = 0; i != NumElts; ++i) in readRecord()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | DerivedTypes.h | 410 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType() local 411 assert ((NumElts & 1) == 0 && in getHalfElementsVectorType() 413 return VectorType::get(VTy->getElementType(), NumElts/2); in getHalfElementsVectorType() 419 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType() local 420 return VectorType::get(VTy->getElementType(), NumElts*2); in getDoubleElementsVectorType()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ |
D | TargetLoweringObjectFile.cpp | 96 unsigned NumElts = CDS->getNumElements(); in IsNullTerminatedString() local 97 assert(NumElts != 0 && "Can't have an empty CDS"); in IsNullTerminatedString() 99 if (CDS->getElementAsInteger(NumElts-1) != 0) in IsNullTerminatedString() 103 for (unsigned i = 0; i != NumElts-1; ++i) in IsNullTerminatedString()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | PoisonChecking.cpp | 201 unsigned NumElts = Vec->getType()->getVectorNumElements(); in generatePoisonChecks() local 204 ConstantInt::get(Idx->getType(), NumElts)); in generatePoisonChecks() 213 unsigned NumElts = Vec->getType()->getVectorNumElements(); in generatePoisonChecks() local 216 ConstantInt::get(Idx->getType(), NumElts)); in generatePoisonChecks()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXISelLowering.cpp | 202 unsigned NumElts = VT.getVectorNumElements(); in ComputePTXValueVTs() local 207 if (EltVT == MVT::f16 && NumElts % 2 == 0) { in ComputePTXValueVTs() 209 NumElts /= 2; in ComputePTXValueVTs() 211 for (unsigned j = 0; j != NumElts; ++j) { in ComputePTXValueVTs() 253 unsigned NumElts = AccessSize / EltSize; in CanMergeParamLoadStoresStartingAt() local 255 if (AccessSize != EltSize * NumElts) in CanMergeParamLoadStoresStartingAt() 259 if (Idx + NumElts > ValueVTs.size()) in CanMergeParamLoadStoresStartingAt() 263 if (NumElts != 4 && NumElts != 2) in CanMergeParamLoadStoresStartingAt() 266 for (unsigned j = Idx + 1; j < Idx + NumElts; ++j) { in CanMergeParamLoadStoresStartingAt() 276 return NumElts; in CanMergeParamLoadStoresStartingAt() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 6018 unsigned NumElts = VT.is64BitVector() ? 8 : 16; in LowerCTPOP() local 6026 NumElts /= 2; in LowerCTPOP() 6027 MVT WidenVT = MVT::getVectorVT(MVT::getIntegerVT(EltSize), NumElts); in LowerCTPOP() 6678 unsigned NumElts = VT.getVectorNumElements(); in isSingletonVEXTMask() local 6690 for (unsigned i = 1; i < NumElts; ++i) { in isSingletonVEXTMask() 6694 if (ExpectedElt == NumElts) in isSingletonVEXTMask() 6707 unsigned NumElts = VT.getVectorNumElements(); in isVEXTMask() local 6720 for (unsigned i = 1; i < NumElts; ++i) { in isVEXTMask() 6724 if (ExpectedElt == NumElts * 2) { in isVEXTMask() 6736 Imm -= NumElts; in isVEXTMask() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | SmallString.h | 45 void assign(size_t NumElts, char Elt) { in assign() argument 46 this->SmallVectorImpl<char>::assign(NumElts, Elt); in assign()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | SmallString.h | 46 void assign(size_t NumElts, char Elt) { in assign() argument 47 this->SmallVectorImpl<char>::assign(NumElts, Elt); in assign()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 692 unsigned NumElts = VecTy->getVectorNumElements(); in getInterleavedMemoryOpCost() local 693 auto *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor); in getInterleavedMemoryOpCost() 698 if (NumElts % Factor == 0 && in getInterleavedMemoryOpCost() 807 unsigned NumElts = Inst->getNumArgOperands() - 1; in getOrCreateResultFromMemIntrinsic() local 808 if (ST->getNumElements() != NumElts) in getOrCreateResultFromMemIntrinsic() 810 for (unsigned i = 0, e = NumElts; i != e; ++i) { in getOrCreateResultFromMemIntrinsic() 816 for (unsigned i = 0, e = NumElts; i != e; ++i) { in getOrCreateResultFromMemIntrinsic()
|