Home
last modified time | relevance | path

Searched refs:ElementSize (Results 1 – 25 of 66) 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/llvm/include/llvm/Analysis/
H A DTensorSpec.h86 size_t getElementByteSize() const { return ElementSize; } in getElementByteSize()
88 size_t getTotalTensorBufferSize() const { return ElementCount * ElementSize; } in getTotalTensorBufferSize()
95 : TensorSpec(NewName, Other.Port, Other.Type, Other.ElementSize, in TensorSpec()
102 size_t ElementSize, const std::vector<int64_t> &Shape);
111 size_t ElementSize = 0; variable
H A DDelinearization.h35 const SCEV *ElementSize);
113 SmallVectorImpl<const SCEV *> &Sizes, const SCEV *ElementSize);
H A DTargetTransformInfoImpl.h1104 int64_t ElementSize = in getGEPCost() local
1108 ConstIdx->getValue().sextOrTrunc(PtrSizeBits) * ElementSize; in getGEPCost()
1114 Scale = ElementSize; in getGEPCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRuntimeLibcallUtil.h82 Libcall getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
87 Libcall getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
92 Libcall getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp218 Value *S, uint64_t ElementSize,
233 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
475 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP() argument
483 PtrIdxTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP()
489 uint64_t ElementSize, in factorArrayIndex() argument
494 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
511 allocateCandidatesAndFindBasisForGEP(Base, RHS, LHS, ElementSize, GEP); in factorArrayIndex()
518 allocateCandidatesAndFindBasisForGEP(Base, PowerOf2, LHS, ElementSize, GEP); in factorArrayIndex()
544 uint64_t ElementSize = GTI.getSequentialElementStride(*DL); in allocateCandidatesAndFindBasisForGEP() local
549 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
[all …]
H A DSeparateConstOffsetFromGEP.cpp886 APInt ElementSize = APInt(PtrIndexTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() local
889 if (ElementSize != 1) { in lowerToSingleIndexGEPs()
890 if (ElementSize.isPowerOf2()) { in lowerToSingleIndexGEPs()
892 Idx, ConstantInt::get(PtrIndexTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
895 Builder.CreateMul(Idx, ConstantInt::get(PtrIndexTy, ElementSize)); in lowerToSingleIndexGEPs()
946 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics() local
949 if (ElementSize != 1) { in lowerToArithmetics()
950 if (ElementSize.isPowerOf2()) { in lowerToArithmetics()
952 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
954 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics()
H A DSROA.cpp2024 uint64_t ElementSize, in isVectorPromotionViableForSlice() argument
2029 uint64_t BeginIndex = BeginOffset / ElementSize; in isVectorPromotionViableForSlice()
2030 if (BeginIndex * ElementSize != BeginOffset || in isVectorPromotionViableForSlice()
2034 uint64_t EndIndex = EndOffset / ElementSize; in isVectorPromotionViableForSlice()
2035 if (EndIndex * ElementSize != EndOffset || in isVectorPromotionViableForSlice()
2046 Type::getIntNTy(Ty->getContext(), NumElements * ElementSize * 8); in isVectorPromotionViableForSlice()
2098 uint64_t ElementSize = in checkVectorTypeForPromotion() local
2103 if (ElementSize % 8) in checkVectorTypeForPromotion()
2107 ElementSize /= 8; in checkVectorTypeForPromotion()
2110 if (!isVectorPromotionViableForSlice(P, S, VTy, ElementSize, DL)) in checkVectorTypeForPromotion()
[all …]
H A DNaryReassociate.cpp433 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); in tryReassociateGEPAtIndex() local
448 if (IndexedSize % ElementSize != 0) in tryReassociateGEPAtIndex()
455 if (IndexedSize != ElementSize) { in tryReassociateGEPAtIndex()
457 RHS, ConstantInt::get(PtrIdxTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
/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.cpp280 const SCEV *ElementSize) { in findArrayDimensions() argument
281 if (Terms.size() < 1 || !ElementSize) in findArrayDimensions()
308 SCEVDivision::divide(SE, Term, ElementSize, &Q, &R); in findArrayDimensions()
332 Sizes.push_back(ElementSize); in findArrayDimensions()
451 const SCEV *ElementSize) { in delinearize() argument
460 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()
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()
160 const uint16_t ElementSize = VectorSpecifiedActions.first; computeTables() local
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegacyLegalizerInfo.h347 const unsigned ElementSize, in setVectorNumElementAction() argument
350 if (NumElements2Actions[OpcodeIdx].find(ElementSize) == in setVectorNumElementAction()
352 NumElements2Actions[OpcodeIdx][ElementSize] = {{}}; in setVectorNumElementAction()
354 NumElements2Actions[OpcodeIdx].find(ElementSize)->second; in setVectorNumElementAction()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1192 uint64_t ElementSize = 0; in printModuleLevelGV() local
1203 ElementSize = DL.getTypeStoreSize(ETy); in printModuleLevelGV()
1211 AggBuffer aggBuffer(ElementSize, *this); in printModuleLevelGV()
1215 if (ElementSize % ptrSize || in printModuleLevelGV()
1225 O << "[" << ElementSize << "] = {"; in printModuleLevelGV()
1231 O << "[" << ElementSize / ptrSize << "] = {"; in printModuleLevelGV()
1238 O << "[" << ElementSize << "] = {"; in printModuleLevelGV()
1245 if (ElementSize) { in printModuleLevelGV()
1247 O << ElementSize; in printModuleLevelGV()
1254 if (ElementSize) { in printModuleLevelGV()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/
H A DUDTLayout.h102 uint32_t getElementSize() const { return ElementSize; } in getElementSize()
105 uint32_t ElementSize = 0;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundCheckerV2.cpp70 const std::optional<int64_t> ElementSize; member in __anonb48263820111::StateUpdateReporter
79 ElementSize(determineElementSize(ElementType, C)) {} in StateUpdateReporter()
495 ElementSize && tryDividePair(OffsetN, ExtentN, *ElementSize); in getMessage()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp194 Value *Ptr, Value *Val, Value *Size, Align Alignment, uint32_t ElementSize, in CreateElementUnorderedAtomicMemSet() argument
197 Value *Ops[] = {Ptr, Val, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemSet()
259 uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag, in CreateElementUnorderedAtomicMemCpy() argument
261 assert(DstAlign >= ElementSize && in CreateElementUnorderedAtomicMemCpy()
263 assert(SrcAlign >= ElementSize && in CreateElementUnorderedAtomicMemCpy()
265 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemCpy()
375 uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag, in CreateElementUnorderedAtomicMemMove() argument
377 assert(DstAlign >= ElementSize && in CreateElementUnorderedAtomicMemMove()
379 assert(SrcAlign >= ElementSize && in CreateElementUnorderedAtomicMemMove()
381 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemMove()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DSVEInstrFormats.td375 let ElementSize = pprty.ElementSize;
817 let ElementSize = pprty.ElementSize;
1007 let ElementSize = ElementSizeNone;
1128 let ElementSize = ElementSizeNone;
1754 let ElementSize = ElementSizeNone;
1930 let ElementSize = ElementSizeNone;
2072 let ElementSize = zprty.ElementSize;
2112 let ElementSize = zprty.ElementSize;
2196 let ElementSize = ElementSizeNone;
2323 let ElementSize = zprty.ElementSize;
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaHLSL.cpp66 unsigned ElementSize = in calculateLegacyCbufferSize() local
68 unsigned AlignedElementSize = llvm::alignTo(ElementSize, CBufferAlign); in calculateLegacyCbufferSize()
69 Size = AlignedElementSize * (ElementCount - 1) + ElementSize; in calculateLegacyCbufferSize()
73 unsigned ElementSize = in calculateLegacyCbufferSize() local
75 Size = ElementSize * ElementCount; in calculateLegacyCbufferSize()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp450 unsigned VecStoreSize, unsigned ElementSize, in promoteAllocaUserToVector() argument
607 unsigned NumCopied = Length->getZExtValue() / ElementSize; in promoteAllocaUserToVector()
778 unsigned ElementSize = DL->getTypeSizeInBits(VecEltTy) / 8; in tryPromoteAllocaToVector() local
838 if (!Len || (Len->getZExtValue() % ElementSize)) in tryPromoteAllocaToVector()
928 I, *DL, VectorTy, VecStoreSize, ElementSize, TransferInfo, GEPVectorIdx, in tryPromoteAllocaToVector()
941 I, *DL, VectorTy, VecStoreSize, ElementSize, TransferInfo, GEPVectorIdx, in tryPromoteAllocaToVector()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp526 RTLIB::Libcall RTLIB::getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { in getMEMCPY_ELEMENT_UNORDERED_ATOMIC() argument
527 switch (ElementSize) { in getMEMCPY_ELEMENT_UNORDERED_ATOMIC()
543 RTLIB::Libcall RTLIB::getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { in getMEMMOVE_ELEMENT_UNORDERED_ATOMIC() argument
544 switch (ElementSize) { in getMEMMOVE_ELEMENT_UNORDERED_ATOMIC()
560 RTLIB::Libcall RTLIB::getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { in getMEMSET_ELEMENT_UNORDERED_ATOMIC() argument
561 switch (ElementSize) { in getMEMSET_ELEMENT_UNORDERED_ATOMIC()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DMCAsmParser.h98 unsigned ElementSize = 0; member
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1165 unsigned ElementSize = in InitializeMemory() local
1168 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
1178 unsigned ElementSize = in InitializeMemory() local
1181 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DUDTLayout.cpp104 ElementSize = VTableType->getLength(); in VTableLayoutItem()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DNeonEmitter.cpp1591 unsigned ElementSize; in emitDagShuffle() member in Intrinsic::DagEmitter::emitDagShuffle::Rev
1594 Rev(unsigned ElementSize) : ElementSize(ElementSize) {} in emitDagShuffle() argument
1602 VectorSize /= ElementSize; in emitDagShuffle()

123