Searched refs:ElementSize (Results 1 - 25 of 40) sorted by relevance

12

/external/swiftshader/third_party/LLVM/include/llvm/ADT/
H A 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/
H A 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> > ElementLis
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp174 // A helper function that scales Idx with ElementSize before invoking
177 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,
437 // I = B + sext(Idx *nsw S) * ElementSize
438 // = B + (sext(Idx) * sext(S)) * ElementSize
439 // = B + (sext(Idx) * ElementSize) * sext(S)
443 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true);
449 uint64_t ElementSize,
454 ArrayIdx, ElementSize, GE
434 allocateCandidatesAndFindBasisForGEP( const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, Instruction *I) argument
447 factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize, GetElementPtrInst *GEP) argument
506 uint64_t ElementSize = DL->getTypeAllocSize(*GTI); local
[all...]
H A DSROA.cpp1401 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8);
1402 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1405 Offset -= NumSkippedElements * ElementSize;
1413 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy));
1414 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1418 Offset -= NumSkippedElements * ElementSize;
1467 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy));
1468 if (ElementSize == 0)
1470 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1472 Offset -= NumSkippedElements * ElementSize;
[all...]
H A DSeparateConstOffsetFromGEP.cpp797 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), local
800 if (ElementSize != 1) {
801 if (ElementSize.isPowerOf2()) {
803 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
805 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
858 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), local
861 if (ElementSize != 1) {
862 if (ElementSize.isPowerOf2()) {
864 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
866 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
[all...]
H A DNaryReassociate.cpp407 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); local
410 // necessarily divisible by ElementSize. For example,
422 if (IndexedSize % ElementSize != 0)
429 if (IndexedSize != ElementSize) {
431 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize));
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DMemoryBuiltins.cpp101 unsigned ElementSize = TD->getTypeAllocSize(T); local
103 ElementSize = TD->getStructLayout(ST)->getSizeInBytes();
105 // If malloc call's arg can be determined to be a multiple of ElementSize,
109 if (ComputeMultiple(MallocArg, ElementSize, Multiple,
/external/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h462 int64_t ElementSize = DL.getTypeAllocSize(GTI.getIndexedType()); local
464 BaseOffset += ConstIdx->getSExtValue() * ElementSize;
470 Scale = ElementSize;
H A DScalarEvolution.h1533 const SCEV *ElementSize) const;
1618 const SCEV *ElementSize);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1221 unsigned int ElementSize = 0; local
1231 ElementSize = DL.getTypeStoreSize(ETy);
1239 AggBuffer aggBuffer(ElementSize, O, *this);
1246 O << ElementSize / 8; local
1251 O << ElementSize / 4; local
1258 O << ElementSize; local
1267 if (ElementSize) {
1269 O << ElementSize; local
1276 if (ElementSize) {
1278 O << ElementSize; local
1385 int64_t ElementSize = 0; local
1400 O << ElementSize; local
1914 int ElementSize = DL.getTypeAllocSize(CPV->getType()); local
[all...]
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/
H A DExecutionEngine.cpp950 unsigned ElementSize = local
953 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize);
959 unsigned ElementSize = local
962 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize);
/external/tensorflow/tensorflow/contrib/lite/toco/
H A Dallocate_transient_arrays.cc168 const std::size_t elem_size = ElementSize(array->data_type);
H A Dtooling_util.h246 int ElementSize(ArrayDataType data_type);
/external/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp231 unsigned ElementSize = DL.getTypeAllocSize(T); local
233 ElementSize = DL.getStructLayout(ST)->getSizeInBytes();
235 // If malloc call's arg can be determined to be a multiple of ElementSize,
239 if (ComputeMultiple(MallocArg, ElementSize, Multiple, LookThroughSExt))
H A DBasicAliasAnalysis.cpp891 const uint64_t ElementSize = local
893 if (V1Size != ElementSize || V2Size != ElementSize)
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1187 unsigned ElementSize = local
1190 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize);
1200 unsigned ElementSize = local
1203 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize);
/external/clang/utils/TableGen/
H A DNeonEmitter.cpp1602 unsigned ElementSize; member in class:Rev
1605 Rev(unsigned ElementSize) : ElementSize(ElementSize) {} argument
1612 VectorSize /= ElementSize;
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp465 // N = N + Idx * ElementSize;
466 uint64_t ElementSize = TD.getTypeAllocSize(Ty); local
474 if (ElementSize != 1) {
475 IdxN = FastEmit_ri_(VT, ISD::MUL, IdxN, IdxNIsKill, ElementSize, VT);
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1508 unsigned ElementSize = VecEltTy->getPrimitiveSizeInBits(); local
1509 Type *ElementIntTy = IntegerType::get(C->getContext(), ElementSize);
1513 i*ElementSize));
/external/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp992 uint64_t ElementSize = getBaseTypeSize(ElementTypeRef) / 8; local
1031 ElementSize *= Count;
1033 ArrayRecord(ElementTypeIndex, IndexType, ElementSize, Name));
1037 assert(UndefinedSubrange || ElementSize == (Ty->getSizeInBits() / 8));
/external/clang/lib/AST/
H A DType.cpp80 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity(); local
88 if (llvm::isPowerOf2_64(ElementSize)) {
89 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize);
94 if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 &&
96 uint64_t TotalSize = NumElements.getZExtValue() * ElementSize;
106 llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize));
/external/clang/lib/CodeGen/
H A DCGExprCXX.cpp850 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementType); local
852 BeginPtr.getAlignment().alignmentOfArrayElement(ElementSize);
901 StartAlign.alignmentAtOffset((i + 1) * ElementSize));
H A DCGStmtOpenMP.cpp349 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementTy); local
356 SrcAddr.getAlignment().alignmentOfArrayElement(ElementSize));
363 DestAddr.getAlignment().alignmentOfArrayElement(ElementSize));
484 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy); local
494 SrcAddr.getAlignment().alignmentOfArrayElement(ElementSize));
501 DestAddr.getAlignment().alignmentOfArrayElement(ElementSize));
/external/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp542 // N = N + Idx * ElementSize;
543 uint64_t ElementSize = DL.getTypeAllocSize(Ty); local
550 if (ElementSize != 1) {
551 IdxN = fastEmit_ri_(VT, ISD::MUL, IdxN, IdxNIsKill, ElementSize, VT);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1678 unsigned ElementSize = VecEltTy->getPrimitiveSizeInBits(); local
1679 Type *ElementIntTy = IntegerType::get(C->getContext(), ElementSize);
1682 unsigned ShiftI = Shift+i*ElementSize;

Completed in 2488 milliseconds

12