Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/include/llvm/ADT/
HDSparseBitVector.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> > ElementList;
[all …]
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDStraightLineStrengthReduce.cpp177 Value *S, uint64_t ElementSize,
189 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
253 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in isGEPFoldable() local
255 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in isGEPFoldable()
262 Scale = ElementSize; in isGEPFoldable()
463 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP() argument
471 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP()
477 uint64_t ElementSize, in factorArrayIndex() argument
482 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
499 allocateCandidatesAndFindBasisForGEP(Base, RHS, LHS, ElementSize, GEP); in factorArrayIndex()
[all …]
HDSeparateConstOffsetFromGEP.cpp751 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() local
754 if (ElementSize != 1) { in lowerToSingleIndexGEPs()
755 if (ElementSize.isPowerOf2()) { in lowerToSingleIndexGEPs()
757 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
759 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToSingleIndexGEPs()
800 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics() local
803 if (ElementSize != 1) { in lowerToArithmetics()
804 if (ElementSize.isPowerOf2()) { in lowerToArithmetics()
806 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
808 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics()
HDNaryReassociate.cpp309 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in isGEPFoldable() local
311 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in isGEPFoldable()
318 Scale = ElementSize; in isGEPFoldable()
445 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); in tryReassociateGEPAtIndex() local
460 if (IndexedSize % ElementSize != 0) in tryReassociateGEPAtIndex()
468 if (IndexedSize != ElementSize) { in tryReassociateGEPAtIndex()
470 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
HDSROA.cpp1634 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); in getNaturalGEPRecursively() local
1635 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1638 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1646 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPRecursively() local
1647 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1651 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1700 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPWithOffset() local
1701 if (ElementSize == 0) in getNaturalGEPWithOffset()
1703 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPWithOffset()
1705 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPWithOffset()
[all …]
/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXAsmPrinter.cpp1198 unsigned int ElementSize = 0; in printModuleLevelGV() local
1208 ElementSize = TD->getTypeStoreSize(ETy); in printModuleLevelGV()
1216 AggBuffer aggBuffer(ElementSize, O, *this); in printModuleLevelGV()
1223 O << ElementSize / 8; in printModuleLevelGV()
1228 O << ElementSize / 4; in printModuleLevelGV()
1235 O << ElementSize; in printModuleLevelGV()
1244 if (ElementSize) { in printModuleLevelGV()
1246 O << ElementSize; in printModuleLevelGV()
1253 if (ElementSize) { in printModuleLevelGV()
1255 O << ElementSize; in printModuleLevelGV()
[all …]
/NextBSD/contrib/llvm/lib/Analysis/
HDMemoryBuiltins.cpp220 unsigned ElementSize = DL.getTypeAllocSize(T); in computeArraySize() local
222 ElementSize = DL.getStructLayout(ST)->getSizeInBytes(); in computeArraySize()
228 if (ComputeMultiple(MallocArg, ElementSize, Multiple, in computeArraySize()
HDScalarEvolution.cpp2963 const SCEV *ElementSize = getSizeOfExpr(IntPtrTy, CurTy); in getGEPExpr() local
2968 const SCEV *LocalOffset = getMulExpr(IndexExpr, ElementSize, Wrap); in getGEPExpr()
7805 const SCEV *ElementSize) const { in findArrayDimensions()
7807 if (Terms.size() < 1 || !ElementSize) in findArrayDimensions()
7835 SCEVDivision::divide(SE, Term, ElementSize, &Q, &R); in findArrayDimensions()
7859 Sizes.push_back(ElementSize); in findArrayDimensions()
7981 const SCEV *ElementSize) { in delinearize() argument
7990 findArrayDimensions(Terms, Sizes, ElementSize); in delinearize()
HDDependenceAnalysis.cpp3250 const SCEV *ElementSize) { in tryDelinearize() argument
3274 SE->findArrayDimensions(Terms, Sizes, ElementSize); in tryDelinearize()
/NextBSD/contrib/llvm/include/llvm/Analysis/
HDScalarEvolution.h949 const SCEV *ElementSize) const;
1035 const SCEV *ElementSize);
HDDependenceAnalysis.h918 const SCEV *ElementSize);
/NextBSD/contrib/llvm/lib/ExecutionEngine/
HDExecutionEngine.cpp1185 unsigned ElementSize = in InitializeMemory() local
1188 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
1198 unsigned ElementSize = in InitializeMemory() local
1201 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
/NextBSD/contrib/llvm/tools/clang/utils/TableGen/
HDNeonEmitter.cpp1600 unsigned ElementSize; in emitDagShuffle() member in Intrinsic::DagEmitter::emitDagShuffle::Rev
1603 Rev(unsigned ElementSize) : ElementSize(ElementSize) {} in emitDagShuffle() argument
1610 VectorSize /= ElementSize; in emitDagShuffle()
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDType.cpp79 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity(); in getNumAddressingBits() local
87 if (llvm::isPowerOf2_64(ElementSize)) { in getNumAddressingBits()
88 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize); in getNumAddressingBits()
93 if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 && in getNumAddressingBits()
95 uint64_t TotalSize = NumElements.getZExtValue() * ElementSize; in getNumAddressingBits()
105 llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize)); in getNumAddressingBits()
HDExprConstant.cpp7036 CharUnits ElementSize; in VisitBinaryOperator() local
7037 if (!HandleSizeof(Info, E->getExprLoc(), ElementType, ElementSize)) in VisitBinaryOperator()
7043 if (ElementSize.isZero()) { in VisitBinaryOperator()
7062 llvm::APInt(65, (int64_t)ElementSize.getQuantity(), true), false); in VisitBinaryOperator()
7284 CharUnits ElementSize = Info.Ctx.getTypeSizeInChars(CurrentType); in VisitOffsetOfExpr() local
7285 Result += IdxResult.getSExtValue() * ElementSize; in VisitOffsetOfExpr()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineCasts.cpp1606 unsigned ElementSize = VecEltTy->getPrimitiveSizeInBits(); in CollectInsertionElements() local
1607 Type *ElementIntTy = IntegerType::get(C->getContext(), ElementSize); in CollectInsertionElements()
1610 unsigned ShiftI = Shift+i*ElementSize; in CollectInsertionElements()
/NextBSD/contrib/llvm/lib/CodeGen/SelectionDAG/
HDFastISel.cpp543 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()
HDSelectionDAGBuilder.cpp2794 APInt ElementSize(PtrSize, DL->getTypeAllocSize(Ty)); in visitGetElementPtr() local
2806 APInt Offs = ElementSize * CI->getValue().sextOrTrunc(PtrSize); in visitGetElementPtr()
2828 if (ElementSize != 1) { in visitGetElementPtr()
2829 if (ElementSize.isPowerOf2()) { in visitGetElementPtr()
2830 unsigned Amt = ElementSize.logBase2(); in visitGetElementPtr()
2835 SDValue Scale = DAG.getConstant(ElementSize, dl, IdxN.getValueType()); in visitGetElementPtr()
HDSelectionDAG.cpp3594 unsigned ElementSize = VT.getSizeInBits(); in getNode() local
3595 unsigned Shift = ElementSize * N2C->getZExtValue(); in getNode()
3597 return getConstant(ShiftedVal.trunc(ElementSize), DL, VT); in getNode()
/NextBSD/contrib/llvm/lib/Transforms/Instrumentation/
HDAddressSanitizer.cpp1973 const unsigned ElementSize = in handleDynamicAllocaCall() local
1977 ConstantInt::get(IntptrTy, ElementSize)); in handleDynamicAllocaCall()
/NextBSD/contrib/llvm/lib/Target/AArch64/
HDAArch64FastISel.cpp4882 uint64_t ElementSize = DL.getTypeAllocSize(Ty); in selectGetElementPtr() local
4889 if (ElementSize != 1) { in selectGetElementPtr()
4890 unsigned C = fastEmit_i(VT, VT, ISD::Constant, ElementSize); in selectGetElementPtr()
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaExpr.cpp7897 CharUnits ElementSize = Context.getTypeSizeInChars(rpointee); in CheckSubtractionOperands() local
7898 if (ElementSize.isZero()) { in CheckSubtractionOperands()