Home
last modified time | relevance | path

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

1234

/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDScalarReplAggregates.cpp780 unsigned FromTypeSize = DL.getTypeAllocSize(FromType); in ConvertScalar_ExtractValue()
781 unsigned ToTypeSize = DL.getTypeAllocSize(ToType); in ConvertScalar_ExtractValue()
1508 uint64_t AllocaSize = DL.getTypeAllocSize(AI->getAllocatedType()); in performScalarRepl()
1634 isSafeMemAccess(Offset, DL.getTypeAllocSize(LIType), LIType, false, Info, in isSafeForScalarRepl()
1644 isSafeMemAccess(Offset, DL.getTypeAllocSize(SIType), SIType, true, Info, in isSafeForScalarRepl()
1694 isSafeMemAccess(Offset, DL.getTypeAllocSize(LIType), LIType, false, Info, in isSafePHISelectUseForScalarRepl()
1704 isSafeMemAccess(Offset, DL.getTypeAllocSize(SIType), SIType, true, Info, in isSafePHISelectUseForScalarRepl()
1811 MemSize == DL.getTypeAllocSize(Info.AI->getAllocatedType())) { in isSafeMemAccess()
1852 EltSize = DL.getTypeAllocSize(EltTy); in TypeHasComponent()
1856 EltSize = DL.getTypeAllocSize(EltTy); in TypeHasComponent()
[all …]
HDNaryReassociate.cpp309 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in isGEPFoldable()
443 uint64_t IndexedSize = DL->getTypeAllocSize(IndexedType); in tryReassociateGEPAtIndex()
445 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); in tryReassociateGEPAtIndex()
HDSeparateConstOffsetFromGEP.cpp713 ConstantOffset * DL->getTypeAllocSize(GTI.getIndexedType()); in accumulateByteOffset()
752 DL->getTypeAllocSize(GTI.getIndexedType())); in lowerToSingleIndexGEPs()
801 DL->getTypeAllocSize(GTI.getIndexedType())); in lowerToArithmetics()
962 DL->getTypeAllocSize(GEP->getType()->getElementType())); in splitGEP()
HDMemCpyOptimizer.cpp67 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()); in GetOffsetFromIndex()
612 uint64_t srcSize = DL.getTypeAllocSize(srcAlloca->getAllocatedType()) * in performCallSlotOptzn()
627 uint64_t destSize = DL.getTypeAllocSize(A->getAllocatedType()) * in performCallSlotOptzn()
647 uint64_t destSize = DL.getTypeAllocSize(StructTy); in performCallSlotOptzn()
1077 uint64_t ByValSize = DL.getTypeAllocSize(ByValTy); in processByValArgument()
HDSROA.cpp642 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder()
723 DL.getTypeAllocSize(GTI.getIndexedType())); in visitGetElementPtrInst()
1646 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPRecursively()
1668 if (Offset.uge(DL.getTypeAllocSize(ElementTy))) in getNaturalGEPRecursively()
1700 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPWithOffset()
3391 uint64_t AllocSize = DL.getTypeAllocSize(Ty); in stripAggregateTypeWrapping()
3405 if (AllocSize > DL.getTypeAllocSize(InnerTy) || in stripAggregateTypeWrapping()
3427 if (Offset == 0 && DL.getTypeAllocSize(Ty) == Size) in getTypePartition()
3429 if (Offset > DL.getTypeAllocSize(Ty) || in getTypePartition()
3430 (DL.getTypeAllocSize(Ty) - Offset) < Size) in getTypePartition()
[all …]
HDStraightLineStrengthReduce.cpp253 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in isGEPFoldable()
534 uint64_t ElementSize = DL->getTypeAllocSize(*GTI); in allocateCandidatesAndFindBasisForGEP()
568 DL->getTypeAllocSize( in emitBump()
/NextBSD/contrib/llvm/lib/Target/Mips/
HDMipsTargetObjectFile.cpp110 return IsInSmallSection(TM.getDataLayout()->getTypeAllocSize(Ty)); in IsGlobalInSmallSectionImpl()
136 LocalSData && IsInSmallSection(TM.getDataLayout()->getTypeAllocSize( in IsConstantInSmallSection()
/NextBSD/contrib/llvm/lib/CodeGen/AsmPrinter/
HDAsmPrinter.cpp379 uint64_t Size = DL->getTypeAllocSize(GV->getType()->getElementType()); in EmitGlobalVariable()
1264 TM.getDataLayout()->getTypeAllocSize(Ty); in EmitConstantPool()
1732 if (DL.getTypeAllocSize(Ty) == DL.getTypeAllocSize(Op->getType())) in lowerConstant()
1833 AP.TM.getDataLayout()->getTypeAllocSize( in emitGlobalConstantDataSequential()
1885 unsigned Size = DL.getTypeAllocSize(CDS->getType()); in emitGlobalConstantDataSequential()
1886 unsigned EmittedSize = DL.getTypeAllocSize(CDS->getType()->getElementType()) * in emitGlobalConstantDataSequential()
1901 uint64_t Bytes = DL.getTypeAllocSize(CA->getType()); in emitGlobalConstantArray()
1907 Offset += DL.getTypeAllocSize(CA->getOperand(i)->getType()); in emitGlobalConstantArray()
1917 unsigned Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantVector()
1918 unsigned EmittedSize = DL.getTypeAllocSize(CV->getType()->getElementType()) * in emitGlobalConstantVector()
[all …]
/NextBSD/contrib/llvm/lib/CodeGen/
HDGlobalMerge.cpp198 return (DL.getTypeAllocSize(Ty1) < DL.getTypeAllocSize(Ty2)); in doMerge()
432 MergedSize += DL.getTypeAllocSize(Ty); in doMerge()
568 if (DL.getTypeAllocSize(Ty) < MaxOffset) { in doInitialization()
/NextBSD/contrib/llvm/lib/Analysis/
HDVectorUtils.cpp227 unsigned GEPAllocSize = DL.getTypeAllocSize( in getGEPInductionOperand()
239 if (DL.getTypeAllocSize(*GEPTI) != GEPAllocSize) in getGEPInductionOperand()
318 DL.getTypeAllocSize(PtrTy->getElementType()); in getStrideFromPointer()
HDMemoryBuiltins.cpp220 unsigned ElementSize = DL.getTypeAllocSize(T); in computeArraySize()
432 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
451 APInt Size(IntTyBits, DL.getTypeAllocSize(PT->getElementType())); in visitArgument()
540 APInt Size(IntTyBits, DL.getTypeAllocSize(GV.getType()->getElementType())); in visitGlobalVariable()
669 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
HDLoads.cpp110 if (ByteOffset + LoadSize <= DL.getTypeAllocSize(BaseType) && in isSafeToLoadUnconditionally()
/NextBSD/contrib/llvm/lib/IR/
HDOperator.cpp40 DL.getTypeAllocSize(GTI.getIndexedType())); in accumulateConstantOffset()
HDDataLayout.cpp59 StructSize += DL.getTypeAllocSize(Ty); // Consume space for this data item in StructLayout()
488 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignmentInfo()
751 Result += (uint64_t)arrayIdx * getTypeAllocSize(Ty); in getIndexedOffset()
HDMangler.cpp102 ArgWords += RoundUpToAlignment(DL.getTypeAllocSize(Ty), PtrSize); in addByteCountSuffix()
/NextBSD/contrib/llvm/include/llvm/IR/
HDDataLayout.h388 uint64_t getTypeAllocSize(Type *Ty) const { in getTypeAllocSize() function
399 return 8 * getTypeAllocSize(Ty); in getTypeAllocSizeInBits()
/NextBSD/contrib/llvm/lib/Target/Hexagon/
HDHexagonTargetObjectFile.cpp78 return IsInSmallSection(TM.getDataLayout()->getTypeAllocSize(Ty)); in IsGlobalInSmallSection()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineLoadStoreAlloca.cpp235 if (DL.getTypeAllocSize(AI.getAllocatedType()) == 0) { in visitAllocaInst()
253 DL.getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst()
586 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
598 uint64_t InitSize = DL.getTypeAllocSize(GV->getType()->getElementType()); in isObjectSizeLessThanOrEq()
662 uint64_t TyAllocSize = DL.getTypeAllocSize(AllocTy); in canReplaceGEPIdxWithZero()
HDInstructionCombining.cpp911 if (int64_t TySize = DL.getTypeAllocSize(Ty)) { in FindElementAtOffset()
944 uint64_t EltSize = DL.getTypeAllocSize(AT->getElementType()); in FindElementAtOffset()
1339 DL.getTypeAllocSize(SeqTy->getElementType()) == 0) in visitGetElementPtrInst()
1539 uint64_t TyAllocSize = DL.getTypeAllocSize(Ty); in visitGetElementPtrInst()
1662 DL.getTypeAllocSize(SrcElTy->getArrayElementType()) == in visitGetElementPtrInst()
1663 DL.getTypeAllocSize(ResElTy)) { in visitGetElementPtrInst()
1684 uint64_t ResSize = DL.getTypeAllocSize(ResElTy); in visitGetElementPtrInst()
1685 uint64_t SrcSize = DL.getTypeAllocSize(SrcElTy); in visitGetElementPtrInst()
1722 uint64_t ResSize = DL.getTypeAllocSize(ResElTy); in visitGetElementPtrInst()
1724 DL.getTypeAllocSize(SrcElTy->getArrayElementType()); in visitGetElementPtrInst()
/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXAsmPrinter.cpp372 unsigned totalsz = DL.getTypeAllocSize(Ty); in printReturnValStr()
1490 unsigned sz = TD->getTypeAllocSize(Ty); in emitFunctionParamList()
1571 unsigned sz = TD->getTypeAllocSize(ETy); in emitFunctionParamList()
1792 int s = TD->getTypeAllocSize(CPV->getType()); in bufferLEByte()
1884 unsigned int s = TD->getTypeAllocSize(CPV->getType()); in bufferLEByte()
1894 int ElementSize = TD->getTypeAllocSize(CPV->getType()); in bufferLEByte()
1938 TD->getTypeAllocSize(ST) - in bufferAggregateConstant()
2134 if (DL.getTypeAllocSize(Ty) == DL.getTypeAllocSize(Op->getType())) in lowerConstantForGV()
/NextBSD/contrib/llvm/lib/Target/
HDTarget.cpp99 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); in LLVMABISizeOfType()
/NextBSD/contrib/llvm/lib/Target/AMDGPU/
HDAMDGPUPromoteAlloca.cpp91 Mod->getDataLayout().getTypeAllocSize(GVTy->getElementType()); in runOnFunction()
296 WorkGroupSize * Mod->getDataLayout().getTypeAllocSize(AllocaTy); in visitAlloca()
/NextBSD/contrib/llvm/lib/Transforms/Instrumentation/
HDSafeStack.cpp406 uint64_t Size = DL->getTypeAllocSize(Ty) * CArraySize->getZExtValue(); in moveStaticAllocasToUnsafeStack()
460 uint64_t TySize = DL->getTypeAllocSize(Ty); in moveDynamicAllocasToUnsafeStack()
/NextBSD/contrib/llvm/lib/Target/XCore/
HDXCoreTargetObjectFile.cpp127 TM.getDataLayout()->getTypeAllocSize(ObjType) < CodeModelLargeSize) { in SelectSectionForGlobal()
/NextBSD/contrib/llvm/include/llvm/Transforms/Utils/
HDLocal.h211 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()) & PtrSizeMask;

1234