Home
last modified time | relevance | path

Searched refs:getTypeAllocSize (Results 1 – 25 of 132) sorted by relevance

123456

/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp54 Offset = DL.getTypeAllocSize(GTI.getIndexedType()) * ElemCount; in getMaxPreservedAlignment()
126 DL.getTypeAllocSize(GTI.getIndexedType()))) in accumulateConstantOffset()
140 DL.getTypeAllocSize(GTI.getIndexedType()))) in accumulateConstantOffset()
187 DL.getTypeAllocSize(GTI.getIndexedType())); in collectOffset()
197 APInt(BitWidth, DL.getTypeAllocSize(GTI.getIndexedType())); in collectOffset()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetObjectFile.cpp71 GVA->getParent()->getDataLayout().getTypeAllocSize(Ty)); in isGlobalInSmallSection()
103 return isInSmallSection(DL.getTypeAllocSize(CN->getType())); in isConstantInSmallSection()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineFunction.cpp56 StaticLDSSize += DL.getTypeAllocSize(GV.getValueType()); in allocateLDSGlobal()
79 assert(DL.getTypeAllocSize(GV.getValueType()).isZero()); in setDynLDSAlign()
H A DAMDGPURewriteOutArguments.cpp153 if (DL->getTypeAllocSize(SrcEltTy) != DL->getTypeAllocSize(DestEltTy)) in checkArgumentUses()
H A DAMDGPULowerModuleLDSPass.cpp194 TypeSize GVSize = DL.getTypeAllocSize(GV->getValueType()); in processUsedLDS()
217 OptimizedStructLayoutField F(GV, DL.getTypeAllocSize(GV->getValueType()), in processUsedLDS()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiTargetObjectFile.cpp98 GVA->getParent()->getDataLayout().getTypeAllocSize(Ty)); in isGlobalInSmallSectionImpl()
116 return isInSmallSection(DL.getTypeAllocSize(CN->getType())); in isConstantInSmallSection()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsTargetObjectFile.cpp146 GVA->getParent()->getDataLayout().getTypeAllocSize(Ty)); in IsGlobalInSmallSectionImpl()
172 LocalSData && IsInSmallSection(DL.getTypeAllocSize(CN->getType()))); in IsConstantInSmallSection()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DGlobalMerge.cpp227 return DL.getTypeAllocSize(GV1->getValueType()).getFixedSize() < in doMerge()
228 DL.getTypeAllocSize(GV2->getValueType()).getFixedSize(); in doMerge()
471 MergedSize += DL.getTypeAllocSize(Ty); in doMerge()
644 if (DL.getTypeAllocSize(Ty) < MaxOffset) { in doInitialization()
H A DInterleavedLoadCombinePass.cpp696 unsigned Size = DL.getTypeAllocSize(VTy->getElementType()); in isInterleaved()
748 unsigned NewSize = DL.getTypeAllocSize(Result.VTy->getElementType()); in computeFromBCI()
749 unsigned OldSize = DL.getTypeAllocSize(VTy->getElementType()); in computeFromBCI()
1023 unsigned ResultSize = DL.getTypeAllocSize(GEP.getResultElementType()); in computePolynomialFromPointer()
1060 unsigned Size = DL.getTypeAllocSize(C0->VTy->getElementType()); in findPattern()
H A DStackProtector.cpp136 if (SSPBufferSize <= M->getDataLayout().getTypeAllocSize(AT)) { in ContainsProtectableArray()
354 if (Strong && HasAddressTaken(AI, M->getDataLayout().getTypeAllocSize( in RequiresStackProtector()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp358 total_size = DL.getTypeAllocSize(CA->getType()->getElementType()) * in getConstantFieldValue()
391 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in fillGenericConstant()
432 Offset += DL.getTypeAllocSize(CDA->getElementAsConstant(i)->getType()); in fillConstantDataArray()
444 Offset += DL.getTypeAllocSize(CA->getOperand(i)->getType()); in fillConstantArray()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp210 uint64_t DstSize = DstDL.getTypeAllocSize(DstGV->getValueType()); in computeResultingSelectionKind()
211 uint64_t SrcSize = SrcDL.getTypeAllocSize(SrcGV->getValueType()); in computeResultingSelectionKind()
311 uint64_t DestSize = DL.getTypeAllocSize(Dest.getValueType()); in shouldLinkFromSource()
312 uint64_t SrcSize = DL.getTypeAllocSize(Src.getValueType()); in shouldLinkFromSource()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuilder.h213 CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy->getElementType()));
230 CharUnits EltSize = CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy));
246 CharUnits::fromQuantity(DL.getTypeAllocSize(Addr.getElementType()));
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp365 unsigned totalsz = DL.getTypeAllocSize(Ty); in printReturnValStr()
1468 unsigned sz = DL.getTypeAllocSize(Ty); in emitFunctionParamList()
1565 unsigned sz = DL.getTypeAllocSize(ETy); in emitFunctionParamList()
1780 int s = DL.getTypeAllocSize(CPV->getType()); in bufferLEByte()
1878 unsigned int s = DL.getTypeAllocSize(CPV->getType()); in bufferLEByte()
1887 int ElementSize = DL.getTypeAllocSize(CPV->getType()); in bufferLEByte()
1911 for (unsigned I = 0, E = DL.getTypeAllocSize(CPV->getType()); I < E; ++I) { in bufferAggregateConstant()
1942 DL.getTypeAllocSize(ST) - in bufferAggregateConstant()
2065 if (DL.getTypeAllocSize(Ty) == DL.getTypeAllocSize(Op->getType())) in lowerConstantForGV()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp565 uint64_t Size = DL.getTypeAllocSize(GV->getValueType()); in emitGlobalVariable()
1679 uint64_t Size = DL.getTypeAllocSize(GA->getValueType()); in emitGlobalIndirectSymbol()
2567 if (DL.getTypeAllocSize(Ty).getFixedSize() <= in lowerConstant()
2568 DL.getTypeAllocSize(Op->getType()).getFixedSize()) in lowerConstant()
2703 uint64_t Bytes = DL.getTypeAllocSize(CDS->getType()); in emitGlobalConstantDataSequential()
2729 unsigned Size = DL.getTypeAllocSize(CDS->getType()); in emitGlobalConstantDataSequential()
2745 uint64_t Bytes = DL.getTypeAllocSize(CA->getType()); in emitGlobalConstantArray()
2761 unsigned Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantVector()
2772 unsigned Size = DL.getTypeAllocSize(CS->getType()); in emitGlobalConstantStruct()
2995 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantImpl()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp373 if (DL.getTypeAllocSize(AI.getAllocatedType()).getKnownMinSize() == 0) { in visitAllocaInst()
390 DL.getTypeAllocSize(EntryAI->getAllocatedType()) in visitAllocaInst()
713 auto EltSize = DL.getTypeAllocSize(ET); in unpackLoadToAggregate()
792 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
804 uint64_t InitSize = DL.getTypeAllocSize(GV->getValueType()); in isObjectSizeLessThanOrEq()
872 uint64_t TyAllocSize = DL.getTypeAllocSize(AllocTy).getFixedSize(); in canReplaceGEPIdxWithZero()
1236 auto EltSize = DL.getTypeAllocSize(AT->getElementType()); in unpackStoreToAggregate()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/Utils/
H A DLocal.h48 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()) & PtrSizeMask;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp358 unsigned ElementSize = DL.getTypeAllocSize(T); in computeArraySize()
671 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
697 APInt Size(IntTyBits, DL.getTypeAllocSize(MemoryTy)); in visitArgument()
803 APInt Size(IntTyBits, DL.getTypeAllocSize(GV.getValueType())); in visitGlobalVariable()
968 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
H A DLoopAccessAnalysis.cpp1103 int64_t Size = DL.getTypeAllocSize(PtrTy->getElementType()); in getPtrStride()
1408 uint64_t DistTypeSize = DL.getTypeAllocSize(Dist.getType()); in isSafeDependenceDistance()
1409 uint64_t ProductTypeSize = DL.getTypeAllocSize(Product->getType()); in isSafeDependenceDistance()
1525 uint64_t TypeByteSize = DL.getTypeAllocSize(ATy); in isDependent()
1530 TypeByteSize == DL.getTypeAllocSize(BTy) && in isDependent()
2165 uint64_t StrideTypeSize = DL.getTypeAllocSize(StrideExpr->getType()); in collectStridedAccess()
2166 uint64_t BETypeSize = DL.getTypeAllocSize(BETakenCount->getType()); in collectStridedAccess()
H A DTypeMetadataUtils.cpp149 uint64_t ElemSize = DL.getTypeAllocSize(VTableTy->getElementType()); in getPointerAtOffset()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp258 unsigned Size = GVar->getParent()->getDataLayout().getTypeAllocSize(GType); in isGlobalInSmallSection()
323 return DL.getTypeAllocSize(const_cast<Type*>(Ty)); in getSmallestAddressableSize()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h498 TypeSize getTypeAllocSize(Type *Ty) const { in getTypeAllocSize() function
512 return 8 * getTypeAllocSize(Ty); in getTypeAllocSizeInBits()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1505 DL.getTypeAllocSize(ElementTy).getFixedSize()); in getNaturalGEPRecursively()
1527 if (Offset.uge(DL.getTypeAllocSize(ElementTy).getFixedSize())) in getNaturalGEPRecursively()
1562 DL.getTypeAllocSize(ElementTy).getFixedSize()); in getNaturalGEPWithOffset()
3637 uint64_t AllocSize = DL.getTypeAllocSize(Ty).getFixedSize(); in stripAggregateTypeWrapping()
3651 if (AllocSize > DL.getTypeAllocSize(InnerTy).getFixedSize() || in stripAggregateTypeWrapping()
3673 if (Offset == 0 && DL.getTypeAllocSize(Ty).getFixedSize() == Size) in getTypePartition()
3675 if (Offset > DL.getTypeAllocSize(Ty).getFixedSize() || in getTypePartition()
3676 (DL.getTypeAllocSize(Ty).getFixedSize() - Offset) < Size) in getTypePartition()
4313 assert(DL.getTypeAllocSize(SliceTy).getFixedSize() >= P.size()); in rewritePartition()
4457 DL.getTypeAllocSize(AI.getAllocatedType()).getFixedSize(); in splitAlloca()
[all …]
H A DSeparateConstOffsetFromGEP.cpp830 ConstantOffset * DL->getTypeAllocSize(GTI.getIndexedType()); in accumulateByteOffset()
876 DL->getTypeAllocSize(GTI.getIndexedType())); in lowerToSingleIndexGEPs()
937 DL->getTypeAllocSize(GTI.getIndexedType())); in lowerToArithmetics()
1099 DL->getTypeAllocSize(GEP->getResultElementType())); in splitGEP()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp110 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); in LLVMABISizeOfType()

123456