Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/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()
357 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst()
361 if (DL.getTypeAllocSize(AI.getAllocatedType()).getKnownMinSize() == 0) { in visitAllocaInst()
377 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
378 DL.getTypeAllocSize(EntryAI->getAllocatedType()) in visitAllocaInst()
416 auto *DestTy = PointerType::get(AI.getAllocatedType(), SrcAddrSpace); in visitAllocaInst()
773 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq()
780 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DSROA.cpp659 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType()).getFixedSize()), in SliceBuilder()
2342 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2346 DL.getTypeSizeInBits(NewAI.getAllocatedType()) in AllocaSliceRewriter()
2475 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedLoadInst()
2483 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerLoad()
2529 LoadInst *NewLI = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitLoadInst()
2629 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedStoreInst()
2647 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerStore()
2797 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
2854 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitMemSetInst()
[all …]
H A DRewriteStatepointsForGC.cpp1865 cast<AllocaInst>(Alloca)->getAllocatedType(), in insertRelocationStores()
1995 auto PT = cast<PointerType>(AI->getAllocatedType()); in relocationViaAlloca()
2044 new LoadInst(Alloca->getAllocatedType(), Alloca, "", in relocationViaAlloca()
2051 new LoadInst(Alloca->getAllocatedType(), Alloca, "", Use); in relocationViaAlloca()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp75 QualType ElementType = NE->getAllocatedType(); in getExtentSizeOfNewTarget()
278 QualType AllocatedT = NE->getAllocatedType(); in checkPlaceIsAlignedProperly()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DSafeStack.cpp225 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
518 Type *Ty = StackGuardSlot->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
538 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
667 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.cpp162 ConstantPointerNull::get(cast<PointerType>(Root->getAllocatedType())), in InsertRootInitializers()
H A DShadowStackGCLowering.cpp165 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGCXXABI.cpp167 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
201 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
H A DCGExprCXX.cpp696 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize()
1074 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer()
1300 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr, in EmitNewInitializer()
1556 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
/netbsd-src/external/apache2/llvm/dist/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.cpp195 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
1217 AllocaSize += DL.getTypeAllocSize(AI->getAllocatedType()); in adjustInliningThreshold()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp419 AI.getAllocatedType()->isSized() && AI.isStaticAlloca() && in isInterestingAlloca()
502 Info.AI->getAllocatedType(), in alignAndPadAlloca()
504 : Info.AI->getAllocatedType(); in alignAndPadAlloca()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstruction.cpp411 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in haveSameSpecialState()
/netbsd-src/external/apache2/llvm/dist/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.cpp468 Type *Ty = AI->getAllocatedType(); in EvaluateBlock()
H A DLocal.cpp1521 (AI->getAllocatedType() && AI->getAllocatedType()->isArrayTy()); in isArray()
1526 return AI->getAllocatedType() && AI->getAllocatedType()->isStructTy(); in isStructure()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp753 return Builder->CreateLoad(A->getAllocatedType(), A, Name.c_str()); in codegen()
966 Builder->CreateLoad(Alloca->getAllocatedType(), Alloca, VarName.c_str()); in codegen()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp887 Type *Ty = AI.getAllocatedType(); in getAllocaSizeInBytes()
1193 return (AI.getAllocatedType()->isSized() && in isInterestingAlloca()
1293 Type *AllocatedType = AI->getAllocatedType(); in sanitizeFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp137 Type *Ty = AI->getAllocatedType(); in set()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp443 Type *Ty = AI->getAllocatedType(); in addFieldForAlloca()
1705 auto *Value = Builder.CreateLoad(Alloca->getAllocatedType(), Alloca); in insertSpills()
2157 auto ValueTy = Alloca->getAllocatedType(); in emitSetAndGetSwiftErrorValueAround()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DInliner.cpp169 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in mergeInlinedArrayAllocas()

123