Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp174 Info.AI->getAllocatedType(), in alignAndPadAlloca()
176 : Info.AI->getAllocatedType(); in alignAndPadAlloca()
H A DPromoteMemoryToRegister.cpp69 if (LI->isVolatile() || LI->getType() != AI->getAllocatedType()) in isAllocaPromotable()
73 SI->getValueOperand()->getType() != AI->getAllocatedType()) in isAllocaPromotable()
650 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
866 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp160 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize()
182 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
358 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst()
362 if (DL.getTypeAllocSize(AI.getAllocatedType()).getKnownMinSize() == 0) { in visitAllocaInst()
378 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
379 DL.getTypeAllocSize(EntryAI->getAllocatedType()) in visitAllocaInst()
417 auto *DestTy = PointerType::get(AI.getAllocatedType(), SrcAddrSpace); in visitAllocaInst()
765 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq()
772 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DDefaultOperatorNewAlignmentCheck.cpp30 QualType T = NewExpr->getAllocatedType(); in check()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2317 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2461 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerLoad()
2776 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
2930 !NewAI.getAllocatedType()->isSingleValueType()); in visitMemTransferInst()
3037 Src = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitMemTransferInst()
3041 Src = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitMemTransferInst()
4292 if (SliceTy == AI.getAllocatedType() && P.beginOffset() == 0) { in rewritePartition()
4420 DL.getTypeAllocSize(AI.getAllocatedType()).getFixedSize(); in splitAlloca()
4504 DL.getTypeSizeInBits(AI.getAllocatedType()).getFixedSize(); in splitAlloca()
4602 auto *AT = AI.getAllocatedType(); in runOnAlloca()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAlloca.cpp73 auto ETy = allocaInst->getAllocatedType(); in runOnFunction()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp75 QualType ElementType = NE->getAllocatedType(); in getExtentSizeOfNewTarget()
278 QualType AllocatedT = NE->getAllocatedType(); in checkPlaceIsAlignedProperly()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp390 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector()
441 if (Ptr == Alloca && DL.getTypeStoreSize(Alloca->getAllocatedType()) == in tryPromoteAllocaToVector()
846 Type *AllocaTy = I.getAllocatedType(); in handleAlloca()
881 DL.getValueOrABITypeAlignment(I.getAlign(), I.getAllocatedType()); in handleAlloca()
912 Type *GVTy = ArrayType::get(I.getAllocatedType(), WorkGroupSize); in handleAlloca()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DPointerTypeAnalysis.cpp31 PointeeTy = Inst->getAllocatedType(); in classifyPointerType()
/llvm-project-15.0.7/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp4057 if (!Alloc->getAllocatedType()->isArrayTy() || in TEST_F()
4612 EXPECT_TRUE(MapperAllocas.ArgsBase->getAllocatedType()->isArrayTy()); in TEST_F()
4614 dyn_cast<ArrayType>(MapperAllocas.ArgsBase->getAllocatedType()); in TEST_F()
4616 EXPECT_TRUE(MapperAllocas.ArgsBase->getAllocatedType() in TEST_F()
4624 EXPECT_TRUE(MapperAllocas.Args->getAllocatedType()->isArrayTy()); in TEST_F()
4625 ArrType = dyn_cast<ArrayType>(MapperAllocas.Args->getAllocatedType()); in TEST_F()
4627 EXPECT_TRUE(MapperAllocas.Args->getAllocatedType() in TEST_F()
4634 EXPECT_TRUE(MapperAllocas.ArgSizes->getAllocatedType()->isArrayTy()); in TEST_F()
4637 EXPECT_TRUE(MapperAllocas.ArgSizes->getAllocatedType() in TEST_F()
5034 Builder.CreateLoad(Alloca64->getAllocatedType(), Alloca64); in TEST_F()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCXXABI.cpp211 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
245 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
H A DCGExprCXX.cpp700 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize()
1073 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer()
1299 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr, in EmitNewInitializer()
1554 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
/llvm-project-15.0.7/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.cpp342 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector()
358 AI->getAllocatedType()))) { in RequiresStackProtector()
H A DGCRootLowering.cpp160 ConstantPointerNull::get(cast<PointerType>(Root->getAllocatedType())), in InsertRootInitializers()
H A DShadowStackGCLowering.cpp165 EltTys.push_back(Root.second->getAllocatedType()); in GetConcreteStackEntryType()
/llvm-project-15.0.7/llvm/lib/IR/
H A DTypeFinder.cpp82 incorporateType(AI->getAllocatedType()); in run()
H A DInstruction.cpp441 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in haveSameSpecialState()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp780 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
783 TypeSize ElemSize = DL.getTypeAllocSize(I.getAllocatedType()); in visitAllocaInst()
1127 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
1141 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DLoopGeneratorsGOMP.cpp134 extractValuesFromStruct(Data, StructData->getAllocatedType(), UserContext, in createSubFn()
H A DManagedMemoryRewrite.cpp301 const uint64_t Size = DL.getTypeAllocSize(Alloca->getAllocatedType()); in rewriteAllocaAsManagedMemory()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMakeSmartPtrCheck.cpp138 New->getAllocatedType(), *Result.Context); in check()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFrameLowering.cpp75 ComputeValueVTs(TLI, MF.getDataLayout(), AI->getAllocatedType(), ValueVTs); in getLocalForStackObject()
/llvm-project-15.0.7/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()

1234