Home
last modified time | relevance | path

Searched refs:getAllocatedType (Results 1 – 25 of 62) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp163 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize()
185 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
369 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst()
373 if (DL.getTypeAllocSize(AI.getAllocatedType()).getKnownMinSize() == 0) { in visitAllocaInst()
389 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
390 DL.getTypeAllocSize(EntryAI->getAllocatedType()) in visitAllocaInst()
428 auto *DestTy = PointerType::get(AI.getAllocatedType(), SrcAddrSpace); in visitAllocaInst()
785 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq()
792 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2343 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2487 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerLoad()
2805 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
2960 !NewAI.getAllocatedType()->isSingleValueType()); in visitMemTransferInst()
3067 Src = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitMemTransferInst()
3071 Src = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitMemTransferInst()
4329 if (SliceTy == AI.getAllocatedType() && P.beginOffset() == 0) { in rewritePartition()
4457 DL.getTypeAllocSize(AI.getAllocatedType()).getFixedSize(); in splitAlloca()
4541 DL.getTypeSizeInBits(AI.getAllocatedType()).getFixedSize(); in splitAlloca()
4639 auto *AT = AI.getAllocatedType(); in runOnAlloca()
[all …]
H A DRewriteStatepointsForGC.cpp1880 cast<AllocaInst>(Alloca)->getAllocatedType(), in insertRelocationStores()
2010 auto PT = cast<PointerType>(AI->getAllocatedType()); in relocationViaAlloca()
2059 new LoadInst(Alloca->getAllocatedType(), Alloca, "", in relocationViaAlloca()
2066 new LoadInst(Alloca->getAllocatedType(), Alloca, "", Use); in relocationViaAlloca()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAlloca.cpp73 auto ETy = allocaInst->getAllocatedType(); in runOnFunction()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp75 QualType ElementType = NE->getAllocatedType(); in getExtentSizeOfNewTarget()
278 QualType AllocatedT = NE->getAllocatedType(); in checkPlaceIsAlignedProperly()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp665 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
668 if (isa<ScalableVectorType>(I.getAllocatedType())) in visitAllocaInst()
671 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
954 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
968 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp225 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
521 Type *Ty = StackGuardSlot->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
541 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
670 Type *Ty = AI->getAllocatedType(); in moveDynamicAllocasToUnsafeStack()
H A DStackProtector.cpp339 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector()
355 AI->getAllocatedType()))) { in RequiresStackProtector()
H A DGCRootLowering.cpp163 ConstantPointerNull::get(cast<PointerType>(Root->getAllocatedType())), in InsertRootInitializers()
H A DShadowStackGCLowering.cpp166 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp167 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
201 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
H A DCGExprCXX.cpp699 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize()
1077 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer()
1303 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr, in EmitNewInitializer()
1559 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp415 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector()
856 Type *AllocaTy = I.getAllocatedType(); in handleAlloca()
891 DL.getValueOrABITypeAlignment(I.getAlign(), I.getAllocatedType()); in handleAlloca()
922 Type *GVTy = ArrayType::get(I.getAllocatedType(), WorkGroupSize); in handleAlloca()
H A DAMDGPUTargetTransformInfo.cpp196 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
1212 AllocaSize += DL.getTypeAllocSize(AI->getAllocatedType()); in adjustInliningThreshold()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp421 AI.getAllocatedType()->isSized() && AI.isStaticAlloca() && in isInterestingAlloca()
504 Info.AI->getAllocatedType(), in alignAndPadAlloca()
506 : Info.AI->getAllocatedType(); in alignAndPadAlloca()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp774 Value *StateField = Builder.CreateStructGEP(RegNode->getAllocatedType(), in addStateStores()
786 Value *StateField = Builder.CreateStructGEP(RegNode->getAllocatedType(), in insertStateNumberStore()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp432 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in haveSameSpecialState()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DPromoteMemoryToRegister.cpp648 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
864 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
H A DFunctionComparator.cpp556 if (int Res = cmpTypes(AI->getAllocatedType(), in cmpOperations()
557 cast<AllocaInst>(R)->getAllocatedType())) in cmpOperations()
H A DEvaluator.cpp478 Type *Ty = AI->getAllocatedType(); in EvaluateBlock()
H A DLocal.cpp1530 (AI->getAllocatedType() && AI->getAllocatedType()->isArrayTy()); in isArray()
1535 return AI->getAllocatedType() && AI->getAllocatedType()->isStructTy(); in isStructure()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFrameLowering.cpp75 ComputeValueVTs(TLI, MF.getDataLayout(), AI->getAllocatedType(), ValueVTs); in getLocalForStackObject()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp966 Type *Ty = AI.getAllocatedType(); in getAllocaSizeInBytes()
1286 return (AI.getAllocatedType()->isSized() && in isInterestingAlloca()
1392 Type *AllocatedType = AI->getAllocatedType(); in sanitizeFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp137 Type *Ty = AI->getAllocatedType(); in set()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp446 Type *Ty = AI->getAllocatedType(); in addFieldForAlloca()
1743 auto *Value = Builder.CreateLoad(Alloca->getAllocatedType(), Alloca); in insertSpills()
2218 auto ValueTy = Alloca->getAllocatedType(); in emitSetAndGetSwiftErrorValueAround()

123