Home
last modified time | relevance | path

Searched refs:NumElems (Results 1 – 25 of 69) sorted by relevance

123

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp466 unsigned NumElems = VT->getNumElements(); in splitUnary() local
469 assert(Op.size() == NumElems && "Mismatched unary operation"); in splitUnary()
471 Res.resize(NumElems); in splitUnary()
472 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitUnary()
486 unsigned NumElems = VT->getNumElements(); in splitBinary() local
490 assert(Op0.size() == NumElems && "Mismatched binary operation"); in splitBinary()
491 assert(Op1.size() == NumElems && "Mismatched binary operation"); in splitBinary()
493 Res.resize(NumElems); in splitBinary()
494 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitBinary()
527 unsigned NumElems = VT->getNumElements(); in splitCall() local
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DScalarizer.cpp469 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitUnary() local
472 assert(Op.size() == NumElems && "Mismatched unary operation"); in splitUnary()
474 Res.resize(NumElems); in splitUnary()
475 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitUnary()
489 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitBinary() local
493 assert(VOp0.size() == NumElems && "Mismatched binary operation"); in splitBinary()
494 assert(VOp1.size() == NumElems && "Mismatched binary operation"); in splitBinary()
496 Res.resize(NumElems); in splitBinary()
497 for (unsigned Elem = 0; Elem < NumElems; ++Elem) { in splitBinary()
532 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitCall() local
[all …]
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp382 unsigned NumElems = VT->getNumElements(); in splitBinary() local
386 assert(Op0.size() == NumElems && "Mismatched binary operation"); in splitBinary()
387 assert(Op1.size() == NumElems && "Mismatched binary operation"); in splitBinary()
389 Res.resize(NumElems); in splitBinary()
390 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitBinary()
402 unsigned NumElems = VT->getNumElements(); in visitSelectInst() local
406 assert(Op1.size() == NumElems && "Mismatched select"); in visitSelectInst()
407 assert(Op2.size() == NumElems && "Mismatched select"); in visitSelectInst()
409 Res.resize(NumElems); in visitSelectInst()
413 assert(Op0.size() == NumElems && "Mismatched select"); in visitSelectInst()
[all …]
/external/llvm-project/clang/lib/AST/Interp/
DDescriptor.cpp58 const unsigned NumElems = D->getNumElems(); in ctorArrayDesc() local
63 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in ctorArrayDesc()
82 const unsigned NumElems = D->getNumElems(); in dtorArrayDesc() local
87 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in dtorArrayDesc()
97 const unsigned NumElems = D->getNumElems(); in moveArrayDesc() local
102 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in moveArrayDesc()
197 Descriptor::Descriptor(const DeclTy &D, PrimType Type, size_t NumElems, in Descriptor() argument
199 : Source(D), ElemSize(primSize(Type)), Size(ElemSize * NumElems), in Descriptor()
216 Descriptor::Descriptor(const DeclTy &D, Descriptor *Elem, unsigned NumElems, in Descriptor() argument
219 Size(ElemSize * NumElems), in Descriptor()
DProgram.cpp310 size_t NumElems = CAT->getSize().getZExtValue(); in createDescriptor() local
314 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) { in createDescriptor()
317 return allocateDescriptor(D, *T, NumElems, IsConst, IsTemporary, in createDescriptor()
327 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) in createDescriptor()
329 return allocateDescriptor(D, Desc, NumElems, IsConst, IsTemporary, in createDescriptor()
DEvalEmitter.cpp172 const size_t NumElems = Ptr.getNumElems(); in emitRetValue() local
174 R = APValue(APValue::UninitArray{}, NumElems, NumElems); in emitRetValue()
177 for (unsigned I = 0; I < NumElems; ++I) { in emitRetValue()
DDescriptor.h92 Descriptor(const DeclTy &D, PrimType Type, size_t NumElems, bool IsConst,
99 Descriptor(const DeclTy &D, Descriptor *Elem, unsigned NumElems, bool IsConst,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonSubtarget.h238 unsigned NumElems = VecTy.getVectorNumElements();
243 if (8*HwLen == NumElems)
248 if (NumElems * T.getSizeInBits() == 8*HwLen)
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp102 unsigned NumElems = 2; in ExpandRes_BITCAST() local
104 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
112 NumElems *= 2; in ExpandRes_BITCAST()
114 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
121 for (unsigned i = 0; i < NumElems; ++i) in ExpandRes_BITCAST()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp109 unsigned NumElems = 2; in ExpandRes_BITCAST() local
111 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
119 NumElems *= 2; in ExpandRes_BITCAST()
121 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
128 for (unsigned i = 0; i < NumElems; ++i) in ExpandRes_BITCAST()
/external/llvm-project/llvm/lib/Target/X86/
DX86PartialReduction.cpp313 unsigned NumElems = cast<FixedVectorType>(BO->getType())->getNumElements(); in matchAddReduction() local
315 if (!isPowerOf2_32(NumElems)) in matchAddReduction()
319 unsigned Stages = Log2_32(NumElems); in matchAddReduction()
/external/llvm/lib/IR/
DAttributes.cpp55 unsigned NumElems = Num & std::numeric_limits<unsigned>::max(); in unpackAllocSizeArgs() local
59 if (NumElems != AllocSizeNumElemsNotPresent) in unpackAllocSizeArgs()
60 NumElemsArg = NumElems; in unpackAllocSizeArgs()
362 Optional<unsigned> NumElems; in getAsString() local
363 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString()
367 if (NumElems.hasValue()) { in getAsString()
369 Result += utostr(*NumElems); in getAsString()
1390 const Optional<unsigned> &NumElems) { in addAllocSizeAttr() argument
1391 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
DConstantFold.cpp361 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() local
363 if (NumElems == 0) in getFoldedSizeOf()
369 for (unsigned i = 1; i != NumElems; ++i) in getFoldedSizeOf()
376 Constant *N = ConstantInt::get(DestTy, NumElems); in getFoldedSizeOf()
428 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() local
430 if (NumElems == 0) in getFoldedAlignOf()
436 for (unsigned i = 1; i != NumElems; ++i) in getFoldedAlignOf()
485 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() local
487 if (NumElems == 0) in getFoldedOffsetOf()
493 for (unsigned i = 1; i != NumElems; ++i) in getFoldedOffsetOf()
/external/swiftshader/third_party/subzero/src/
DIceCfg.h249 template <typename T> T *allocateArrayOf(size_t NumElems) { in allocateArrayOf() argument
250 return Allocator->Allocate<T>(NumElems); in allocateArrayOf()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp105 unsigned NumElems = 2; in ExpandRes_BITCAST() local
107 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
115 NumElems *= 2; in ExpandRes_BITCAST()
117 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
124 for (unsigned i = 0; i < NumElems; ++i) in ExpandRes_BITCAST()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemoryBuiltins.cpp642 APInt NumElems = C->getValue(); in visitAllocaInst() local
643 if (!CheckedZextOrTrunc(NumElems)) in visitAllocaInst()
647 Size = Size.umul_ov(NumElems, Overflow); in visitAllocaInst()
706 APInt NumElems = Arg->getValue(); in visitCallSite() local
707 if (!CheckedZextOrTrunc(NumElems)) in visitCallSite()
711 Size = Size.umul_ov(NumElems, Overflow); in visitCallSite()
/external/llvm-project/llvm/lib/Analysis/
DMemoryBuiltins.cpp666 APInt NumElems = C->getValue(); in visitAllocaInst() local
667 if (!CheckedZextOrTrunc(NumElems)) in visitAllocaInst()
671 Size = Size.umul_ov(NumElems, Overflow); in visitAllocaInst()
731 APInt NumElems = Arg->getValue(); in visitCallBase() local
732 if (!CheckedZextOrTrunc(NumElems)) in visitCallBase()
736 Size = Size.umul_ov(NumElems, Overflow); in visitCallBase()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAttributes.cpp71 unsigned NumElems = Num & std::numeric_limits<unsigned>::max(); in unpackAllocSizeArgs() local
75 if (NumElems != AllocSizeNumElemsNotPresent) in unpackAllocSizeArgs()
76 NumElemsArg = NumElems; in unpackAllocSizeArgs()
447 Optional<unsigned> NumElems; in getAsString() local
448 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString()
452 if (NumElems.hasValue()) { in getAsString()
454 Result += utostr(*NumElems); in getAsString()
1561 const Optional<unsigned> &NumElems) { in addAllocSizeAttr() argument
1562 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
DConstantFold.cpp362 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() local
364 if (NumElems == 0) in getFoldedSizeOf()
370 for (unsigned i = 1; i != NumElems; ++i) in getFoldedSizeOf()
377 Constant *N = ConstantInt::get(DestTy, NumElems); in getFoldedSizeOf()
428 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() local
430 if (NumElems == 0) in getFoldedAlignOf()
436 for (unsigned i = 1; i != NumElems; ++i) in getFoldedAlignOf()
484 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() local
486 if (NumElems == 0) in getFoldedOffsetOf()
492 for (unsigned i = 1; i != NumElems; ++i) in getFoldedOffsetOf()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp2951 unsigned NumElems = VT.getVectorNumElements(); in getMOVL() local
2953 Mask.push_back(NumElems); in getMOVL()
2954 for (unsigned i = 1; i != NumElems; ++i) in getMOVL()
4571 unsigned NumElems = OpVT.getVectorNumElements(); in insert1BitVector() local
4574 assert(IdxVal + SubVecNumElems <= NumElems && in insert1BitVector()
4611 NumElems = WideOpVT.getVectorNumElements(); in insert1BitVector()
4612 unsigned ShiftLeft = NumElems - SubVecNumElems; in insert1BitVector()
4613 unsigned ShiftRight = NumElems - SubVecNumElems - IdxVal; in insert1BitVector()
4636 if (IdxVal + SubVecNumElems == NumElems) { in insert1BitVector()
4651 for (unsigned i = 0; i < NumElems; ++i) in insert1BitVector()
[all …]
/external/llvm-project/clang/include/clang/Analysis/Analyses/
DThreadSafetyUtil.h57 template <typename T> T *allocateT(size_t NumElems) { in allocateT() argument
58 return Allocator->Allocate<T>(NumElems); in allocateT()
/external/clang/include/clang/Analysis/Analyses/
DThreadSafetyUtil.h53 template <typename T> T *allocateT(size_t NumElems) { in allocateT() argument
54 return Allocator->Allocate<T>(NumElems); in allocateT()
/external/llvm-project/llvm/lib/IR/
DAttributes.cpp72 unsigned NumElems = Num & std::numeric_limits<unsigned>::max(); in unpackAllocSizeArgs() local
76 if (NumElems != AllocSizeNumElemsNotPresent) in unpackAllocSizeArgs()
77 NumElemsArg = NumElems; in unpackAllocSizeArgs()
520 Optional<unsigned> NumElems; in getAsString() local
521 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString()
525 if (NumElems.hasValue()) { in getAsString()
527 Result += utostr(*NumElems); in getAsString()
1703 const Optional<unsigned> &NumElems) { in addAllocSizeAttr() argument
1704 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
DConstantFold.cpp364 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() local
366 if (NumElems == 0) in getFoldedSizeOf()
372 for (unsigned i = 1; i != NumElems; ++i) in getFoldedSizeOf()
379 Constant *N = ConstantInt::get(DestTy, NumElems); in getFoldedSizeOf()
430 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() local
432 if (NumElems == 0) in getFoldedAlignOf()
438 for (unsigned i = 1; i != NumElems; ++i) in getFoldedAlignOf()
486 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() local
488 if (NumElems == 0) in getFoldedOffsetOf()
494 for (unsigned i = 1; i != NumElems; ++i) in getFoldedOffsetOf()
/external/llvm/utils/TableGen/
DCodeGenDAGPatterns.cpp541 unsigned NumElems = IVT.getVectorNumElements(); in EnforceVectorSubVectorTypeIs() local
551 [NumElems](MVT VVT) { in EnforceVectorSubVectorTypeIs()
552 return VVT.getVectorNumElements() >= NumElems; in EnforceVectorSubVectorTypeIs()
565 unsigned NumElems = IVT.getVectorNumElements(); in EnforceVectorSubVectorTypeIs() local
575 [NumElems](MVT VVT) { in EnforceVectorSubVectorTypeIs()
576 return VVT.getVectorNumElements() <= NumElems; in EnforceVectorSubVectorTypeIs()
607 unsigned NumElems = IVT.getVectorNumElements(); in EnforceVectorSameNumElts() local
613 [NumElems](MVT VVT) { in EnforceVectorSameNumElts()
614 return VVT.getVectorNumElements() != NumElems; in EnforceVectorSameNumElts()
627 unsigned NumElems = IVT.getVectorNumElements(); in EnforceVectorSameNumElts() local
[all …]

123