Home
last modified time | relevance | path

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

1234

/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.cpp72 ComputeValueVTs(TLI, MF.getDataLayout(), AI->getAllocatedType(), ValueVTs); in getLocalForStackObject()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp195 if (AI.getAllocatedType()->isSized() && in getAllocaInterestingness()
197 !AI.getAllocatedType()->isScalableTy() && in getAllocaInterestingness()
238 Info.AI->getAllocatedType(), in alignAndPadAlloca()
240 : Info.AI->getAllocatedType(); in alignAndPadAlloca()
H A DPromoteMemoryToRegister.cpp72 if (LI->isVolatile() || LI->getType() != AI->getAllocatedType()) in isAllocaPromotable()
76 SI->getValueOperand()->getType() != AI->getAllocatedType()) in isAllocaPromotable()
903 IncomingVals.init(i, UndefValue::get(Allocas[i]->getAllocatedType())); in run()
1120 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILLegalizePass.cpp98 ElementType = AI->getAllocatedType(); in fixI8UseChain()
131 GEPType = AI->getAllocatedType(); in fixI8UseChain()
225 ElementType = AI->getAllocatedType(); in fixI8UseChain()
258 if (!AI || !AI->getAllocatedType()->isIntegerTy(8)) in upcastI8AllocasAndUses()
358 return dyn_cast<ArrayType>(Alloca->getAllocatedType()); in emitMemcpyExpansion()
417 Type *AllocatedTy = Alloca->getAllocatedType(); in emitMemsetExpansion()
H A DDXILDataScalarization.cpp131 Type *AllocatedType = AI.getAllocatedType(); in visitAllocaInst()
225 Type *ArrTy = ArrAlloca->getAllocatedType(); in dynamicallyLoadArray()
244 Type *ArrTy = ArrAlloca->getAllocatedType(); in replaceDynamicInsertElementInst()
314 Type *AllocatedType = Alloca->getAllocatedType(); in visitGetElementPtrInst()
H A DDXILFlattenArrays.cpp199 if (!isMultiDimensionalArray(AI.getAllocatedType())) in visitAllocaInst()
202 ArrayType *ArrType = cast<ArrayType>(AI.getAllocatedType()); in visitAllocaInst()
287 RootTy = Alloca->getAllocatedType(); in visitGetElementPtrInst()
H A DDXILPrepare.cpp165 ValTy = AI->getAllocatedType(); in maybeGenerateBitcast()
186 ValTy = AI->getAllocatedType(); in maybeGenerateBitcast()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenCXXExpr.cpp196 QualType type = e->getAllocatedType(); in emitCXXNewAllocSize()
244 storeAnyExprIntoOneUnit(cgf, init, e->getAllocatedType(), newPtr, in emitNewInitializer()
274 QualType allocType = getContext().getBaseElementType(e->getAllocatedType()); in emitCXXNewExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp178 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize()
200 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
480 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst()
484 if (DL.getTypeAllocSize(AI.getAllocatedType()).getKnownMinValue() == 0) { in visitAllocaInst()
500 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
501 DL.getTypeAllocSize(EntryAI->getAllocatedType()) in visitAllocaInst()
849 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq()
856 TypeSize TS = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
/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/NVPTX/
H A DNVPTXLowerAlloca.cpp76 auto ETy = allocaInst->getAllocatedType(); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1036 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType()).getFixedValue()), in SliceBuilder()
2779 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2783 DL.getTypeSizeInBits(NewAI.getAllocatedType()) in AllocaSliceRewriter()
2917 LoadInst *Load = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedLoadInst()
2928 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerLoad()
2974 LoadInst *NewLI = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), NewPtr, in visitLoadInst()
3082 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedStoreInst()
3106 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerStore()
3259 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
3322 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitMemSetInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp333 const unsigned AllocaCost = DL->getTypeSizeInBits(AI->getAllocatedType()); in run()
381 const unsigned Size = DL.getTypeStoreSize(AI->getAllocatedType()); in isSupportedMemset()
798 Type *AllocaTy = Alloca.getAllocatedType(); in tryPromoteAllocaToVector()
898 if (Ptr == &Alloca && DL->getTypeStoreSize(Alloca.getAllocatedType()) == in tryPromoteAllocaToVector()
1512 DL.getValueOrABITypeAlignment(I.getAlign(), I.getAllocatedType()); in tryPromoteAllocaToLDS()
1522 WorkGroupSize * DL.getTypeAllocSize(I.getAllocatedType()); in tryPromoteAllocaToLDS()
1544 Type *GVTy = ArrayType::get(I.getAllocatedType(), WorkGroupSize); in tryPromoteAllocaToLDS()
H A DAMDGPUTargetTransformInfo.cpp208 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
1381 AllocaSize += DL.getTypeAllocSize(AI->getAllocatedType()); in getCallArgsTotalAllocaSize()
1435 auto ArgAllocaSize = DL.getTypeAllocSize(AI->getAllocatedType()); in getCallerAllocaCost()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp216 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
250 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp206 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
519 Type *Ty = StackGuardSlot->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
539 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
675 Type *Ty = AI->getAllocatedType(); in moveDynamicAllocasToUnsafeStack()
H A DStackProtector.cpp476 if (ContainsProtectableArray(AI->getAllocatedType(), M, SSPBufferSize, in requiresStackProtector()
496 AI, M->getDataLayout().getTypeAllocSize(AI->getAllocatedType()), in requiresStackProtector()
H A DGCRootLowering.cpp183 ConstantPointerNull::get(cast<PointerType>(Root->getAllocatedType())), in InsertRootInitializers()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DTypeFinder.cpp82 incorporateType(AI->getAllocatedType()); in run()
/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.cpp895 TypeSize ElemSize = DL.getTypeAllocSize(I.getAllocatedType()); in visitAllocaInst()
1280 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
1284 assert(I.isArrayAllocation() || I.getAllocatedType()->isScalableTy()); in visitAllocaInst()
1295 ArraySize->getType(), DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp791 Value *StateField = Builder.CreateStructGEP(RegNode->getAllocatedType(), in addStateStores()
803 Value *StateField = Builder.CreateStructGEP(RegNode->getAllocatedType(), in insertStateNumberStore()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfo.h355 SizeInBits == DL.getTypeSizeInBits(Base->getAllocatedType())) {}
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp195 Type *Ty = AI->getAllocatedType(); in addFieldForAlloca()
1239 auto *Value = Builder.CreateLoad(Alloca->getAllocatedType(), Alloca); in insertSpills()
1292 auto *Value = Builder.CreateLoad(PA->getAllocatedType(), PA); in insertSpills()
1632 auto ValueTy = Alloca->getAllocatedType(); in emitSetAndGetSwiftErrorValueAround()

1234