Home
last modified time | relevance | path

Searched refs:NewElts (Results 1 – 25 of 27) sorted by relevance

12

/external/swiftshader/third_party/llvm-subzero/lib/Support/
DSmallVector.cpp26 void *NewElts; in grow_pod() local
28 NewElts = malloc(NewCapacityInBytes); in grow_pod()
31 memcpy(NewElts, this->BeginX, CurSizeBytes); in grow_pod()
34 NewElts = realloc(this->BeginX, NewCapacityInBytes); in grow_pod()
36 assert(NewElts && "Out of memory"); in grow_pod()
38 this->EndX = (char*)NewElts+CurSizeBytes; in grow_pod()
39 this->BeginX = NewElts; in grow_pod()
/external/llvm/lib/Support/
DSmallVector.cpp26 void *NewElts; in grow_pod() local
28 NewElts = malloc(NewCapacityInBytes); in grow_pod()
31 memcpy(NewElts, this->BeginX, CurSizeBytes); in grow_pod()
34 NewElts = realloc(this->BeginX, NewCapacityInBytes); in grow_pod()
36 assert(NewElts && "Out of memory"); in grow_pod()
38 this->EndX = (char*)NewElts+CurSizeBytes; in grow_pod()
39 this->BeginX = NewElts; in grow_pod()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSmallVector.cpp52 void *NewElts; in grow_pod() local
54 NewElts = safe_malloc(NewCapacity * TSize); in grow_pod()
57 memcpy(NewElts, this->BeginX, size() * TSize); in grow_pod()
60 NewElts = safe_realloc(this->BeginX, NewCapacity * TSize); in grow_pod()
63 this->BeginX = NewElts; in grow_pod()
/external/llvm-project/llvm/lib/Support/
DSmallVector.cpp93 void *NewElts; in grow_pod() local
95 NewElts = safe_malloc(NewCapacity * TSize); in grow_pod()
98 memcpy(NewElts, this->BeginX, size() * TSize); in grow_pod()
101 NewElts = safe_realloc(this->BeginX, NewCapacity * TSize); in grow_pod()
104 this->BeginX = NewElts; in grow_pod()
/external/clang/include/clang/Analysis/Support/
DBumpVector.h228 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow() local
233 std::uninitialized_copy(Begin, End, NewElts); in grow()
238 memcpy(NewElts, Begin, CurSize * sizeof(T)); in grow()
244 Begin = NewElts; in grow()
245 End = NewElts+CurSize; in grow()
/external/llvm-project/clang/include/clang/Analysis/Support/
DBumpVector.h233 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow() local
238 std::uninitialized_copy(Begin, End, NewElts); in grow()
243 memcpy(NewElts, Begin, CurSize * sizeof(T)); in grow()
249 Begin = NewElts; in grow()
250 End = NewElts+CurSize; in grow()
/external/clang/include/clang/AST/
DASTVector.h384 T *NewElts = new (C, llvm::alignOf<T>()) T[NewCapacity]; in grow() local
389 std::uninitialized_copy(Begin, End, NewElts); in grow()
394 memcpy(NewElts, Begin, CurSize * sizeof(T)); in grow()
399 Begin = NewElts; in grow()
400 End = NewElts+CurSize; in grow()
/external/llvm-project/clang/include/clang/AST/
DASTVector.h388 T *NewElts = new (C, alignof(T)) T[NewCapacity]; in grow() local
393 std::uninitialized_copy(Begin, End, NewElts); in grow()
398 memcpy(NewElts, Begin, CurSize * sizeof(T)); in grow()
403 Begin = NewElts; in grow()
404 End = NewElts+CurSize; in grow()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp379 SmallVector<SDValue, 16> NewElts; in ExpandOp_BUILD_VECTOR() local
380 NewElts.reserve(NumElts*2); in ExpandOp_BUILD_VECTOR()
387 NewElts.push_back(Lo); in ExpandOp_BUILD_VECTOR()
388 NewElts.push_back(Hi); in ExpandOp_BUILD_VECTOR()
391 EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewVT, NewElts.size()); in ExpandOp_BUILD_VECTOR()
392 SDValue NewVec = DAG.getBuildVector(NewVecVT, dl, NewElts); in ExpandOp_BUILD_VECTOR()
DLegalizeVectorTypes.cpp1776 unsigned NewElts = NewVT.getVectorNumElements(); in SplitVecRes_VECTOR_SHUFFLE() local
1790 unsigned FirstMaskIdx = High * NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1792 for (unsigned MaskOffset = 0; MaskOffset < NewElts; ++MaskOffset) { in SplitVecRes_VECTOR_SHUFFLE()
1797 unsigned Input = (unsigned)Idx / NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1806 Idx -= Input * NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1829 Ops.push_back(Idx + OpNo * NewElts); in SplitVecRes_VECTOR_SHUFFLE()
1837 for (unsigned MaskOffset = 0; MaskOffset < NewElts; ++MaskOffset) { in SplitVecRes_VECTOR_SHUFFLE()
1842 unsigned Input = (unsigned)Idx / NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1851 Idx -= Input * NewElts; in SplitVecRes_VECTOR_SHUFFLE()
DLegalizeDAG.cpp4678 SmallVector<SDValue, 8> NewElts; in PromoteNode() local
4679 NewElts.push_back(CastVal); in PromoteNode()
4681 NewElts.push_back(Undef); in PromoteNode()
4683 SDValue Concat = DAG.getNode(ISD::CONCAT_VECTORS, SL, NVT, NewElts); in PromoteNode()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp393 std::vector<SDValue> NewElts; in ExpandOp_BUILD_VECTOR() local
394 NewElts.reserve(NumElts*2); in ExpandOp_BUILD_VECTOR()
401 NewElts.push_back(Lo); in ExpandOp_BUILD_VECTOR()
402 NewElts.push_back(Hi); in ExpandOp_BUILD_VECTOR()
407 NewVT, NewElts.size()), in ExpandOp_BUILD_VECTOR()
408 NewElts); in ExpandOp_BUILD_VECTOR()
DLegalizeVectorTypes.cpp1328 unsigned NewElts = NewVT.getVectorNumElements(); in SplitVecRes_VECTOR_SHUFFLE() local
1342 unsigned FirstMaskIdx = High * NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1344 for (unsigned MaskOffset = 0; MaskOffset < NewElts; ++MaskOffset) { in SplitVecRes_VECTOR_SHUFFLE()
1349 unsigned Input = (unsigned)Idx / NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1358 Idx -= Input * NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1381 Ops.push_back(Idx + OpNo * NewElts); in SplitVecRes_VECTOR_SHUFFLE()
1389 for (unsigned MaskOffset = 0; MaskOffset < NewElts; ++MaskOffset) { in SplitVecRes_VECTOR_SHUFFLE()
1394 unsigned Input = (unsigned)Idx / NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1403 Idx -= Input * NewElts; in SplitVecRes_VECTOR_SHUFFLE()
DLegalizeDAG.cpp4384 SmallVector<SDValue, 8> NewElts; in PromoteNode() local
4385 NewElts.push_back(CastVal); in PromoteNode()
4387 NewElts.push_back(Undef); in PromoteNode()
4389 SDValue Concat = DAG.getNode(ISD::CONCAT_VECTORS, SL, NVT, NewElts); in PromoteNode()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp384 SmallVector<SDValue, 16> NewElts; in ExpandOp_BUILD_VECTOR() local
385 NewElts.reserve(NumElts*2); in ExpandOp_BUILD_VECTOR()
392 NewElts.push_back(Lo); in ExpandOp_BUILD_VECTOR()
393 NewElts.push_back(Hi); in ExpandOp_BUILD_VECTOR()
396 EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewVT, NewElts.size()); in ExpandOp_BUILD_VECTOR()
397 SDValue NewVec = DAG.getBuildVector(NewVecVT, dl, NewElts); in ExpandOp_BUILD_VECTOR()
DLegalizeVectorTypes.cpp1914 unsigned NewElts = NewVT.getVectorNumElements(); in SplitVecRes_VECTOR_SHUFFLE() local
1928 unsigned FirstMaskIdx = High * NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1930 for (unsigned MaskOffset = 0; MaskOffset < NewElts; ++MaskOffset) { in SplitVecRes_VECTOR_SHUFFLE()
1935 unsigned Input = (unsigned)Idx / NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1944 Idx -= Input * NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1967 Ops.push_back(Idx + OpNo * NewElts); in SplitVecRes_VECTOR_SHUFFLE()
1975 for (unsigned MaskOffset = 0; MaskOffset < NewElts; ++MaskOffset) { in SplitVecRes_VECTOR_SHUFFLE()
1980 unsigned Input = (unsigned)Idx / NewElts; in SplitVecRes_VECTOR_SHUFFLE()
1989 Idx -= Input * NewElts; in SplitVecRes_VECTOR_SHUFFLE()
DLegalizeDAG.cpp4904 SmallVector<SDValue, 8> NewElts; in PromoteNode() local
4905 NewElts.push_back(CastVal); in PromoteNode()
4907 NewElts.push_back(Undef); in PromoteNode()
4909 SDValue Concat = DAG.getNode(ISD::CONCAT_VECTORS, SL, NVT, NewElts); in PromoteNode()
/external/llvm/include/llvm/ADT/
DSmallVector.h237 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow() local
240 this->uninitialized_move(this->begin(), this->end(), NewElts); in grow()
249 this->setEnd(NewElts+CurSize); in grow()
250 this->BeginX = NewElts; in grow()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallVector.h240 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow() local
243 this->uninitialized_move(this->begin(), this->end(), NewElts); in grow()
252 this->setEnd(NewElts+CurSize); in grow()
253 this->BeginX = NewElts; in grow()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DSmallVector.h240 T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T))); in grow() local
243 this->uninitialized_move(this->begin(), this->end(), NewElts); in grow()
252 this->BeginX = NewElts; in grow()
/external/llvm-project/llvm/include/llvm/ADT/
DSmallVector.h356 T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T))); in grow() local
359 this->uninitialized_move(this->begin(), this->end(), NewElts); in grow()
368 this->BeginX = NewElts; in grow()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DLegalizerHelper.cpp1151 unsigned NewElts = MoreTy.getNumElements(); in moreElementsVectorSrc() local
1153 unsigned NumParts = NewElts / OldElts; in moreElementsVectorSrc()
1156 if (NumParts * OldElts == NewElts) { in moreElementsVectorSrc()
2603 unsigned NewElts = NarrowTy.isVector() ? NarrowTy.getNumElements() : 1; in fewerElementsVectorCmp() local
2607 NumParts = NarrowTy.isVector() ? (OldElts / NewElts) : DstTy.getNumElements(); in fewerElementsVectorCmp()
2613 unsigned NewElts = NarrowTy.isVector() ? NarrowTy.getNumElements() : 1; in fewerElementsVectorCmp() local
2616 NumParts = NarrowTy.isVector() ? (OldElts / NewElts) : in fewerElementsVectorCmp()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp8958 SDValue NewElts[2]; in performFCanonicalizeCombine() local
8967 NewElts[I] = getCanonicalConstantFP(DAG, SL, EltVT, in performFCanonicalizeCombine()
8971 NewElts[I] = Op; in performFCanonicalizeCombine()
8973 NewElts[I] = DAG.getNode(ISD::FCANONICALIZE, SL, EltVT, Op); in performFCanonicalizeCombine()
8980 if (NewElts[0].isUndef()) { in performFCanonicalizeCombine()
8981 if (isa<ConstantFPSDNode>(NewElts[1])) in performFCanonicalizeCombine()
8982 NewElts[0] = isa<ConstantFPSDNode>(NewElts[1]) ? in performFCanonicalizeCombine()
8983 NewElts[1]: DAG.getConstantFP(0.0f, SL, EltVT); in performFCanonicalizeCombine()
8986 if (NewElts[1].isUndef()) { in performFCanonicalizeCombine()
8987 NewElts[1] = isa<ConstantFPSDNode>(NewElts[0]) ? in performFCanonicalizeCombine()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp9681 SDValue NewElts[2]; in performFCanonicalizeCombine() local
9690 NewElts[I] = getCanonicalConstantFP(DAG, SL, EltVT, in performFCanonicalizeCombine()
9694 NewElts[I] = Op; in performFCanonicalizeCombine()
9696 NewElts[I] = DAG.getNode(ISD::FCANONICALIZE, SL, EltVT, Op); in performFCanonicalizeCombine()
9703 if (NewElts[0].isUndef()) { in performFCanonicalizeCombine()
9704 if (isa<ConstantFPSDNode>(NewElts[1])) in performFCanonicalizeCombine()
9705 NewElts[0] = isa<ConstantFPSDNode>(NewElts[1]) ? in performFCanonicalizeCombine()
9706 NewElts[1]: DAG.getConstantFP(0.0f, SL, EltVT); in performFCanonicalizeCombine()
9709 if (NewElts[1].isUndef()) { in performFCanonicalizeCombine()
9710 NewElts[1] = isa<ConstantFPSDNode>(NewElts[0]) ? in performFCanonicalizeCombine()
[all …]
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DLegalizerHelper.cpp1346 unsigned NewElts = MoreTy.getNumElements(); in moreElementsVectorSrc() local
1348 unsigned NumParts = NewElts / OldElts; in moreElementsVectorSrc()
1351 if (NumParts * OldElts == NewElts) { in moreElementsVectorSrc()
3375 unsigned NewElts = NarrowTy.isVector() ? NarrowTy.getNumElements() : 1; in fewerElementsVectorCmp() local
3379 NumParts = NarrowTy.isVector() ? (OldElts / NewElts) : DstTy.getNumElements(); in fewerElementsVectorCmp()
3385 unsigned NewElts = NarrowTy.isVector() ? NarrowTy.getNumElements() : 1; in fewerElementsVectorCmp() local
3388 NumParts = NarrowTy.isVector() ? (OldElts / NewElts) : in fewerElementsVectorCmp()

12