/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 47 void DecodeInsertElementMask(unsigned NumElts, unsigned Idx, unsigned Len, in DecodeInsertElementMask() argument 49 assert((Idx + Len) <= NumElts && "Insertion out of range"); in DecodeInsertElementMask() 51 for (unsigned i = 0; i != NumElts; ++i) in DecodeInsertElementMask() 54 ShuffleMask[Idx + i] = NumElts + i; in DecodeInsertElementMask() 75 void DecodeMOVSLDUPMask(unsigned NumElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVSLDUPMask() argument 76 for (int i = 0, e = NumElts / 2; i < e; ++i) { in DecodeMOVSLDUPMask() 82 void DecodeMOVSHDUPMask(unsigned NumElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVSHDUPMask() argument 83 for (int i = 0, e = NumElts / 2; i < e; ++i) { in DecodeMOVSHDUPMask() 89 void DecodeMOVDDUPMask(unsigned NumElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVDDUPMask() argument 92 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 …]
|
/external/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 50 unsigned NumElts = VT.getVectorNumElements(); in DecodeInsertElementMask() local 51 assert((Idx + Len) <= NumElts && "Insertion out of range"); in DecodeInsertElementMask() 53 for (unsigned i = 0; i != NumElts; ++i) in DecodeInsertElementMask() 56 ShuffleMask[Idx + i] = NumElts + i; in DecodeInsertElementMask() 78 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVSLDUPMask() local 79 for (int i = 0, e = NumElts / 2; i < e; ++i) { in DecodeMOVSLDUPMask() 86 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVSHDUPMask() local 87 for (int i = 0, e = NumElts / 2; i < e; ++i) { in DecodeMOVSHDUPMask() 96 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVDDUPMask() local 98 unsigned NumLaneElts = NumElts / NumLanes; in DecodeMOVDDUPMask() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 128 unsigned NumElts = RawMask.size(); in DecodePSHUFBMask() local 129 assert((NumElts == 16 || NumElts == 32 || NumElts == 64) && in DecodePSHUFBMask() 132 for (unsigned i = 0; i != NumElts; ++i) { in DecodePSHUFBMask() 169 unsigned NumElts = RawMask.size(); in DecodeVPERMILPMask() local 171 assert((NumElts == 2 || NumElts == 4 || NumElts == 8 || NumElts == 16) && in DecodeVPERMILPMask() 174 for (unsigned i = 0; i != NumElts; ++i) { in DecodeVPERMILPMask() 204 unsigned NumElts = RawMask.size(); in DecodeVPERMIL2PMask() local 206 assert((NumElts == 2 || NumElts == 4 || NumElts == 8) && in DecodeVPERMIL2PMask() 209 for (unsigned i = 0; i != NumElts; ++i) { in DecodeVPERMIL2PMask() 240 Index += Src * NumElts; in DecodeVPERMIL2PMask() [all …]
|
D | X86MCInstLower.cpp | 2191 int NumElts; in EmitInstruction() local 2194 case X86::VBROADCASTSSrm: NumElts = 4; break; in EmitInstruction() 2195 case X86::VBROADCASTSSYrm: NumElts = 8; break; in EmitInstruction() 2196 case X86::VBROADCASTSSZ128m: NumElts = 4; break; in EmitInstruction() 2197 case X86::VBROADCASTSSZ256m: NumElts = 8; break; in EmitInstruction() 2198 case X86::VBROADCASTSSZm: NumElts = 16; break; in EmitInstruction() 2199 case X86::VBROADCASTSDYrm: NumElts = 4; break; in EmitInstruction() 2200 case X86::VBROADCASTSDZ256m: NumElts = 4; break; in EmitInstruction() 2201 case X86::VBROADCASTSDZm: NumElts = 8; break; in EmitInstruction() 2202 case X86::VPBROADCASTBrm: NumElts = 16; break; in EmitInstruction() [all …]
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitstreamReader.cpp | 106 unsigned NumElts = ReadVBR(6); in skipRecord() local 107 for (unsigned i = 0; i != NumElts; ++i) in skipRecord() 127 unsigned NumElts = ReadVBR(6); in skipRecord() local 140 for (; NumElts; --NumElts) in skipRecord() 145 for (; NumElts; --NumElts) in skipRecord() 149 for (; NumElts; --NumElts) in skipRecord() 158 unsigned NumElts = ReadVBR(6); in skipRecord() local 162 size_t NewEnd = GetCurrentBitNo()+((NumElts+3)&~3)*8; in skipRecord() 181 unsigned NumElts = ReadVBR(6); in readRecord() local 182 for (unsigned i = 0; i != NumElts; ++i) in readRecord() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/ |
D | BitstreamReader.cpp | 100 unsigned NumElts = ReadVBR(6); in skipRecord() local 101 for (unsigned i = 0; i != NumElts; ++i) in skipRecord() 131 unsigned NumElts = ReadVBR(6); in skipRecord() local 144 JumpToBit(GetCurrentBitNo() + NumElts * EltEnc.getEncodingData()); in skipRecord() 148 for (; NumElts; --NumElts) in skipRecord() 152 JumpToBit(GetCurrentBitNo() + NumElts * 6); in skipRecord() 160 unsigned NumElts = ReadVBR(6); in skipRecord() local 164 size_t NewEnd = GetCurrentBitNo()+((NumElts+3)&~3)*8; in skipRecord() 184 unsigned NumElts = ReadVBR(6); in readRecord() local 185 for (unsigned i = 0; i != NumElts; ++i) in readRecord() [all …]
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 428 unsigned NumElts = ResultTy->getVectorNumElements() * 8; in UpgradeX86PSLLDQIntrinsics() local 431 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSLLDQIntrinsics() 442 for (unsigned l = 0; l != NumElts; l += 16) in UpgradeX86PSLLDQIntrinsics() 444 unsigned Idx = NumElts + i - Shift; in UpgradeX86PSLLDQIntrinsics() 445 if (Idx < NumElts) in UpgradeX86PSLLDQIntrinsics() 446 Idx -= NumElts - 16; // end of lane, switch operand. in UpgradeX86PSLLDQIntrinsics() 450 Res = Builder.CreateShuffleVector(Res, Op, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSLLDQIntrinsics() 462 unsigned NumElts = ResultTy->getVectorNumElements() * 8; in UpgradeX86PSRLDQIntrinsics() local 465 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSRLDQIntrinsics() 476 for (unsigned l = 0; l != NumElts; l += 16) in UpgradeX86PSRLDQIntrinsics() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 744 unsigned NumElts = ResultTy->getVectorNumElements() * 8; in UpgradeX86PSLLDQIntrinsics() local 747 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSLLDQIntrinsics() 758 for (unsigned l = 0; l != NumElts; l += 16) in UpgradeX86PSLLDQIntrinsics() 760 unsigned Idx = NumElts + i - Shift; in UpgradeX86PSLLDQIntrinsics() 761 if (Idx < NumElts) in UpgradeX86PSLLDQIntrinsics() 762 Idx -= NumElts - 16; // end of lane, switch operand. in UpgradeX86PSLLDQIntrinsics() 766 Res = Builder.CreateShuffleVector(Res, Op, makeArrayRef(Idxs, NumElts)); in UpgradeX86PSLLDQIntrinsics() 778 unsigned NumElts = ResultTy->getVectorNumElements() * 8; in UpgradeX86PSRLDQIntrinsics() local 781 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSRLDQIntrinsics() 792 for (unsigned l = 0; l != NumElts; l += 16) in UpgradeX86PSRLDQIntrinsics() [all …]
|
/external/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 166 unsigned NumElts = Mask.size(); in isReInterleaveMask() local 167 if (NumElts < 4) in isReInterleaveMask() 172 if (NumElts % Factor) in isReInterleaveMask() 175 unsigned NumSubElts = NumElts / Factor; in isReInterleaveMask() 182 for (; i < NumElts; i++) in isReInterleaveMask() 189 if (i == NumElts) in isReInterleaveMask()
|
D | TargetLoweringBase.cpp | 1025 unsigned NumElts = VT.getVectorNumElements(); in getTypeConversion() local 1029 if (NumElts == 1) in getTypeConversion() 1039 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion() 1040 EVT NVT = EVT::getVectorVT(Context, EltVT, NumElts); in getTypeConversion() 1051 EVT::getVectorVT(Context, EltVT, NumElts / 2)); in getTypeConversion() 1072 MVT NVT = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion() 1076 EVT::getVectorVT(Context, EltVT, NumElts)); in getTypeConversion() 1088 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion() 1095 MVT LargerVector = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion() 1120 unsigned NumElts = VT.getVectorNumElements(); in getVectorTypeBreakdownMVT() local [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 45 int NumElts = MaskTy->getVectorNumElements(); in DecodePSHUFBMask() local 58 int NumBytes = NumElts * Scale; in DecodePSHUFBMask() 61 for (int i = 0; i != NumElts; ++i) { in DecodePSHUFBMask() 251 int NumElts = MaskTy->getVectorNumElements(); in DecodeVPPERMMask() local 253 int NumBytes = NumElts * Scale; in DecodeVPPERMMask() 256 for (int i = 0; i != NumElts; ++i) { in DecodeVPPERMMask()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 766 unsigned NumElts = VT.getVectorNumElements(); in getTypeConversion() local 770 if (NumElts == 1) in getTypeConversion() 780 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion() 781 EVT NVT = EVT::getVectorVT(Context, EltVT, NumElts); in getTypeConversion() 792 EVT::getVectorVT(Context, EltVT, NumElts / 2)); in getTypeConversion() 813 MVT NVT = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion() 817 EVT::getVectorVT(Context, EltVT, NumElts)); in getTypeConversion() 829 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion() 836 MVT LargerVector = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion() 861 unsigned NumElts = VT.getVectorNumElements(); in getVectorTypeBreakdownMVT() local [all …]
|
D | InterleavedAccessPass.cpp | 192 unsigned NumElts = Mask.size(); in isReInterleaveMask() local 193 if (NumElts < 4) in isReInterleaveMask() 198 if (NumElts % Factor) in isReInterleaveMask() 201 unsigned LaneLen = NumElts / Factor; in isReInterleaveMask()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypesGeneric.cpp | 356 unsigned NumElts = 2; in ExpandOp_BITCAST() local 360 NumElts); in ExpandOp_BITCAST() 364 NumElts = N->getValueType(0).getVectorNumElements(); in ExpandOp_BITCAST() 369 IntegerToVector(N->getOperand(0), NumElts, Ops, NVT.getVectorElementType()); in ExpandOp_BITCAST() 372 makeArrayRef(Ops.data(), NumElts)); in ExpandOp_BITCAST() 383 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_BUILD_VECTOR() local 394 NewElts.reserve(NumElts*2); in ExpandOp_BUILD_VECTOR() 396 for (unsigned i = 0; i < NumElts; ++i) { in ExpandOp_BUILD_VECTOR() 423 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_INSERT_VECTOR_ELT() local 435 EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewEVT, NumElts*2); in ExpandOp_INSERT_VECTOR_ELT() [all …]
|
/external/swiftshader/third_party/subzero/pnacl-llvm/ |
D | NaClBitstreamReader.cpp | 117 unsigned NumElts = ReadVBR(6); in skipRecord() local 118 for (unsigned i = 0; i != NumElts; ++i) in skipRecord() 136 unsigned NumElts = ReadVBR(6); in skipRecord() local 142 for (; NumElts; --NumElts) in skipRecord() 206 unsigned NumElts = ReadVBR(6); in readRecord() local 207 for (unsigned i = 0; i != NumElts; ++i) in readRecord()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypesGeneric.cpp | 351 unsigned NumElts = 2; in ExpandOp_BITCAST() local 355 NumElts); in ExpandOp_BITCAST() 359 NumElts = N->getValueType(0).getVectorNumElements(); in ExpandOp_BITCAST() 364 IntegerToVector(N->getOperand(0), NumElts, Ops, NVT.getVectorElementType()); in ExpandOp_BITCAST() 367 DAG.getBuildVector(NVT, dl, makeArrayRef(Ops.data(), NumElts)); in ExpandOp_BITCAST() 378 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_BUILD_VECTOR() local 389 NewElts.reserve(NumElts*2); in ExpandOp_BUILD_VECTOR() 391 for (unsigned i = 0; i < NumElts; ++i) { in ExpandOp_BUILD_VECTOR() 416 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_INSERT_VECTOR_ELT() local 428 EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewEVT, NumElts*2); in ExpandOp_INSERT_VECTOR_ELT() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 294 unsigned NumElts = V->getType()->getVectorNumElements(); in collectSingleShuffleElements() local 297 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectSingleShuffleElements() 302 for (unsigned i = 0; i != NumElts; ++i) in collectSingleShuffleElements() 308 for (unsigned i = 0; i != NumElts; ++i) in collectSingleShuffleElements() 310 i+NumElts)); in collectSingleShuffleElements() 345 Mask[InsertedIdx % NumElts] = in collectSingleShuffleElements() 350 Mask[InsertedIdx % NumElts] = in collectSingleShuffleElements() 456 unsigned NumElts = V->getType()->getVectorNumElements(); in collectShuffleElements() local 459 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectShuffleElements() 465 Mask.assign(NumElts, ConstantInt::get(Type::getInt32Ty(V->getContext()),0)); in collectShuffleElements() [all …]
|
/external/llvm/lib/Target/ |
D | TargetLoweringObjectFile.cpp | 83 unsigned NumElts = CDS->getNumElements(); in IsNullTerminatedString() local 84 assert(NumElts != 0 && "Can't have an empty CDS"); in IsNullTerminatedString() 86 if (CDS->getElementAsInteger(NumElts-1) != 0) in IsNullTerminatedString() 90 for (unsigned i = 0; i != NumElts-1; ++i) in IsNullTerminatedString()
|
/external/clang/include/clang/AST/ |
D | APValue.h | 82 unsigned NumElts; member 83 Vec() : Elts(nullptr), NumElts(0) {} in Vec() 88 unsigned NumElts, ArrSize; member 89 Arr(unsigned NumElts, unsigned ArrSize); 268 return ((const Vec*)(const void *)Data.buffer)->NumElts; in getVectorLength() 292 return ((const Arr*)(const void *)Data.buffer)->NumElts; in getArrayInitializedElts() 358 ((Vec*)(char*)Data.buffer)->NumElts = N; in setVector()
|
/external/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()
|
/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 407 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType() local 408 assert ((NumElts & 1) == 0 && in getHalfElementsVectorType() 410 return VectorType::get(VTy->getElementType(), NumElts/2); in getHalfElementsVectorType() 416 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType() local 417 return VectorType::get(VTy->getElementType(), NumElts*2); in getDoubleElementsVectorType()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ |
D | TargetLoweringObjectFile.cpp | 93 unsigned NumElts = CDS->getNumElements(); in IsNullTerminatedString() local 94 assert(NumElts != 0 && "Can't have an empty CDS"); in IsNullTerminatedString() 96 if (CDS->getElementAsInteger(NumElts-1) != 0) in IsNullTerminatedString() 100 for (unsigned i = 0; i != NumElts-1; ++i) in IsNullTerminatedString()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 434 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType() local 435 assert ((NumElts & 1) == 0 && in getHalfElementsVectorType() 437 return VectorType::get(VTy->getElementType(), NumElts/2); in getHalfElementsVectorType() 443 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType() local 444 return VectorType::get(VTy->getElementType(), NumElts*2); in getDoubleElementsVectorType()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 301 unsigned NumElts = V->getType()->getVectorNumElements(); in collectSingleShuffleElements() local 304 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectSingleShuffleElements() 309 for (unsigned i = 0; i != NumElts; ++i) in collectSingleShuffleElements() 315 for (unsigned i = 0; i != NumElts; ++i) in collectSingleShuffleElements() 317 i+NumElts)); in collectSingleShuffleElements() 352 Mask[InsertedIdx % NumElts] = in collectSingleShuffleElements() 357 Mask[InsertedIdx % NumElts] = in collectSingleShuffleElements() 455 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in collectShuffleElements() local 458 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectShuffleElements() 464 Mask.assign(NumElts, ConstantInt::get(Type::getInt32Ty(V->getContext()),0)); in collectShuffleElements() [all …]
|