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

12

/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSparseBitVector.h41 template <unsigned ElementSize = 128> struct SparseBitVectorElement {
47 BITWORDS_PER_ELEMENT = (ElementSize + BITWORD_SIZE - 1) / BITWORD_SIZE,
48 BITS_PER_ELEMENT = ElementSize
254 template <unsigned ElementSize = 128>
256 using ElementList = std::list<SparseBitVectorElement<ElementSize>>;
260 BITWORD_SIZE = SparseBitVectorElement<ElementSize>::BITWORD_SIZE
279 const_cast<SparseBitVector<ElementSize> *>(this)->Elements.begin();
281 const_cast<SparseBitVector<ElementSize> *>(this)->Elements.end();
322 const SparseBitVector<ElementSize> *BitVector = nullptr;
334 typename SparseBitVectorElement<ElementSize>
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRuntimeLibcalls.h66 Libcall getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
71 Libcall getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
76 Libcall getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp203 // A helper function that scales Idx with ElementSize before invoking
206 Value *S, uint64_t ElementSize,
221 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
471 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize,
473 // I = B + sext(Idx *nsw S) * ElementSize
474 // = B + (sext(Idx) * sext(S)) * ElementSize
475 // = B + (sext(Idx) * ElementSize) * sext(S)
479 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true);
485 uint64_t ElementSize,
490 ArrayIdx, ElementSize, GE
470 allocateCandidatesAndFindBasisForGEP( const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, Instruction *I) argument
483 factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize, GetElementPtrInst *GEP) argument
540 uint64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); local
[all...]
H A DSeparateConstOffsetFromGEP.cpp859 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), local
862 if (ElementSize != 1) {
863 if (ElementSize.isPowerOf2()) {
865 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
867 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
920 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), local
923 if (ElementSize != 1) {
924 if (ElementSize.isPowerOf2()) {
926 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
928 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
[all...]
H A DNaryReassociate.cpp404 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); local
407 // necessarily divisible by ElementSize. For example,
419 if (IndexedSize % ElementSize != 0)
426 if (IndexedSize != ElementSize) {
428 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize));
H A DSROA.cpp1471 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8);
1472 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1475 Offset -= NumSkippedElements * ElementSize;
1483 APInt ElementSize(Offset.getBitWidth(),
1485 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1489 Offset -= NumSkippedElements * ElementSize;
1538 APInt ElementSize(Offset.getBitWidth(),
1540 if (ElementSize == 0)
1542 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1544 Offset -= NumSkippedElements * ElementSize;
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1168 unsigned int ElementSize = 0; local
1179 ElementSize = DL.getTypeStoreSize(ETy);
1187 AggBuffer aggBuffer(ElementSize, O, *this);
1194 O << ElementSize / 8; local
1199 O << ElementSize / 4; local
1206 O << ElementSize; local
1215 if (ElementSize) {
1217 O << ElementSize; local
1224 if (ElementSize) {
1226 O << ElementSize; local
1343 int64_t ElementSize = 0; local
1358 O << ElementSize; local
1889 int ElementSize = DL.getTypeAllocSize(CPV->getType()); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/
H A DUDTLayout.h103 uint32_t getElementSize() const { return ElementSize; }
106 uint32_t ElementSize = 0; member in class:llvm::pdb::VTableLayoutItem
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp111 Value *Ptr, Value *Val, Value *Size, Align Alignment, uint32_t ElementSize,
115 Value *Ops[] = {Ptr, Val, Size, getInt32(ElementSize)};
202 uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag,
204 assert(DstAlign >= ElementSize &&
206 assert(SrcAlign >= ElementSize &&
211 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)};
277 uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag,
279 assert(DstAlign >= ElementSize &&
281 assert(SrcAlign >= ElementSize &&
286 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)};
110 CreateElementUnorderedAtomicMemSet( Value *Ptr, Value *Val, Value *Size, Align Alignment, uint32_t ElementSize, MDNode *TBAATag, MDNode *ScopeTag, MDNode *NoAliasTag) argument
200 CreateElementUnorderedAtomicMemCpy( Value *Dst, Align DstAlign, Value *Src, Align SrcAlign, Value *Size, uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag, MDNode *ScopeTag, MDNode *NoAliasTag) argument
275 CreateElementUnorderedAtomicMemMove( Value *Dst, Align DstAlign, Value *Src, Align SrcAlign, Value *Size, uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag, MDNode *ScopeTag, MDNode *NoAliasTag) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerInfo.cpp350 const uint16_t ElementSize = VectorSpecifiedActions.first; local
351 ElementSizesSeen.push_back({ElementSize, Legal});
359 assert(BitsizeAndAction.first % ElementSize == 0);
360 const uint16_t NumElements = BitsizeAndAction.first / ElementSize;
364 Opcode, TypeIdx, ElementSize,
H A DIRTranslator.cpp228 uint64_t ElementSize = DL->getTypeAllocSize(AI.getAllocatedType());
230 ElementSize * cast<ConstantInt>(AI.getArraySize())->getZExtValue();
1085 uint64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); local
1090 Offset += ElementSize * CI->getSExtValue();
1112 // N = N + Idx * ElementSize;
1113 // Avoid doing it for ElementSize of 1.
1115 if (ElementSize != 1) {
1117 getLLTForType(*OffsetIRTy, *DL), ElementSize);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h545 uint32_t ElementSize,
550 Align(Alignment), ElementSize,
556 uint32_t ElementSize,
597 uint32_t ElementSize, MDNode *TBAATag = nullptr,
604 uint32_t ElementSize, MDNode *TBAATag = nullptr,
610 Dst, Align(DstAlign), Src, Align(SrcAlign), getInt64(Size), ElementSize,
617 uint32_t ElementSize, MDNode *TBAATag = nullptr,
623 Dst, Align(DstAlign), Src, Align(SrcAlign), Size, ElementSize, TBAATag,
653 uint32_t ElementSize, MDNode *TBAATag = nullptr,
660 uint32_t ElementSize, MDNod
543 CreateElementUnorderedAtomicMemSet(Value *Ptr, Value *Val, uint64_t Size, Align Alignment, uint32_t ElementSize, MDNode *TBAATag = nullptr, MDNode *ScopeTag = nullptr, MDNode *NoAliasTag = nullptr) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h1298 const unsigned ElementSize,
1301 if (NumElements2Actions[OpcodeIdx].find(ElementSize) ==
1303 NumElements2Actions[OpcodeIdx][ElementSize] = {{}};
1305 NumElements2Actions[OpcodeIdx].find(ElementSize)->second;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DUDTLayout.cpp101 ElementSize = VTableType->getLength();
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h778 int64_t ElementSize = DL.getTypeAllocSize(GTI.getIndexedType()); local
781 ConstIdx->getValue().sextOrTrunc(PtrSizeBits) * ElementSize;
787 Scale = ElementSize;
H A DValueTracking.h327 unsigned ElementSize, uint64_t Offset = 0);
H A DScalarEvolution.h984 const SCEV *ElementSize);
1081 const SCEV *ElementSize);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp354 unsigned ElementSize = DL.getTypeAllocSize(T); local
356 ElementSize = DL.getStructLayout(ST)->getSizeInBytes();
358 // If malloc call's arg can be determined to be a multiple of ElementSize,
362 if (ComputeMultiple(MallocArg, ElementSize, Multiple, LookThroughSExt))
H A DBasicAliasAnalysis.cpp1163 const uint64_t ElementSize = local
1165 if (V1Size != ElementSize || V2Size != ElementSize)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp487 RTLIB::Libcall RTLIB::getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { argument
488 switch (ElementSize) {
504 RTLIB::Libcall RTLIB::getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { argument
505 switch (ElementSize) {
521 RTLIB::Libcall RTLIB::getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { argument
522 switch (ElementSize) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandPseudoInsts.cpp455 uint64_t ElementSize = TII->getElementSizeForOpcode(Opcode); local
457 switch (ElementSize) {
476 llvm_unreachable("Unsupported ElementSize");
487 assert(ElementSize != AArch64::ElementSizeNone &&
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1150 unsigned ElementSize = local
1153 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize);
1163 unsigned ElementSize = local
1166 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize);
/freebsd-13-stable/contrib/llvm-project/clang/utils/TableGen/
H A DNeonEmitter.cpp1588 unsigned ElementSize;
1591 Rev(unsigned ElementSize) : ElementSize(ElementSize) {}
1599 VectorSize /= ElementSize;
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp998 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementType); local
1000 BeginPtr.getAlignment().alignmentOfArrayElement(ElementSize);
1055 ElementSize));
1113 StartAlign.alignmentAtOffset((i + 1) * ElementSize));
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DType.cpp144 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity(); local
152 if (llvm::isPowerOf2_64(ElementSize)) {
153 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize);
158 if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 &&
160 uint64_t TotalSize = NumElements.getZExtValue() * ElementSize;
170 llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize));

Completed in 415 milliseconds

12