/external/llvm/include/llvm/ADT/ |
H A 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> > ElementLis [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | StraightLineStrengthReduce.cpp | 174 // 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, 254 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); local 256 BaseOffset += ConstIdx->getSExtValue() * ElementSize; 263 Scale = ElementSize; 464 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, 466 // I = B + sext(Idx *nsw S) * ElementSize 467 // = B + (sext(Idx) * sext(S)) * ElementSize 468 // = B + (sext(Idx) * ElementSize) * sex 463 allocateCandidatesAndFindBasisForGEP( const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, Instruction *I) argument 476 factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize, GetElementPtrInst *GEP) argument 535 uint64_t ElementSize = DL->getTypeAllocSize(*GTI); local [all...] |
H A D | NaryReassociate.cpp | 319 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); local 321 BaseOffset += ConstIdx->getSExtValue() * ElementSize; 328 Scale = ElementSize; 438 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); local 441 // necessarily divisible by ElementSize. For example, 453 if (IndexedSize % ElementSize != 0) 460 if (IndexedSize != ElementSize) { 462 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize));
|
H A D | SROA.cpp | 1419 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); 1420 APInt NumSkippedElements = Offset.sdiv(ElementSize); 1423 Offset -= NumSkippedElements * ElementSize; 1431 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); 1432 APInt NumSkippedElements = Offset.sdiv(ElementSize); 1436 Offset -= NumSkippedElements * ElementSize; 1485 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); 1486 if (ElementSize == 0) 1488 APInt NumSkippedElements = Offset.sdiv(ElementSize); 1490 Offset -= NumSkippedElements * ElementSize; [all...] |
H A D | SeparateConstOffsetFromGEP.cpp | 797 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...] |
/external/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfoImpl.h | 426 int64_t ElementSize = DL.getTypeAllocSize(GTI.getIndexedType()); local 428 BaseOffset += ConstIdx->getSExtValue() * ElementSize; 434 Scale = ElementSize;
|
H A D | ScalarEvolution.h | 1157 const SCEV *ElementSize) const; 1240 const SCEV *ElementSize);
|
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAsmPrinter.cpp | 1197 unsigned int ElementSize = 0; local 1207 ElementSize = DL.getTypeStoreSize(ETy); 1215 AggBuffer aggBuffer(ElementSize, O, *this); 1222 O << ElementSize / 8; local 1227 O << ElementSize / 4; local 1234 O << ElementSize; local 1243 if (ElementSize) { 1245 O << ElementSize; local 1252 if (ElementSize) { 1254 O << ElementSize; local 1362 int64_t ElementSize = 0; local 1377 O << ElementSize; local 1888 int ElementSize = DL.getTypeAllocSize(CPV->getType()); local [all...] |
/external/llvm/lib/Analysis/ |
H A D | MemoryBuiltins.cpp | 223 unsigned ElementSize = DL.getTypeAllocSize(T); local 225 ElementSize = DL.getStructLayout(ST)->getSizeInBytes(); 227 // If malloc call's arg can be determined to be a multiple of ElementSize, 231 if (ComputeMultiple(MallocArg, ElementSize, Multiple,
|
H A D | BasicAliasAnalysis.cpp | 823 const uint64_t ElementSize = local 825 if (V1Size != ElementSize || V2Size != ElementSize)
|
H A D | ScalarEvolution.cpp | 2970 const SCEV *ElementSize = getSizeOfExpr(IntPtrTy, CurTy); 2975 const SCEV *LocalOffset = getMulExpr(IndexExpr, ElementSize, Wrap); 8788 const SCEV *ElementSize) const { 8790 if (Terms.size() < 1 || !ElementSize) 8819 SCEVDivision::divide(SE, Term, ElementSize, &Q, &R); 8844 Sizes.push_back(ElementSize); 8966 const SCEV *ElementSize) { 8975 findArrayDimensions(Terms, Sizes, ElementSize);
|
H A D | DependenceAnalysis.cpp | 3268 const SCEV *ElementSize = SE->getElementSize(Src); local 3269 if (ElementSize != SE->getElementSize(Dst)) 3287 SE->findArrayDimensions(Terms, Sizes, ElementSize);
|
/external/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 1192 unsigned ElementSize = local 1195 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize); 1205 unsigned ElementSize = local 1208 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize);
|
/external/clang/utils/TableGen/ |
H A D | NeonEmitter.cpp | 1600 unsigned ElementSize; member in class:Rev 1603 Rev(unsigned ElementSize) : ElementSize(ElementSize) {} argument 1610 VectorSize /= ElementSize;
|
/external/clang/lib/AST/ |
H A D | Type.cpp | 80 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));
|
H A D | ExprConstant.cpp | 7382 CharUnits ElementSize; local 7383 if (!HandleSizeof(Info, E->getExprLoc(), ElementType, ElementSize)) 7389 if (ElementSize.isZero()) { 7408 llvm::APInt(65, (int64_t)ElementSize.getQuantity(), true), false); 7631 CharUnits ElementSize = Info.Ctx.getTypeSizeInChars(CurrentType); local 7632 Result += IdxResult.getSExtValue() * ElementSize;
|
/external/clang/lib/CodeGen/ |
H A D | CGStmtOpenMP.cpp | 224 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementTy); local 231 SrcAddr.getAlignment().alignmentOfArrayElement(ElementSize)); 238 DestAddr.getAlignment().alignmentOfArrayElement(ElementSize)); 288 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy); local 295 DestAddr.getAlignment().alignmentOfArrayElement(ElementSize));
|
H A D | CGExprCXX.cpp | 845 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementType); local 847 BeginPtr.getAlignment().alignmentOfArrayElement(ElementSize); 896 StartAlign.alignmentAtOffset((i + 1) * ElementSize));
|
H A D | CGOpenMPRuntime.cpp | 2690 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy); local 2697 RHSAddr.getAlignment().alignmentOfArrayElement(ElementSize)); 2704 LHSAddr.getAlignment().alignmentOfArrayElement(ElementSize));
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FastISel.cpp | 542 // 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);
|
H A D | SelectionDAGBuilder.cpp | 3007 APInt ElementSize(PtrSize, DL->getTypeAllocSize(Ty)); 3019 APInt Offs = ElementSize * CI->getValue().sextOrTrunc(PtrSize); 3027 // N = N + Idx * ElementSize; 3041 if (ElementSize != 1) { 3042 if (ElementSize.isPowerOf2()) { 3043 unsigned Amt = ElementSize.logBase2(); 3048 SDValue Scale = DAG.getConstant(ElementSize, dl, IdxN.getValueType());
|
H A D | SelectionDAG.cpp | 3709 unsigned ElementSize = VT.getSizeInBits(); local 3710 unsigned Shift = ElementSize * N2C->getZExtValue(); 3712 return getConstant(ShiftedVal.trunc(ElementSize), DL, VT);
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 1675 unsigned ElementSize = VecEltTy->getPrimitiveSizeInBits(); local 1676 Type *ElementIntTy = IntegerType::get(C->getContext(), ElementSize); 1679 unsigned ShiftI = Shift+i*ElementSize;
|
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | AddressSanitizer.cpp | 2098 // ElementSize size, get allocated memory size in bytes by 2099 // OldSize * ElementSize. 2100 const unsigned ElementSize = local 2104 ConstantInt::get(IntptrTy, ElementSize));
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64FastISel.cpp | 4846 // N = N + Idx * ElementSize; 4847 uint64_t ElementSize = DL.getTypeAllocSize(Ty); local 4854 if (ElementSize != 1) { 4855 unsigned C = fastEmit_i(VT, VT, ISD::Constant, ElementSize);
|