| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStack.cpp | 169 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 D | GCRootLowering.cpp | 146 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 D | StackColoring.cpp | 667 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 D | ShadowStackGCLowering.cpp | 66 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 D | SjLjEHPrepare.cpp | 55 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 D | MemoryTaggingSupport.h | 27 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 D | PromoteMemToReg.h | 20 class AllocaInst; variable 30 bool isAllocaPromotable(const AllocaInst *AI); 39 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
|
| H A D | CodeExtractor.h | 25 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 D | ASanStackFrameLayout.h | 19 class AllocaInst; variable 37 AllocaInst *AI; // The actual AllocaInst.
|
| H A D | Local.h | 31 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 D | DemoteRegToStack.cpp | 22 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 D | MemoryTaggingSupport.cpp | 118 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 D | PromoteMemoryToRegister.cpp | 64 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 D | Mem2Reg.cpp | 37 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 D | StackLifetime.h | 23 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 D | StackLifetime.cpp | 35 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 D | StackSafetyAnalysis.cpp | 154 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 D | MemCpyOptimizer.h | 23 class AllocaInst; variable 85 AllocaInst *DestAlloca, AllocaInst *SrcAlloca,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAllocaHoisting.cpp | 47 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++); in runOnFunction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroInternal.h | 34 SmallDenseMap<Argument *, AllocaInst *, 4> &ArgToAllocaMap, 37 SmallDenseMap<Argument *, AllocaInst *, 4> &ArgToAllocaMap, DPValue &DPV, 115 AllocaInst *PromiseAlloca; 240 AllocaInst *getPromiseAlloca() const { in getPromiseAlloca()
|
| H A D | CoroFrame.cpp | 456 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 D | SROA.cpp | 682 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 D | MachineFrameInfo.h | 28 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 D | AArch64StackTagging.cpp | 305 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 D | DebugInfo.h | 318 DenseMap<const AllocaInst *, SmallSetVector<VarRecord, 2>>; 329 AllocaInst const *Base; ///< Base storage. 334 AssignmentInfo(const DataLayout &DL, AllocaInst const *Base, 347 const AllocaInst *AI);
|