Home
last modified time | relevance | path

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

12345678

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Scalar/
H A DSROA.h26 class AllocaInst; variable
77 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> Worklist;
92 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> PostPromotionWorklist;
95 std::vector<AllocaInst *> PromotableAllocas;
126 bool presplitLoadsAndStores(AllocaInst &AI, sroa::AllocaSlices &AS);
127 AllocaInst *rewritePartition(AllocaInst &AI, sroa::AllocaSlices &AS,
129 bool splitAlloca(AllocaInst &AI, sroa::AllocaSlices &AS);
130 bool runOnAlloca(AllocaInst &AI);
132 bool deleteDeadInstructions(SmallPtrSetImpl<AllocaInst *> &DeletedAllocas);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DSafeStack.cpp157 AllocaInst *StackGuardSlot, Value *StackGuard);
162 void findInsts(Function &F, SmallVectorImpl<AllocaInst *> &StaticAllocas,
163 SmallVectorImpl<AllocaInst *> &DynamicAllocas,
170 uint64_t getStaticAllocaAllocationSize(const AllocaInst* AI);
178 ArrayRef<AllocaInst *> StaticAllocas,
181 AllocaInst *StackGuardSlot);
188 AllocaInst *
197 AllocaInst *DynamicTop,
198 ArrayRef<AllocaInst *> DynamicAllocas);
224 uint64_t SafeStack::getStaticAllocaAllocationSize(const AllocaInst* AI) { in getStaticAllocaAllocationSize()
[all …]
H A DGCRootLowering.cpp128 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint()
142 static bool InsertRootInitializers(Function &F, ArrayRef<AllocaInst *> Roots) { in InsertRootInitializers()
145 while (isa<AllocaInst>(IP)) in InsertRootInitializers()
149 SmallPtrSet<AllocaInst *, 16> InitedRoots; in InsertRootInitializers()
152 if (AllocaInst *AI = in InsertRootInitializers()
153 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers()
159 for (AllocaInst *Root : Roots) in InsertRootInitializers()
191 SmallVector<AllocaInst *, 32> Roots; in DoLowering()
225 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in DoLowering()
H A DStackColoring.cpp703 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers()
785 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers()
949 DenseMap<const AllocaInst*, const AllocaInst*> Allocas; in remapInstructions()
952 SmallPtrSet<const AllocaInst*, 32> MergedAllocas; in remapInstructions()
955 const AllocaInst *From = MFI->getObjectAllocation(SI.first); in remapInstructions()
956 const AllocaInst *To = MFI->getObjectAllocation(SI.second); in remapInstructions()
963 const_cast<AllocaInst*>(To)->moveBefore(const_cast<AllocaInst*>(From)); in remapInstructions()
971 Instruction *Inst = const_cast<AllocaInst *>(To); in remapInstructions()
996 AllocaInst *FromAI = const_cast<AllocaInst *>(From); in remapInstructions()
1025 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue()); in remapInstructions()
[all …]
H A DShadowStackGCLowering.cpp64 std::vector<std::pair<CallInst *, AllocaInst *>> Roots;
239 SmallVector<std::pair<CallInst *, AllocaInst *>, 16> MetaRoots; in CollectRoots()
246 std::pair<CallInst *, AllocaInst *> Pair = std::make_pair( in CollectRoots()
248 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in CollectRoots()
323 while (isa<AllocaInst>(IP)) in runOnFunction()
341 AllocaInst *OriginalAlloca = Roots[I].second; in runOnFunction()
H A DWinEHPrepare.cpp77 void insertPHIStores(PHINode *OriginalPHI, AllocaInst *SpillSlot);
79 insertPHIStore(BasicBlock *PredBlock, Value *PredVal, AllocaInst *SpillSlot,
81 AllocaInst *insertPHILoads(PHINode *PN, Function &F);
82 void replaceUseWithLoad(Value *V, Use &U, AllocaInst *&SpillSlot,
159 dyn_cast<AllocaInst>(CPI->getArgOperand(2)->stripPointerCasts())) in addTryBlockMapEntry()
729 AllocaInst *SpillSlot = insertPHILoads(PN, F); in demotePHIsOnFunclets()
1088 AllocaInst *WinEHPrepare::insertPHILoads(PHINode *PN, Function &F) { in insertPHILoads()
1090 AllocaInst *SpillSlot = nullptr; in insertPHILoads()
1096 SpillSlot = new AllocaInst(PN->getType(), DL->getAllocaAddrSpace(), nullptr, in insertPHILoads()
1126 AllocaInst *SpillSlot) { in insertPHIStores()
[all …]
H A DStackProtector.cpp303 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector()
415 const TargetLoweringBase *TLI, AllocaInst *&AI) { in CreatePrologue()
441 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. in InsertStackProtectors()
465 AI = cast<AllocaInst>(SPCall->getArgOperand(1)); in InsertStackProtectors()
606 const AllocaInst *AI = MFI.getObjectAllocation(I); in copyToMachineFrameInfo()
H A DSjLjEHPrepare.cpp54 AllocaInst *FuncCtx;
187 FuncCtx = new AllocaInst(FunctionContextTy, DL.getAllocaAddrSpace(), nullptr, in setupFunctionContext()
240 while (isa<AllocaInst>(AfterAllocaInsPt) && in lowerIncomingArguments()
241 cast<AllocaInst>(AfterAllocaInsPt)->isStaticAlloca()) in lowerIncomingArguments()
286 if (auto *AI = dyn_cast<AllocaInst>(&Inst)) in lowerAcrossUnwindEdges()
464 } else if (!isa<AllocaInst>(&I)) { in setupEntryBlockAndCallSites()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DDemoteRegToStack.cpp23 AllocaInst *llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads, in DemoteRegToStack()
34 AllocaInst *Slot; in DemoteRegToStack()
36 Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr, in DemoteRegToStack()
39 Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr, in DemoteRegToStack()
110 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) { in DemotePHIToStack()
119 AllocaInst *Slot; in DemotePHIToStack()
121 Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr, in DemotePHIToStack()
125 Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr, in DemotePHIToStack()
H A DPromoteMemoryToRegister.cpp64 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable()
126 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca()
189 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
190 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
224 std::vector<AllocaInst *> Allocas;
235 DenseMap<AllocaInst *, unsigned> AllocaLookup;
265 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT, in PromoteMem2Reg()
288 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
312 static void removeIntrinsicUsers(AllocaInst *AI) { in removeIntrinsicUsers()
354 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, in rewriteSingleStoreAlloca()
[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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DStackLifetime.h25 class AllocaInst; variable
105 ArrayRef<const AllocaInst *> Allocas;
107 DenseMap<const AllocaInst *, unsigned> AllocaNumbering;
136 StackLifetime(const Function &F, ArrayRef<const AllocaInst *> Allocas,
153 const LiveRange &getLiveRange(const AllocaInst *AI) const;
159 bool isAliveAfter(const AllocaInst *AI, const Instruction *I) const;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp286 AllocaInst *AI;
308 bool isInterestingAlloca(const AllocaInst &AI);
311 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr,
313 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size);
319 insertBaseTaggedPointer(const MapVector<AllocaInst *, AllocaInfo> &Allocas,
416 bool AArch64StackTagging::isInterestingAlloca(const AllocaInst &AI) { in isInterestingAlloca()
432 void AArch64StackTagging::tagAlloca(AllocaInst *AI, Instruction *InsertBefore, in tagAlloca()
454 void AArch64StackTagging::untagAlloca(AllocaInst *AI, Instruction *InsertBefore, in untagAlloca()
462 const MapVector<AllocaInst *, AllocaInfo> &Allocas, in insertBaseTaggedPointer() argument
468 AllocaInst *AI = Info.AI; in insertBaseTaggedPointer()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
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.h39 class AllocaInst; variable
198 AllocaInst *DemoteRegToStack(Instruction &X,
205 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = nullptr);
279 void replaceDbgValueForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DStackLifetime.cpp40 StackLifetime::getLiveRange(const AllocaInst *AI) const { in getLiveRange()
50 bool StackLifetime::isAliveAfter(const AllocaInst *AI, in isAliveAfter()
69 static const AllocaInst *findMatchingAlloca(const IntrinsicInst &II, in findMatchingAlloca()
71 const AllocaInst *AI = findAllocaForValue(II.getArgOperand(1), true); in findMatchingAlloca()
104 const AllocaInst *AI = findMatchingAlloca(*II, DL); in collectMarkers()
310 ArrayRef<const AllocaInst *> Allocas, in StackLifetime()
394 SmallVector<const AllocaInst *, 8> Allocas; in run()
396 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) in run()
H A DStackSafetyAnalysis.cpp146 ConstantRange getStaticAllocaSizeRange(const AllocaInst &AI) { in getStaticAllocaSizeRange()
176 std::map<const AllocaInst *, UseInfo<CalleeTy>> Allocas;
202 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in print()
225 SmallPtrSet<const AllocaInst *, 8> SafeAllocas;
335 const AllocaInst *AI = dyn_cast<AllocaInst>(Ptr); in analyzeAllUses()
447 SmallVector<AllocaInst *, 64> Allocas; in run()
449 if (auto *AI = dyn_cast<AllocaInst>(&I)) in run()
811 const AllocaInst *AI = KV.first; in getInfo()
882 bool StackSafetyGlobalInfo::isSafe(const AllocaInst &AI) const { in isSafe()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp57 bool handleAlloca(AllocaInst &I, bool SufficientLDS);
99 bool handleAlloca(AllocaInst &I, bool SufficientLDS);
187 SmallVector<AllocaInst *, 16> Allocas; in run()
189 if (AllocaInst *AI = dyn_cast<AllocaInst>(&I)) in run()
193 for (AllocaInst *AI : Allocas) { in run()
368 if (isa<AllocaInst>(User) && in canVectorizeInst()
388 if (isa<AllocaInst>(User) && in canVectorizeInst()
407 static bool tryPromoteAllocaToVector(AllocaInst *Alloca, const DataLayout &DL, in tryPromoteAllocaToVector()
586 if (!isa<AllocaInst>(OtherObj)) in binaryOpIsDerivedFromSameAlloca()
846 bool AMDGPUPromoteAllocaImpl::handleAlloca(AllocaInst &I, bool SufficientLDS) { in handleAlloca()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp309 AllocaInst *Alloca;
312 AllocaInfo(AllocaInst *Alloca, in AllocaInfo()
441 LLVM_NODISCARD FieldIDType addFieldForAlloca(AllocaInst *AI, in addFieldForAlloca()
564 using AllocaSetType = SmallVector<AllocaInst *, 4>; in addFieldForAllocas()
584 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas()
623 auto IsAllocaInferenre = [&](const AllocaInst *AI1, const AllocaInst *AI2) { in addFieldForAllocas()
641 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas()
924 AllocaInst *PromiseAlloca = Shape.getPromiseAlloca(); in buildFrameDebugInfo()
1095 AllocaInst *PromiseAlloca = Shape.getPromiseAlloca(); in buildFrameType()
1266 auto *AI = dyn_cast<AllocaInst>(SI.getPointerOperand()); in visitStoreInst()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp228 bool isInterestingAlloca(const AllocaInst &AI);
229 bool tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size);
233 SmallVectorImpl<AllocaInst *> &Allocas,
234 DenseMap<AllocaInst *, std::vector<DbgVariableIntrinsic *>> &AllocaDbgMap,
240 Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, AllocaInst *AI,
880 static uint64_t getAllocaSizeInBytes(const AllocaInst &AI) { in getAllocaSizeInBytes()
892 bool HWAddressSanitizer::tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, in tagAlloca()
973 AllocaInst *AI, unsigned AllocaNo) { in getAllocaTag()
1142 SmallVectorImpl<AllocaInst *> &Allocas, in instrumentStack()
1143 DenseMap<AllocaInst *, std::vector<DbgVariableIntrinsic *>> &AllocaDbgMap, in instrumentStack() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineFrameInfo.h28 class AllocaInst; variable
165 const AllocaInst *Alloca;
186 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca,
484 const AllocaInst* getObjectAllocation(int ObjectIdx) const { in getObjectAllocation()
735 const AllocaInst *Alloca = nullptr, uint8_t ID = 0);
750 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp47 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++); in runOnFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp65 static AllocaInst *createAllocaInstAtEntry(IRBuilder<> &Builder, in createAllocaInstAtEntry()
75 AllocaInst *AllocaRes = in createAllocaInstAtEntry()
76 new AllocaInst(V256I32Ty, AllocaAS, "", &F.getEntryBlock().front()); in createAllocaInstAtEntry()
228 AllocaInst *AllocaAddr; in transformBitcast()
390 AllocaInst *AllocaRes = in getAllocaPos()
391 new AllocaInst(V256I32Ty, AllocaAS, "", &F->getEntryBlock().front()); in getAllocaPos()

12345678