Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRefTypeMem2Local.cpp60 if (WebAssembly::isWebAssemblyReferenceType(AI.getAllocatedType())) { in visitAllocaInst()
64 auto *NewAI = IRB.CreateAlloca(AI.getAllocatedType(), in visitAllocaInst()
H A DWebAssemblyFrameLowering.cpp74 ComputeValueVTs(TLI, MF.getDataLayout(), AI->getAllocatedType(), ValueVTs); in getLocalForStackObject()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp182 return (AI.getAllocatedType()->isSized() && in isInterestingAlloca()
184 !AI.getAllocatedType()->isScalableTy() && in isInterestingAlloca()
220 Info.AI->getAllocatedType(), in alignAndPadAlloca()
222 : Info.AI->getAllocatedType(); in alignAndPadAlloca()
H A DPromoteMemoryToRegister.cpp71 if (LI->isVolatile() || LI->getType() != AI->getAllocatedType()) in isAllocaPromotable()
75 SI->getValueOperand()->getType() != AI->getAllocatedType()) in isAllocaPromotable()
854 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
1078 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
H A DFunctionComparator.cpp666 if (int Res = cmpTypes(AI->getAllocatedType(), in cmpOperations()
667 cast<AllocaInst>(R)->getAllocatedType())) in cmpOperations()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp190 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize()
212 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
465 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst()
469 if (DL.getTypeAllocSize(AI.getAllocatedType()).getKnownMinValue() == 0) { in visitAllocaInst()
485 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
486 DL.getTypeAllocSize(EntryAI->getAllocatedType()) in visitAllocaInst()
841 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq()
848 TypeSize TS = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1031 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType()).getFixedValue()), in SliceBuilder()
2683 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2687 DL.getTypeSizeInBits(NewAI.getAllocatedType()) in AllocaSliceRewriter()
2821 LoadInst *Load = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedLoadInst()
2832 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerLoad()
2879 LoadInst *NewLI = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), NewPtr, in visitLoadInst()
2987 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedStoreInst()
3011 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerStore()
3163 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
3226 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitMemSetInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAlloca.cpp73 auto ETy = allocaInst->getAllocatedType(); in runOnFunction()
/freebsd/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/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp335 const unsigned AllocaCost = DL->getTypeSizeInBits(AI->getAllocatedType()); in run()
383 const unsigned Size = DL.getTypeStoreSize(AI->getAllocatedType()); in isSupportedMemset()
735 Type *AllocaTy = Alloca.getAllocatedType(); in tryPromoteAllocaToVector()
802 if (Ptr == &Alloca && DL->getTypeStoreSize(Alloca.getAllocatedType()) == in tryPromoteAllocaToVector()
1433 DL.getValueOrABITypeAlignment(I.getAlign(), I.getAllocatedType()); in tryPromoteAllocaToLDS()
1443 WorkGroupSize * DL.getTypeAllocSize(I.getAllocatedType()); in tryPromoteAllocaToLDS()
1465 Type *GVTy = ArrayType::get(I.getAllocatedType(), WorkGroupSize); in tryPromoteAllocaToLDS()
H A DAMDGPUTargetTransformInfo.cpp201 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
1272 AllocaSize += DL.getTypeAllocSize(AI->getAllocatedType()); in getCallArgsTotalAllocaSize()
1321 auto ArgAllocaSize = DL.getTypeAllocSize(AI->getAllocatedType()); in getCallerAllocaCost()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp218 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
252 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
H A DCGExprCXX.cpp710 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize()
1099 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer()
1325 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr, in EmitNewInitializer()
1576 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp207 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
512 Type *Ty = StackGuardSlot->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
532 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
667 Type *Ty = AI->getAllocatedType(); in moveDynamicAllocasToUnsafeStack()
H A DStackProtector.cpp453 if (ContainsProtectableArray(AI->getAllocatedType(), M, SSPBufferSize, in CreatePrologue()
473 AI, M->getDataLayout().getTypeAllocSize(AI->getAllocatedType()), in InsertStackProtectors()
H A DGCRootLowering.cpp183 ConstantPointerNull::get(cast<PointerType>(Root->getAllocatedType())), in InsertRootInitializers()
H A DShadowStackGCLowering.cpp208 EltTys.push_back(Root.second->getAllocatedType()); in doInitialization()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DTypeFinder.cpp82 incorporateType(AI->getAllocatedType()); in run()
H A DInstruction.cpp794 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in hasSameSpecialState()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/
H A DPointerTypeAnalysis.cpp38 PointeeTy = Inst->getAllocatedType(); in classifyPointerType()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp781 TypeSize ElemSize = DL.getTypeAllocSize(I.getAllocatedType()); in visitAllocaInst()
1138 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
1142 assert(I.isArrayAllocation() || I.getAllocatedType()->isScalableTy()); in visitAllocaInst()
1153 ArraySize->getType(), DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp770 Value *StateField = Builder.CreateStructGEP(RegNode->getAllocatedType(), in addStateStores()
782 Value *StateField = Builder.CreateStructGEP(RegNode->getAllocatedType(),
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfo.h347 SizeInBits == DL.getTypeSizeInBits(Base->getAllocatedType())) {}
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExpandVariadics.cpp330 StructType *VarargsTy = cast<StructType>(Alloced->getAllocatedType()); in initializeStructAlloca()
767 assert(Alloced->getAllocatedType() == VarargsTy); in expandCall()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp137 Type *Ty = AI->getAllocatedType(); in set()

123