Home
last modified time | relevance | path

Searched refs:ElementSize (Results 1 – 25 of 79) sorted by relevance

1234

/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DSparseBitVector.h43 template <unsigned ElementSize = 128>
45 : public ilist_node<SparseBitVectorElement<ElementSize> > {
50 BITWORDS_PER_ELEMENT = (ElementSize + BITWORD_SIZE - 1) / BITWORD_SIZE,
51 BITS_PER_ELEMENT = ElementSize
278 template <unsigned ElementSize = 128>
280 typedef ilist<SparseBitVectorElement<ElementSize> > ElementList;
284 BITWORD_SIZE = SparseBitVectorElement<ElementSize>::BITWORD_SIZE
328 const SparseBitVector<ElementSize> *BitVector;
340 typename SparseBitVectorElement<ElementSize>::BitWord Bits;
351 BitNumber = Iter->index() * ElementSize;
[all …]
/external/llvm/include/llvm/ADT/
DSparseBitVector.h42 template <unsigned ElementSize = 128>
44 : public ilist_node<SparseBitVectorElement<ElementSize> > {
50 BITWORDS_PER_ELEMENT = (ElementSize + BITWORD_SIZE - 1) / BITWORD_SIZE,
51 BITS_PER_ELEMENT = ElementSize
247 template <unsigned ElementSize>
248 struct ilist_traits<SparseBitVectorElement<ElementSize> >
249 : public ilist_default_traits<SparseBitVectorElement<ElementSize> > {
250 typedef SparseBitVectorElement<ElementSize> Element;
263 template <unsigned ElementSize = 128>
265 typedef ilist<SparseBitVectorElement<ElementSize> > ElementList;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DSparseBitVector.h42 template <unsigned ElementSize = 128> struct SparseBitVectorElement {
48 BITWORDS_PER_ELEMENT = (ElementSize + BITWORD_SIZE - 1) / BITWORD_SIZE,
49 BITS_PER_ELEMENT = ElementSize
255 template <unsigned ElementSize = 128>
257 using ElementList = std::list<SparseBitVectorElement<ElementSize>>;
261 BITWORD_SIZE = SparseBitVectorElement<ElementSize>::BITWORD_SIZE
305 const SparseBitVector<ElementSize> *BitVector = nullptr;
317 typename SparseBitVectorElement<ElementSize>::BitWord Bits;
328 BitNumber = Iter->index() * ElementSize; in AdvanceToFirstNonZero()
331 WordNumber = (BitNumber % ElementSize) / BITWORD_SIZE; in AdvanceToFirstNonZero()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp206 Value *S, uint64_t ElementSize,
221 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
471 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP() argument
479 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP()
485 uint64_t ElementSize, in factorArrayIndex() argument
490 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
507 allocateCandidatesAndFindBasisForGEP(Base, RHS, LHS, ElementSize, GEP); in factorArrayIndex()
514 allocateCandidatesAndFindBasisForGEP(Base, PowerOf2, LHS, ElementSize, GEP); in factorArrayIndex()
540 uint64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in allocateCandidatesAndFindBasisForGEP() local
545 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
[all …]
DSeparateConstOffsetFromGEP.cpp843 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() local
846 if (ElementSize != 1) { in lowerToSingleIndexGEPs()
847 if (ElementSize.isPowerOf2()) { in lowerToSingleIndexGEPs()
849 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
851 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToSingleIndexGEPs()
904 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics() local
907 if (ElementSize != 1) { in lowerToArithmetics()
908 if (ElementSize.isPowerOf2()) { in lowerToArithmetics()
910 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
912 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics()
DSROA.cpp1462 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); in getNaturalGEPRecursively() local
1463 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1466 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1474 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPRecursively() local
1475 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1479 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1528 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPWithOffset() local
1529 if (ElementSize == 0) in getNaturalGEPWithOffset()
1531 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPWithOffset()
1533 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPWithOffset()
[all …]
DNaryReassociate.cpp404 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); in tryReassociateGEPAtIndex() local
419 if (IndexedSize % ElementSize != 0) in tryReassociateGEPAtIndex()
426 if (IndexedSize != ElementSize) { in tryReassociateGEPAtIndex()
428 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp177 Value *S, uint64_t ElementSize,
189 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
435 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP() argument
443 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP()
449 uint64_t ElementSize, in factorArrayIndex() argument
454 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
471 allocateCandidatesAndFindBasisForGEP(Base, RHS, LHS, ElementSize, GEP); in factorArrayIndex()
478 allocateCandidatesAndFindBasisForGEP(Base, PowerOf2, LHS, ElementSize, GEP); in factorArrayIndex()
506 uint64_t ElementSize = DL->getTypeAllocSize(*GTI); in allocateCandidatesAndFindBasisForGEP() local
511 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
[all …]
DSeparateConstOffsetFromGEP.cpp797 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() local
800 if (ElementSize != 1) { in lowerToSingleIndexGEPs()
801 if (ElementSize.isPowerOf2()) { in lowerToSingleIndexGEPs()
803 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
805 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToSingleIndexGEPs()
858 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics() local
861 if (ElementSize != 1) { in lowerToArithmetics()
862 if (ElementSize.isPowerOf2()) { in lowerToArithmetics()
864 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
866 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics()
DSROA.cpp1401 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); in getNaturalGEPRecursively() local
1402 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1405 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1413 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPRecursively() local
1414 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1418 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1467 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPWithOffset() local
1468 if (ElementSize == 0) in getNaturalGEPWithOffset()
1470 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPWithOffset()
1472 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPWithOffset()
[all …]
DNaryReassociate.cpp407 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); in tryReassociateGEPAtIndex() local
422 if (IndexedSize % ElementSize != 0) in tryReassociateGEPAtIndex()
429 if (IndexedSize != ElementSize) { in tryReassociateGEPAtIndex()
431 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DRuntimeLibcalls.h67 Libcall getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
72 Libcall getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
77 Libcall getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
/external/swiftshader/third_party/LLVM/lib/Analysis/
DMemoryBuiltins.cpp101 unsigned ElementSize = TD->getTypeAllocSize(T); in computeArraySize() local
103 ElementSize = TD->getStructLayout(ST)->getSizeInBytes(); in computeArraySize()
109 if (ComputeMultiple(MallocArg, ElementSize, Multiple, in computeArraySize()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DIRBuilder.cpp128 Value *Ptr, Value *Val, Value *Size, unsigned Align, uint32_t ElementSize, in CreateElementUnorderedAtomicMemSet() argument
130 assert(Align >= ElementSize && in CreateElementUnorderedAtomicMemSet()
134 Value *Ops[] = {Ptr, Val, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemSet()
198 uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag, in CreateElementUnorderedAtomicMemCpy() argument
200 assert(DstAlign >= ElementSize && in CreateElementUnorderedAtomicMemCpy()
202 assert(SrcAlign >= ElementSize && in CreateElementUnorderedAtomicMemCpy()
207 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemCpy()
274 uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag, in CreateElementUnorderedAtomicMemMove() argument
276 assert(DstAlign >= ElementSize && in CreateElementUnorderedAtomicMemMove()
278 assert(SrcAlign >= ElementSize && in CreateElementUnorderedAtomicMemMove()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1179 unsigned int ElementSize = 0; in printModuleLevelGV() local
1190 ElementSize = DL.getTypeStoreSize(ETy); in printModuleLevelGV()
1198 AggBuffer aggBuffer(ElementSize, O, *this); in printModuleLevelGV()
1205 O << ElementSize / 8; in printModuleLevelGV()
1210 O << ElementSize / 4; in printModuleLevelGV()
1217 O << ElementSize; in printModuleLevelGV()
1226 if (ElementSize) { in printModuleLevelGV()
1228 O << ElementSize; in printModuleLevelGV()
1235 if (ElementSize) { in printModuleLevelGV()
1237 O << ElementSize; in printModuleLevelGV()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1221 unsigned int ElementSize = 0; in printModuleLevelGV() local
1231 ElementSize = DL.getTypeStoreSize(ETy); in printModuleLevelGV()
1239 AggBuffer aggBuffer(ElementSize, O, *this); in printModuleLevelGV()
1246 O << ElementSize / 8; in printModuleLevelGV()
1251 O << ElementSize / 4; in printModuleLevelGV()
1258 O << ElementSize; in printModuleLevelGV()
1267 if (ElementSize) { in printModuleLevelGV()
1269 O << ElementSize; in printModuleLevelGV()
1276 if (ElementSize) { in printModuleLevelGV()
1278 O << ElementSize; in printModuleLevelGV()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DLegalizerInfo.cpp205 const uint16_t ElementSize = VectorSpecifiedActions.first; in computeTables() local
206 ElementSizesSeen.push_back({ElementSize, Legal}); in computeTables()
214 assert(BitsizeAndAction.first % ElementSize == 0); in computeTables()
215 const uint16_t NumElements = BitsizeAndAction.first / ElementSize; in computeTables()
219 Opcode, TypeIdx, ElementSize, in computeTables()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/PDB/
DUDTLayout.h104 uint32_t getElementSize() const { return ElementSize; } in getElementSize()
107 uint32_t ElementSize = 0;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DSVEInstrFormats.td425 let ElementSize = ElementSizeNone;
512 let ElementSize = ElementSizeNone;
819 let ElementSize = ElementSizeNone;
845 let ElementSize = ElementSizeNone;
875 let ElementSize = ElementSizeNone;
970 let ElementSize = ElementSizeNone;
1082 let ElementSize = zprty.ElementSize;
1111 let ElementSize = zprty.ElementSize;
1138 let ElementSize = ElementSizeNone;
1201 let ElementSize = zprty.ElementSize;
[all …]
/external/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h462 int64_t ElementSize = DL.getTypeAllocSize(GTI.getIndexedType()); in getGEPCost() local
464 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in getGEPCost()
470 Scale = ElementSize; in getGEPCost()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dresolve_constant_pack.cc44 input_size * ElementSize(Type)); in Pack()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizerInfo.h1017 const unsigned ElementSize, in setVectorNumElementAction() argument
1020 if (NumElements2Actions[OpcodeIdx].find(ElementSize) == in setVectorNumElementAction()
1022 NumElements2Actions[OpcodeIdx][ElementSize] = {{}}; in setVectorNumElementAction()
1024 NumElements2Actions[OpcodeIdx].find(ElementSize)->second; in setVectorNumElementAction()
/external/v8/src/objects/
Dfixed-array-inl.h431 int FixedTypedArrayBase::ElementSize(InstanceType type) { in ElementSize() function
449 return length() * ElementSize(type); in DataSize()
458 static_cast<size_t>(ElementSize(map()->instance_type())); in ByteLength()
471 return OBJECT_POINTER_ALIGN(kDataOffset + length * ElementSize(type)); in TypedArraySize()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h737 int64_t ElementSize = DL.getTypeAllocSize(GTI.getIndexedType()); in getGEPCost() local
740 ConstIdx->getValue().sextOrTrunc(PtrSizeBits) * ElementSize; in getGEPCost()
746 Scale = ElementSize; in getGEPCost()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DIRBuilder.h425 uint32_t ElementSize,
430 ElementSize, TBAATag, ScopeTag,
436 uint32_t ElementSize,
474 uint64_t Size, uint32_t ElementSize, MDNode *TBAATag = nullptr,
478 Dst, DstAlign, Src, SrcAlign, getInt64(Size), ElementSize, TBAATag,
484 uint32_t ElementSize, MDNode *TBAATag = nullptr,
518 uint64_t Size, uint32_t ElementSize, MDNode *TBAATag = nullptr,
522 Dst, DstAlign, Src, SrcAlign, getInt64(Size), ElementSize, TBAATag,
528 uint32_t ElementSize, MDNode *TBAATag = nullptr,

1234