/external/llvm/include/llvm/ADT/ |
D | SparseBitVector.h | 42 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/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 177 Value *S, uint64_t ElementSize, 189 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize, 254 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in isGEPFoldable() local 256 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in isGEPFoldable() 263 Scale = ElementSize; in isGEPFoldable() 464 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP() argument 472 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP() 478 uint64_t ElementSize, in factorArrayIndex() argument 483 ArrayIdx, ElementSize, GEP); in factorArrayIndex() 500 allocateCandidatesAndFindBasisForGEP(Base, RHS, LHS, ElementSize, GEP); in factorArrayIndex() [all …]
|
D | NaryReassociate.cpp | 319 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in isGEPFoldable() local 321 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in isGEPFoldable() 328 Scale = ElementSize; in isGEPFoldable() 438 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); in tryReassociateGEPAtIndex() local 453 if (IndexedSize % ElementSize != 0) in tryReassociateGEPAtIndex() 460 if (IndexedSize != ElementSize) { in tryReassociateGEPAtIndex() 462 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
|
D | SeparateConstOffsetFromGEP.cpp | 797 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()
|
D | SROA.cpp | 1419 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); in getNaturalGEPRecursively() local 1420 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively() 1423 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively() 1431 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPRecursively() local 1432 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively() 1436 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively() 1485 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPWithOffset() local 1486 if (ElementSize == 0) in getNaturalGEPWithOffset() 1488 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPWithOffset() 1490 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPWithOffset() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 1197 unsigned int ElementSize = 0; in printModuleLevelGV() local 1207 ElementSize = DL.getTypeStoreSize(ETy); in printModuleLevelGV() 1215 AggBuffer aggBuffer(ElementSize, O, *this); in printModuleLevelGV() 1222 O << ElementSize / 8; in printModuleLevelGV() 1227 O << ElementSize / 4; in printModuleLevelGV() 1234 O << ElementSize; in printModuleLevelGV() 1243 if (ElementSize) { in printModuleLevelGV() 1245 O << ElementSize; in printModuleLevelGV() 1252 if (ElementSize) { in printModuleLevelGV() 1254 O << ElementSize; in printModuleLevelGV() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | TargetTransformInfoImpl.h | 426 int64_t ElementSize = DL.getTypeAllocSize(GTI.getIndexedType()); in getGEPCost() local 428 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in getGEPCost() 434 Scale = ElementSize; in getGEPCost()
|
D | ScalarEvolution.h | 1157 const SCEV *ElementSize) const; 1240 const SCEV *ElementSize);
|
/external/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 223 unsigned ElementSize = DL.getTypeAllocSize(T); in computeArraySize() local 225 ElementSize = DL.getStructLayout(ST)->getSizeInBytes(); in computeArraySize() 231 if (ComputeMultiple(MallocArg, ElementSize, Multiple, in computeArraySize()
|
D | BasicAliasAnalysis.cpp | 823 const uint64_t ElementSize = in aliasSameBasePointerGEPs() local 825 if (V1Size != ElementSize || V2Size != ElementSize) in aliasSameBasePointerGEPs()
|
D | ScalarEvolution.cpp | 2970 const SCEV *ElementSize = getSizeOfExpr(IntPtrTy, CurTy); in getGEPExpr() local 2975 const SCEV *LocalOffset = getMulExpr(IndexExpr, ElementSize, Wrap); in getGEPExpr() 8788 const SCEV *ElementSize) const { in findArrayDimensions() 8790 if (Terms.size() < 1 || !ElementSize) in findArrayDimensions() 8819 SCEVDivision::divide(SE, Term, ElementSize, &Q, &R); in findArrayDimensions() 8844 Sizes.push_back(ElementSize); in findArrayDimensions() 8966 const SCEV *ElementSize) { in delinearize() argument 8975 findArrayDimensions(Terms, Sizes, ElementSize); in delinearize()
|
D | DependenceAnalysis.cpp | 3268 const SCEV *ElementSize = SE->getElementSize(Src); in tryDelinearize() local 3269 if (ElementSize != SE->getElementSize(Dst)) in tryDelinearize() 3287 SE->findArrayDimensions(Terms, Sizes, ElementSize); in tryDelinearize()
|
/external/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 1192 unsigned ElementSize = in InitializeMemory() local 1195 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory() 1205 unsigned ElementSize = in InitializeMemory() local 1208 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
|
/external/clang/utils/TableGen/ |
D | NeonEmitter.cpp | 1600 unsigned ElementSize; in emitDagShuffle() member in Intrinsic::DagEmitter::emitDagShuffle::Rev 1603 Rev(unsigned ElementSize) : ElementSize(ElementSize) {} in emitDagShuffle() argument 1610 VectorSize /= ElementSize; in emitDagShuffle()
|
/external/clang/lib/AST/ |
D | Type.cpp | 80 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity(); in getNumAddressingBits() local 88 if (llvm::isPowerOf2_64(ElementSize)) { in getNumAddressingBits() 89 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize); in getNumAddressingBits() 94 if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 && in getNumAddressingBits() 96 uint64_t TotalSize = NumElements.getZExtValue() * ElementSize; in getNumAddressingBits() 106 llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize)); in getNumAddressingBits()
|
D | ExprConstant.cpp | 7382 CharUnits ElementSize; in VisitBinaryOperator() local 7383 if (!HandleSizeof(Info, E->getExprLoc(), ElementType, ElementSize)) in VisitBinaryOperator() 7389 if (ElementSize.isZero()) { in VisitBinaryOperator() 7408 llvm::APInt(65, (int64_t)ElementSize.getQuantity(), true), false); in VisitBinaryOperator() 7631 CharUnits ElementSize = Info.Ctx.getTypeSizeInChars(CurrentType); in VisitOffsetOfExpr() local 7632 Result += IdxResult.getSExtValue() * ElementSize; in VisitOffsetOfExpr()
|
/external/clang/lib/CodeGen/ |
D | CGStmtOpenMP.cpp | 224 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementTy); in EmitOMPAggregateAssign() local 231 SrcAddr.getAlignment().alignmentOfArrayElement(ElementSize)); in EmitOMPAggregateAssign() 238 DestAddr.getAlignment().alignmentOfArrayElement(ElementSize)); in EmitOMPAggregateAssign() 288 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy); in EmitOMPAggregateInit() local 295 DestAddr.getAlignment().alignmentOfArrayElement(ElementSize)); in EmitOMPAggregateInit()
|
D | CGExprCXX.cpp | 845 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementType); in EmitNewArrayInitializer() local 847 BeginPtr.getAlignment().alignmentOfArrayElement(ElementSize); in EmitNewArrayInitializer() 896 StartAlign.alignmentAtOffset((i + 1) * ElementSize)); in EmitNewArrayInitializer()
|
D | CGOpenMPRuntime.cpp | 2690 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy); in EmitOMPAggregateReduction() local 2697 RHSAddr.getAlignment().alignmentOfArrayElement(ElementSize)); in EmitOMPAggregateReduction() 2704 LHSAddr.getAlignment().alignmentOfArrayElement(ElementSize)); in EmitOMPAggregateReduction()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 1675 unsigned ElementSize = VecEltTy->getPrimitiveSizeInBits(); in collectInsertionElements() local 1676 Type *ElementIntTy = IntegerType::get(C->getContext(), ElementSize); in collectInsertionElements() 1679 unsigned ShiftI = Shift+i*ElementSize; in collectInsertionElements()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 543 uint64_t ElementSize = DL.getTypeAllocSize(Ty); in selectGetElementPtr() local 550 if (ElementSize != 1) { in selectGetElementPtr() 551 IdxN = fastEmit_ri_(VT, ISD::MUL, IdxN, IdxNIsKill, ElementSize, VT); in selectGetElementPtr()
|
D | SelectionDAGBuilder.cpp | 3007 APInt ElementSize(PtrSize, DL->getTypeAllocSize(Ty)); in visitGetElementPtr() local 3019 APInt Offs = ElementSize * CI->getValue().sextOrTrunc(PtrSize); in visitGetElementPtr() 3041 if (ElementSize != 1) { in visitGetElementPtr() 3042 if (ElementSize.isPowerOf2()) { in visitGetElementPtr() 3043 unsigned Amt = ElementSize.logBase2(); in visitGetElementPtr() 3048 SDValue Scale = DAG.getConstant(ElementSize, dl, IdxN.getValueType()); in visitGetElementPtr()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | AddressSanitizer.cpp | 2100 const unsigned ElementSize = in handleDynamicAllocaCall() local 2104 ConstantInt::get(IntptrTy, ElementSize)); in handleDynamicAllocaCall()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 4847 uint64_t ElementSize = DL.getTypeAllocSize(Ty); in selectGetElementPtr() local 4854 if (ElementSize != 1) { in selectGetElementPtr() 4855 unsigned C = fastEmit_i(VT, VT, ISD::Constant, ElementSize); in selectGetElementPtr()
|
/external/v8/src/ |
D | objects-inl.h | 4104 int FixedTypedArrayBase::ElementSize(InstanceType type) { in ElementSize() function 4124 return length() * ElementSize(type); in DataSize() 4144 return OBJECT_POINTER_ALIGN(kDataOffset + length * ElementSize(type)); in TypedArraySize()
|