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

/external/llvm/include/llvm/ADT/
H A DSparseBitVector.h43 template <unsigned ElementSize = 128>
45 : public ilist_node<SparseBitVectorElement<ElementSize> > {
51 BITWORDS_PER_ELEMENT = (ElementSize + BITWORD_SIZE - 1) / BITWORD_SIZE,
52 BITS_PER_ELEMENT = ElementSize
246 template <unsigned ElementSize>
247 struct ilist_traits<SparseBitVectorElement<ElementSize> >
248 : public ilist_default_traits<SparseBitVectorElement<ElementSize> > {
249 typedef SparseBitVectorElement<ElementSize> Element;
262 template <unsigned ElementSize = 128>
264 typedef ilist<SparseBitVectorElement<ElementSize> > ElementLis
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp172 // A helper function that scales Idx with ElementSize before invoking
175 Value *S, uint64_t ElementSize,
187 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
249 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); local
251 BaseOffset += ConstIdx->getSExtValue() * ElementSize;
258 Scale = ElementSize;
440 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize,
442 // I = B + sext(Idx *nsw S) * ElementSize
443 // = B + (sext(Idx) * sext(S)) * ElementSize
444 // = B + (sext(Idx) * ElementSize) * sex
439 allocateCandidatesAndFindBasisForGEP( const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, Instruction *I) argument
452 factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize, GetElementPtrInst *GEP) argument
502 uint64_t ElementSize = DL->getTypeAllocSize(*GTI); local
[all...]
H A DSeparateConstOffsetFromGEP.cpp748 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), local
751 if (ElementSize != 1) {
752 if (ElementSize.isPowerOf2()) {
754 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
756 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
798 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), local
801 if (ElementSize != 1) {
802 if (ElementSize.isPowerOf2()) {
804 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
806 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
[all...]
H A DSROA.cpp1633 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8);
1634 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1637 Offset -= NumSkippedElements * ElementSize;
1645 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy));
1646 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1650 Offset -= NumSkippedElements * ElementSize;
1699 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy));
1700 if (ElementSize == 0)
1702 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1704 Offset -= NumSkippedElements * ElementSize;
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1200 unsigned int ElementSize = 0; local
1210 ElementSize = TD->getTypeStoreSize(ETy);
1218 AggBuffer aggBuffer(ElementSize, O, *this);
1223 O << ElementSize / 8; local
1226 O << ElementSize / 4; local
1231 O << ElementSize; local
1239 if (ElementSize) {
1241 O << ElementSize; local
1247 if (ElementSize) {
1249 O << ElementSize; local
1357 int64_t ElementSize = 0; local
1857 int ElementSize = TD->getTypeAllocSize(CPV->getType()); local
[all...]
/external/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp220 unsigned ElementSize = DL.getTypeAllocSize(T); local
222 ElementSize = DL.getStructLayout(ST)->getSizeInBytes();
224 // If malloc call's arg can be determined to be a multiple of ElementSize,
228 if (ComputeMultiple(MallocArg, ElementSize, Multiple,
H A DScalarEvolution.cpp3716 const SCEV *ElementSize = getSizeOfExpr(IntPtrTy, *GTI);
3722 const SCEV *LocalOffset = getMulExpr(IndexS, ElementSize, Wrap);
7776 const SCEV *ElementSize) const {
7778 if (Terms.size() < 1 || !ElementSize)
7806 SCEVDivision::divide(SE, Term, ElementSize, &Q, &R);
7830 Sizes.push_back(ElementSize);
7948 const SCEV *ElementSize) const {
7957 SE.findArrayDimensions(Terms, Sizes, ElementSize);
H A DDependenceAnalysis.cpp3200 const SCEV *ElementSize) {
3224 SE->findArrayDimensions(Terms, Sizes, ElementSize);
3197 tryDelinearize(const SCEV *SrcSCEV, const SCEV *DstSCEV, SmallVectorImpl<Subscript> &Pair, const SCEV *ElementSize) argument
/external/clang/lib/AST/
H A DType.cpp79 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity(); local
87 if (llvm::isPowerOf2_64(ElementSize)) {
88 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize);
93 if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 &&
95 uint64_t TotalSize = NumElements.getZExtValue() * ElementSize;
105 llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize));
H A DExprConstant.cpp7032 CharUnits ElementSize; local
7033 if (!HandleSizeof(Info, E->getExprLoc(), ElementType, ElementSize))
7039 if (ElementSize.isZero()) {
7058 llvm::APInt(65, (int64_t)ElementSize.getQuantity(), true), false);
7273 CharUnits ElementSize = Info.Ctx.getTypeSizeInChars(CurrentType); local
7274 Result += IdxResult.getSExtValue() * ElementSize;
/external/llvm/include/llvm/Analysis/
H A DDependenceAnalysis.h917 const SCEV *ElementSize);
H A DScalarEvolution.h940 const SCEV *ElementSize) const;
H A DScalarEvolutionExpressions.h436 const SCEV *ElementSize) const;
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1170 unsigned ElementSize = local
1173 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize);
1183 unsigned ElementSize = local
1186 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize);
/external/clang/utils/TableGen/
H A DNeonEmitter.cpp1583 unsigned ElementSize; member in class:Rev
1586 Rev(unsigned ElementSize) : ElementSize(ElementSize) {} argument
1593 VectorSize /= ElementSize;
/external/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp541 // N = N + Idx * ElementSize;
542 uint64_t ElementSize = DL.getTypeAllocSize(Ty); local
549 if (ElementSize != 1) {
550 IdxN = fastEmit_ri_(VT, ISD::MUL, IdxN, IdxNIsKill, ElementSize, VT);
H A DSelectionDAGBuilder.cpp3404 APInt ElementSize(PtrSize, DL->getTypeAllocSize(Ty));
3410 APInt Offs = ElementSize * CI->getValue().sextOrTrunc(PtrSize);
3416 // N = N + Idx * ElementSize;
3425 if (ElementSize != 1) {
3426 if (ElementSize.isPowerOf2()) {
3427 unsigned Amt = ElementSize.logBase2();
3432 SDValue Scale = DAG.getConstant(ElementSize, IdxN.getValueType());
H A DSelectionDAG.cpp3442 unsigned ElementSize = VT.getSizeInBits(); local
3443 unsigned Shift = ElementSize * N2C->getZExtValue();
3445 return getConstant(ShiftedVal.trunc(ElementSize), VT);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1597 unsigned ElementSize = VecEltTy->getPrimitiveSizeInBits(); local
1598 Type *ElementIntTy = IntegerType::get(C->getContext(), ElementSize);
1601 unsigned ShiftI = Shift+i*ElementSize;
/external/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp2030 // ElementSize size, get allocated memory size in bytes by
2031 // OldSize * ElementSize.
2032 unsigned ElementSize = local
2035 ConstantInt::get(IntptrTy, ElementSize));
/external/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp4859 // N = N + Idx * ElementSize;
4860 uint64_t ElementSize = DL.getTypeAllocSize(Ty); local
4867 if (ElementSize != 1) {
4868 unsigned C = fastEmit_i(VT, VT, ISD::Constant, ElementSize);
/external/clang/lib/Sema/
H A DSemaExpr.cpp7830 CharUnits ElementSize = Context.getTypeSizeInChars(rpointee); local
7831 if (ElementSize.isZero()) {

Completed in 1091 milliseconds