Home
last modified time | relevance | path

Searched refs:AllocaInst (Results 1 – 25 of 192) sorted by relevance

12345678

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp169 AllocaInst *
384 if (auto AI = dyn_cast<AllocaInst>(&I)) { in findInsts()
428 AllocaInst *
443 AllocaInst *DynamicTop = nullptr; in createStackRestorePoints()
490 AllocaInst *StackGuardSlot) { in moveStaticAllocasToUnsafeStack()
531 for (AllocaInst *AI : StaticAllocas) { in moveStaticAllocasToUnsafeStack()
596 for (AllocaInst *AI : StaticAllocas) { in moveStaticAllocasToUnsafeStack()
656 ArrayRef<AllocaInst *> DynamicAllocas) { in moveDynamicAllocasToUnsafeStack()
659 for (AllocaInst *AI : DynamicAllocas) { in moveDynamicAllocasToUnsafeStack()
759 SmallVector<AllocaInst *, 16> StaticAllocas; in run()
[all …]
H A DGCRootLowering.cpp146 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint()
160 static bool InsertRootInitializers(Function &F, ArrayRef<AllocaInst *> Roots) { in InsertRootInitializers()
163 while (isa<AllocaInst>(IP)) in InsertRootInitializers()
167 SmallPtrSet<AllocaInst *, 16> InitedRoots; in InsertRootInitializers()
170 if (AllocaInst *AI = in InsertRootInitializers()
171 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers()
177 for (AllocaInst *Root : Roots) in InsertRootInitializers()
202 SmallVector<AllocaInst *, 32> Roots; in DoLowering()
236 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in DoLowering()
H A DStackColoring.cpp667 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers()
752 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers()
917 DenseMap<const AllocaInst*, const AllocaInst*> Allocas; in remapInstructions()
920 SmallPtrSet<const AllocaInst*, 32> MergedAllocas; in remapInstructions()
923 const AllocaInst *From = MFI->getObjectAllocation(SI.first); in remapInstructions()
924 const AllocaInst *To = MFI->getObjectAllocation(SI.second); in remapInstructions()
931 const_cast<AllocaInst*>(To)->moveBefore(const_cast<AllocaInst*>(From)); in remapInstructions()
939 Instruction *Inst = const_cast<AllocaInst *>(To); in remapInstructions()
964 AllocaInst *FromAI = const_cast<AllocaInst *>(From); in remapInstructions()
993 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue()); in remapInstructions()
[all …]
H A DShadowStackGCLowering.cpp66 std::vector<std::pair<CallInst *, AllocaInst *>> Roots;
207 for (const std::pair<CallInst *, AllocaInst *> &Root : Roots) in GetConcreteStackEntryType()
282 SmallVector<std::pair<CallInst *, AllocaInst *>, 16> MetaRoots; in CollectRoots()
289 std::pair<CallInst *, AllocaInst *> Pair = std::make_pair( in CollectRoots()
291 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in CollectRoots()
376 AllocaInst *OriginalAlloca = Roots[I].second; in runOnFunction()
413 for (std::pair<CallInst *, AllocaInst *> &Root : Roots) { in runOnFunction()
H A DSjLjEHPrepare.cpp55 AllocaInst *FuncCtx = nullptr;
206 FuncCtx = new AllocaInst(FunctionContextTy, DL.getAllocaAddrSpace(), nullptr, in setupFunctionContext()
257 while (isa<AllocaInst>(AfterAllocaInsPt) && in lowerIncomingArguments()
258 cast<AllocaInst>(AfterAllocaInsPt)->isStaticAlloca()) in lowerIncomingArguments()
303 if (auto *AI = dyn_cast<AllocaInst>(&Inst)) in lowerAcrossUnwindEdges()
480 } else if (!isa<AllocaInst>(&I)) { in setupEntryBlockAndCallSites()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DMemoryTaggingSupport.h27 class AllocaInst; variable
51 AllocaInst *AI;
58 MapVector<AllocaInst *, AllocaInfo> AllocasToInstrument;
69 bool isInterestingAlloca(const AllocaInst &AI);
77 uint64_t getAllocaSizeInBytes(const AllocaInst &AI);
H A DPromoteMemToReg.h20 class AllocaInst; variable
30 bool isAllocaPromotable(const AllocaInst *AI);
39 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
H A DCodeExtractor.h25 class AllocaInst; variable
48 SmallVector<AllocaInst *, 16> Allocas;
65 ArrayRef<AllocaInst *> getAllocas() const { return Allocas; } in getAllocas()
69 bool doesBlockContainClobberOfAddr(BasicBlock &BB, AllocaInst *Addr) const;
H A DASanStackFrameLayout.h19 class AllocaInst; variable
37 AllocaInst *AI; // The actual AllocaInst.
H A DLocal.h31 class AllocaInst; variable
207 AllocaInst *DemoteRegToStack(Instruction &X,
214 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = nullptr);
303 void replaceDbgValueForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DDemoteRegToStack.cpp22 AllocaInst *llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads, in DemoteRegToStack()
33 AllocaInst *Slot; in DemoteRegToStack()
35 Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr, in DemoteRegToStack()
38 Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr, in DemoteRegToStack()
117 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) { in DemotePHIToStack()
126 AllocaInst *Slot; in DemotePHIToStack()
128 Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr, in DemotePHIToStack()
132 Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr, in DemotePHIToStack()
H A DMemoryTaggingSupport.cpp118 if (AllocaInst *AI = dyn_cast<AllocaInst>(&Inst)) { in visit()
127 AllocaInst *AI = findAllocaForValue(II->getArgOperand(1)); in visit()
142 if (auto *AI = dyn_cast_or_null<AllocaInst>(V)) { in visit()
157 bool StackInfoBuilder::isInterestingAlloca(const AllocaInst &AI) { in isInterestingAlloca()
175 uint64_t getAllocaSizeInBytes(const AllocaInst &AI) { in getAllocaSizeInBytes()
199 auto *NewAI = new AllocaInst(TypeWithPadding, Info.AI->getAddressSpace(), in alignAndPadAlloca()
H A DPromoteMemoryToRegister.cpp64 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable()
130 void init(AllocaInst *AI) { in init()
238 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca()
345 std::vector<AllocaInst *> Allocas;
356 DenseMap<AllocaInst *, unsigned> AllocaLookup;
418 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
465 static void removeIntrinsicUsers(AllocaInst *AI) { in removeIntrinsicUsers()
733 AllocaInst *AI = Allocas[AllocaNum]; in run()
978 AllocaInst *AI, AllocaInfo &Info, in ComputeLiveInBlocks()
1146 AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand()); in RenamePass()
[all …]
H A DMem2Reg.cpp37 std::vector<AllocaInst *> Allocas; in promoteMemoryToRegister()
47 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? in promoteMemoryToRegister()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DStackLifetime.h23 class AllocaInst; variable
104 ArrayRef<const AllocaInst *> Allocas;
106 DenseMap<const AllocaInst *, unsigned> AllocaNumbering;
135 StackLifetime(const Function &F, ArrayRef<const AllocaInst *> Allocas,
152 const LiveRange &getLiveRange(const AllocaInst *AI) const;
158 bool isAliveAfter(const AllocaInst *AI, const Instruction *I) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DStackLifetime.cpp35 StackLifetime::getLiveRange(const AllocaInst *AI) const { in getLiveRange()
45 bool StackLifetime::isAliveAfter(const AllocaInst *AI, in isAliveAfter()
64 static const AllocaInst *findMatchingAlloca(const IntrinsicInst &II, in findMatchingAlloca()
66 const AllocaInst *AI = findAllocaForValue(II.getArgOperand(1), true); in findMatchingAlloca()
98 const AllocaInst *AI = findMatchingAlloca(*II, DL); in collectMarkers()
319 ArrayRef<const AllocaInst *> Allocas, in StackLifetime()
403 SmallVector<const AllocaInst *, 8> Allocas; in run()
405 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) in run()
H A DStackSafetyAnalysis.cpp154 ConstantRange getStaticAllocaSizeRange(const AllocaInst &AI) { in getStaticAllocaSizeRange()
184 std::map<const AllocaInst *, UseInfo<CalleeTy>> Allocas;
210 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in print()
232 SmallPtrSet<const AllocaInst *, 8> SafeAllocas;
258 bool isSafeAccess(const Use &U, AllocaInst *AI, Value *V);
259 bool isSafeAccess(const Use &U, AllocaInst *AI, TypeSize AccessSize);
399 AllocaInst *AI = dyn_cast<AllocaInst>(Ptr); in analyzeAllUses()
538 SmallVector<AllocaInst *, 64> Allocas; in run()
540 if (auto *AI = dyn_cast<AllocaInst>(&I)) in run()
901 const AllocaInst *AI = KV.first; in getInfo()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DMemCpyOptimizer.h23 class AllocaInst; variable
85 AllocaInst *DestAlloca, AllocaInst *SrcAlloca,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp47 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++); in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h34 SmallDenseMap<Argument *, AllocaInst *, 4> &ArgToAllocaMap,
37 SmallDenseMap<Argument *, AllocaInst *, 4> &ArgToAllocaMap, DPValue &DPV,
115 AllocaInst *PromiseAlloca;
240 AllocaInst *getPromiseAlloca() const { in getPromiseAlloca()
H A DCoroFrame.cpp456 AllocaInst *Alloca;
459 AllocaInfo(AllocaInst *Alloca, in AllocaInfo()
774 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas()
813 auto IsAllocaInferenre = [&](const AllocaInst *AI1, const AllocaInst *AI2) { in addFieldForAllocas()
831 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas()
1946 AllocaInst *Alloca = P.Alloca; in insertSpills()
1967 AllocaInst *Alloca = A.Alloca; in insertSpills()
2001 AllocaInst *Alloca = A.Alloca; in insertSpills()
2663 auto Alloca = dyn_cast<AllocaInst>(&Inst); in eliminateSwiftError()
2748 AllocaInst* AI = dyn_cast<AllocaInst>(&I); in sinkLifetimeStartMarkers()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp682 AllocaInst &AI;
2723 AllocaInst &OldAI, AllocaInst &NewAI, in AllocaSliceRewriter()
3442 } else if (AllocaInst *Base = dyn_cast<AllocaInst>( in visitMemTransferInst()
3539 } else if (AllocaInst *Base = dyn_cast<AllocaInst>( in visitMemTransferInst()
4561 if (AllocaInst *OtherAI = dyn_cast<AllocaInst>(StoreBasePtr)) { in presplitLoadsAndStores()
4564 } else if (AllocaInst *OtherAI = dyn_cast<AllocaInst>( in presplitLoadsAndStores()
4683 if (AllocaInst *OtherAI = dyn_cast<AllocaInst>(LoadBasePtr)) { in presplitLoadsAndStores()
4687 } else if (AllocaInst *OtherAI = dyn_cast<AllocaInst>( in presplitLoadsAndStores()
4743 AllocaInst *SROA::rewritePartition(AllocaInst &AI, AllocaSlices &AS, in rewritePartition()
5261 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) { in deleteDeadInstructions()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineFrameInfo.h28 class AllocaInst; variable
164 const AllocaInst *Alloca;
185 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca,
510 const AllocaInst* getObjectAllocation(int ObjectIdx) const { in getObjectAllocation()
776 const AllocaInst *Alloca = nullptr, uint8_t ID = 0);
791 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp305 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr,
307 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size);
313 const MapVector<AllocaInst *, memtag::AllocaInfo> &Allocas,
411 void AArch64StackTagging::tagAlloca(AllocaInst *AI, Instruction *InsertBefore, in tagAlloca()
433 void AArch64StackTagging::untagAlloca(AllocaInst *AI, Instruction *InsertBefore, in untagAlloca()
441 const MapVector<AllocaInst *, memtag::AllocaInfo> &AllocasToInstrument, in insertBaseTaggedPointer() argument
447 AllocaInst *AI = Info.AI; in insertBaseTaggedPointer()
525 AllocaInst *AI = Info.AI; in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfo.h318 DenseMap<const AllocaInst *, SmallSetVector<VarRecord, 2>>;
329 AllocaInst const *Base; ///< Base storage.
334 AssignmentInfo(const DataLayout &DL, AllocaInst const *Base,
347 const AllocaInst *AI);

12345678