Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSparseBitVector.h42 template <unsigned ElementSize = 128> struct SparseBitVectorElement {
48 BITWORDS_PER_ELEMENT = (ElementSize + BITWORD_SIZE - 1) / BITWORD_SIZE,
49 BITS_PER_ELEMENT = ElementSize
255 template <unsigned ElementSize = 128>
257 using ElementList = std::list<SparseBitVectorElement<ElementSize>>;
261 BITWORD_SIZE = SparseBitVectorElement<ElementSize>::BITWORD_SIZE
280 const_cast<SparseBitVector<ElementSize> *>(this)->Elements.begin(); in FindLowerBoundImpl()
282 const_cast<SparseBitVector<ElementSize> *>(this)->Elements.end(); in FindLowerBoundImpl()
323 const SparseBitVector<ElementSize> *BitVector = nullptr;
335 typename SparseBitVectorElement<ElementSize>
[all...]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DDynamicExtent.cpp61 DefinedOrUnknownSVal ElementSize) { in getDynamicElementCount() argument
65 SVB.evalBinOp(State, BO_Div, Size, ElementSize, SVB.getArrayIndexType()) in getDynamicElementCount()
77 DefinedOrUnknownSVal ElementSize = getElementExtent(ElementTy, SVB); in getDynamicElementCount() local
78 if (ElementSize.isZeroConstant()) in getDynamicElementCount()
82 ElementSize); in getDynamicElementCount()
113 DefinedOrUnknownSVal ElementSize = getElementExtent(ElementTy, SVB); in getDynamicElementCountWithOffset() local
114 if (ElementSize.isZeroConstant()) in getDynamicElementCountWithOffset()
118 ElementSize); in getDynamicElementCountWithOffset()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTensorSpec.h87 size_t getElementByteSize() const { return ElementSize; } in getElementByteSize()
89 size_t getTotalTensorBufferSize() const { return ElementCount * ElementSize; } in getTotalTensorBufferSize()
96 : TensorSpec(NewName, Other.Port, Other.Type, Other.ElementSize, in TensorSpec()
103 size_t ElementSize, const std::vector<int64_t> &Shape);
112 size_t ElementSize = 0; variable
H A DDelinearization.h35 const SCEV *ElementSize);
113 SmallVectorImpl<const SCEV *> &Sizes, const SCEV *ElementSize);
H A DTargetTransformInfoImpl.h1276 int64_t ElementSize = in getGEPCost() local
1280 ConstIdx->getValue().sextOrTrunc(PtrSizeBits) * ElementSize; in getGEPCost()
1286 Scale = ElementSize; in getGEPCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp222 Value *S, uint64_t ElementSize,
237 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
479 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP() argument
487 PtrIdxTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP()
493 uint64_t ElementSize, in factorArrayIndex() argument
498 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
515 allocateCandidatesAndFindBasisForGEP(Base, RHS, LHS, ElementSize, GEP); in factorArrayIndex()
522 allocateCandidatesAndFindBasisForGEP(Base, PowerOf2, LHS, ElementSize, GEP); in factorArrayIndex()
548 uint64_t ElementSize = GTI.getSequentialElementStride(*DL); in allocateCandidatesAndFindBasisForGEP() local
553 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
[all …]
H A DSeparateConstOffsetFromGEP.cpp916 APInt ElementSize = APInt(PtrIndexTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() local
919 if (ElementSize != 1) { in lowerToSingleIndexGEPs()
920 if (ElementSize.isPowerOf2()) { in lowerToSingleIndexGEPs()
922 Idx, ConstantInt::get(PtrIndexTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
925 Builder.CreateMul(Idx, ConstantInt::get(PtrIndexTy, ElementSize)); in lowerToSingleIndexGEPs()
976 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics() local
979 if (ElementSize != 1) { in lowerToArithmetics()
980 if (ElementSize.isPowerOf2()) { in lowerToArithmetics()
982 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
984 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics()
H A DNaryReassociate.cpp431 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); in tryReassociateGEPAtIndex() local
446 if (IndexedSize % ElementSize != 0) in tryReassociateGEPAtIndex()
453 if (IndexedSize != ElementSize) { in tryReassociateGEPAtIndex()
455 RHS, ConstantInt::get(PtrIdxTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
H A DSROA.cpp2116 uint64_t ElementSize, in isVectorPromotionViableForSlice() argument
2122 uint64_t BeginIndex = BeginOffset / ElementSize; in isVectorPromotionViableForSlice()
2123 if (BeginIndex * ElementSize != BeginOffset || in isVectorPromotionViableForSlice()
2127 uint64_t EndIndex = EndOffset / ElementSize; in isVectorPromotionViableForSlice()
2128 if (EndIndex * ElementSize != EndOffset || in isVectorPromotionViableForSlice()
2139 Type::getIntNTy(Ty->getContext(), NumElements * ElementSize * 8); in isVectorPromotionViableForSlice()
2191 uint64_t ElementSize = in checkVectorTypeForPromotion() local
2196 if (ElementSize % 8) in checkVectorTypeForPromotion()
2200 ElementSize /= 8; in checkVectorTypeForPromotion()
2203 if (!isVectorPromotionViableForSlice(P, S, VTy, ElementSize, DL, VScale)) in checkVectorTypeForPromotion()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRuntimeLibcallUtil.h108 LLVM_ABI Libcall getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
113 LLVM_ABI Libcall getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
118 LLVM_ABI Libcall getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTensorSpec.cpp63 size_t ElementSize, const std::vector<int64_t> &Shape) in TensorSpec() argument
67 ElementSize(ElementSize) {} in TensorSpec()
H A DDelinearization.cpp279 const SCEV *ElementSize) { in findArrayDimensions() argument
280 if (Terms.size() < 1 || !ElementSize) in findArrayDimensions()
307 SCEVDivision::divide(SE, Term, ElementSize, &Q, &R); in findArrayDimensions()
331 Sizes.push_back(ElementSize); in findArrayDimensions()
450 const SCEV *ElementSize) { in delinearize() argument
459 findArrayDimensions(SE, Terms, Sizes, ElementSize); in delinearize()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegacyLegalizerInfo.cpp163 const uint16_t ElementSize = VectorSpecifiedActions.first; in computeTables() local
164 ElementSizesSeen.push_back({ElementSize, Legal}); in computeTables()
172 assert(BitsizeAndAction.first % ElementSize == 0); in computeTables()
173 const uint16_t NumElements = BitsizeAndAction.first / ElementSize; in computeTables()
177 Opcode, TypeIdx, ElementSize, in computeTables()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1009 const uint64_t ElementSize = DL.getTypeStoreSize(ETy); in printModuleLevelGV() local
1017 AggBuffer aggBuffer(ElementSize, *this); in printModuleLevelGV()
1021 if (ElementSize % ptrSize || in printModuleLevelGV()
1031 O << "[" << ElementSize << "] = {"; in printModuleLevelGV()
1037 O << "[" << ElementSize / ptrSize << "] = {"; in printModuleLevelGV()
1044 O << "[" << ElementSize << "] = {"; in printModuleLevelGV()
1051 if (ElementSize) in printModuleLevelGV()
1052 O << "[" << ElementSize << "]"; in printModuleLevelGV()
1057 if (ElementSize) in printModuleLevelGV()
1058 O << "[" << ElementSize << "]"; in printModuleLevelGV()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp497 unsigned VecStoreSize, unsigned ElementSize, in promoteAllocaUserToVector() argument
654 unsigned NumCopied = Length->getZExtValue() / ElementSize; in promoteAllocaUserToVector()
816 unsigned ElementSize = DL->getTypeSizeInBits(ElemTy) / 8; in tryPromoteAllocaToVector() local
817 if (ElementSize > 0) { in tryPromoteAllocaToVector()
823 if (NumElems * ElementSize != AllocaSize) in tryPromoteAllocaToVector()
824 NumElems = AllocaSize / ElementSize; in tryPromoteAllocaToVector()
825 if (NumElems > 0 && (AllocaSize % ElementSize) == 0) in tryPromoteAllocaToVector()
873 unsigned ElementSize = ElementSizeInBits / 8; in tryPromoteAllocaToVector() local
874 assert(ElementSize > 0); in tryPromoteAllocaToVector()
934 if (!Len || (Len->getZExtValue() % ElementSize)) in tryPromoteAllocaToVector()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/
H A DUDTLayout.h105 uint32_t getElementSize() const { return ElementSize; } in getElementSize()
108 uint32_t ElementSize = 0;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundChecker.cpp84 const std::optional<int64_t> ElementSize; member in __anon612badfa0111::StateUpdateReporter
93 ElementSize(determineElementSize(ElementType, C)) {} in StateUpdateReporter()
513 ElementSize && tryDividePair(OffsetN, ExtentN, *ElementSize); in getMessage()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp195 Value *Ptr, Value *Val, Value *Size, Align Alignment, uint32_t ElementSize, in CreateElementUnorderedAtomicMemSet() argument
198 Value *Ops[] = {Ptr, Val, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemSet()
233 uint32_t ElementSize, const AAMDNodes &AAInfo) { in CreateElementUnorderedAtomicMemCpy() argument
234 assert(DstAlign >= ElementSize && in CreateElementUnorderedAtomicMemCpy()
236 assert(SrcAlign >= ElementSize && in CreateElementUnorderedAtomicMemCpy()
238 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemCpy()
332 uint32_t ElementSize, const AAMDNodes &AAInfo) { in CreateElementUnorderedAtomicMemMove() argument
333 assert(DstAlign >= ElementSize && in CreateElementUnorderedAtomicMemMove()
335 assert(SrcAlign >= ElementSize && in CreateElementUnorderedAtomicMemMove()
337 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemMove()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegacyLegalizerInfo.h345 const unsigned ElementSize, in setVectorNumElementAction() argument
349 NumElements2Actions[OpcodeIdx][ElementSize]; in setVectorNumElementAction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DSVEInstrFormats.td443 let ElementSize = pprty.ElementSize;
914 let ElementSize = pprty.ElementSize;
1104 let ElementSize = ElementSizeNone;
1231 let ElementSize = ElementSizeNone;
1889 let ElementSize = ElementSizeNone;
2067 let ElementSize = ElementSizeNone;
2210 let ElementSize = zprty.ElementSize;
2250 let ElementSize = zprty.ElementSize;
2334 let ElementSize = ElementSizeNone;
2463 let ElementSize = zprty.ElementSize;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp561 RTLIB::Libcall RTLIB::getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { in getMEMCPY_ELEMENT_UNORDERED_ATOMIC() argument
562 switch (ElementSize) { in getMEMCPY_ELEMENT_UNORDERED_ATOMIC()
578 RTLIB::Libcall RTLIB::getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { in getMEMMOVE_ELEMENT_UNORDERED_ATOMIC() argument
579 switch (ElementSize) { in getMEMMOVE_ELEMENT_UNORDERED_ATOMIC()
595 RTLIB::Libcall RTLIB::getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { in getMEMSET_ELEMENT_UNORDERED_ATOMIC() argument
596 switch (ElementSize) { in getMEMSET_ELEMENT_UNORDERED_ATOMIC()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DMCAsmParser.h99 unsigned ElementSize = 0; member
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1161 unsigned ElementSize = in InitializeMemory() local
1164 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
1174 unsigned ElementSize = in InitializeMemory() local
1177 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DUDTLayout.cpp103 ElementSize = VTableType->getLength(); in VTableLayoutItem()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DNeonEmitter.cpp1647 unsigned ElementSize; in emitDagShuffle() member in Intrinsic::DagEmitter::emitDagShuffle::Rev
1650 Rev(unsigned ElementSize) : ElementSize(ElementSize) {} in emitDagShuffle() argument
1658 VectorSize /= ElementSize; in emitDagShuffle()

123