Home
last modified time | relevance | path

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

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DSROA.h25 class AllocaInst; variable
76 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> Worklist;
91 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> PostPromotionWorklist;
94 std::vector<AllocaInst *> PromotableAllocas;
125 bool presplitLoadsAndStores(AllocaInst &AI, sroa::AllocaSlices &AS);
126 AllocaInst *rewritePartition(AllocaInst &AI, sroa::AllocaSlices &AS,
128 bool splitAlloca(AllocaInst &AI, sroa::AllocaSlices &AS);
129 bool runOnAlloca(AllocaInst &AI);
131 bool deleteDeadInstructions(SmallPtrSetImpl<AllocaInst *> &DeletedAllocas);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
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()
DPromoteMemoryToRegister.cpp64 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable()
129 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca()
192 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
193 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
227 std::vector<AllocaInst *> Allocas;
238 DenseMap<AllocaInst *, unsigned> AllocaLookup;
268 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT, in PromoteMem2Reg()
291 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
315 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) { in removeLifetimeIntrinsicUsers()
347 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, in rewriteSingleStoreAlloca()
[all …]
DMem2Reg.cpp37 std::vector<AllocaInst *> Allocas; in promoteMemoryToRegister()
47 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? in promoteMemoryToRegister()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSafeStack.cpp151 AllocaInst *StackGuardSlot, Value *StackGuard);
156 void findInsts(Function &F, SmallVectorImpl<AllocaInst *> &StaticAllocas,
157 SmallVectorImpl<AllocaInst *> &DynamicAllocas,
164 uint64_t getStaticAllocaAllocationSize(const AllocaInst* AI);
173 ArrayRef<AllocaInst *> StaticAllocas,
177 AllocaInst *StackGuardSlot);
184 AllocaInst *
193 AllocaInst *DynamicTop,
194 ArrayRef<AllocaInst *> DynamicAllocas);
220 uint64_t SafeStack::getStaticAllocaAllocationSize(const AllocaInst* AI) { in getStaticAllocaAllocationSize()
[all …]
DGCRootLowering.cpp130 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint()
144 static bool InsertRootInitializers(Function &F, ArrayRef<AllocaInst *> Roots) { in InsertRootInitializers()
147 while (isa<AllocaInst>(IP)) in InsertRootInitializers()
151 SmallPtrSet<AllocaInst *, 16> InitedRoots; in InsertRootInitializers()
154 if (AllocaInst *AI = in InsertRootInitializers()
155 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers()
161 for (AllocaInst *Root : Roots) in InsertRootInitializers()
194 SmallVector<AllocaInst *, 32> Roots; in DoLowering()
228 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in DoLowering()
DSafeStackColoring.h88 ArrayRef<AllocaInst *> Allocas;
90 DenseMap<AllocaInst *, unsigned> AllocaNumbering;
118 StackColoring(Function &F, ArrayRef<AllocaInst *> Allocas) in StackColoring()
127 const LiveRange &getLiveRange(AllocaInst *AI);
DStackColoring.cpp668 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers()
740 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers()
905 DenseMap<const AllocaInst*, const AllocaInst*> Allocas; in remapInstructions()
908 SmallPtrSet<const AllocaInst*, 32> MergedAllocas; in remapInstructions()
911 const AllocaInst *From = MFI->getObjectAllocation(SI.first); in remapInstructions()
912 const AllocaInst *To = MFI->getObjectAllocation(SI.second); in remapInstructions()
922 Instruction *Inst = const_cast<AllocaInst *>(To); in remapInstructions()
947 AllocaInst *FromAI = const_cast<AllocaInst *>(From); in remapInstructions()
976 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue()); in remapInstructions()
1055 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(V); in remapInstructions()
DShadowStackGCLowering.cpp62 std::vector<std::pair<CallInst *, AllocaInst *>> Roots;
235 SmallVector<std::pair<CallInst *, AllocaInst *>, 16> MetaRoots; in CollectRoots()
242 std::pair<CallInst *, AllocaInst *> Pair = std::make_pair( in CollectRoots()
244 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in CollectRoots()
311 while (isa<AllocaInst>(IP)) in runOnFunction()
329 AllocaInst *OriginalAlloca = Roots[I].second; in runOnFunction()
DStackProtector.cpp282 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector()
388 const TargetLoweringBase *TLI, AllocaInst *&AI) { in CreatePrologue()
414 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. in InsertStackProtectors()
438 AI = cast<AllocaInst>(SPCall->getArgOperand(1)); in InsertStackProtectors()
561 const AllocaInst *AI = MFI.getObjectAllocation(I); in copyToMachineFrameInfo()
DWinEHPrepare.cpp76 void insertPHIStores(PHINode *OriginalPHI, AllocaInst *SpillSlot);
78 insertPHIStore(BasicBlock *PredBlock, Value *PredVal, AllocaInst *SpillSlot,
80 AllocaInst *insertPHILoads(PHINode *PN, Function &F);
81 void replaceUseWithLoad(Value *V, Use &U, AllocaInst *&SpillSlot,
158 dyn_cast<AllocaInst>(CPI->getArgOperand(2)->stripPointerCasts())) in addTryBlockMapEntry()
709 AllocaInst *SpillSlot = insertPHILoads(PN, F); in demotePHIsOnFunclets()
1073 AllocaInst *WinEHPrepare::insertPHILoads(PHINode *PN, Function &F) { in insertPHILoads()
1075 AllocaInst *SpillSlot = nullptr; in insertPHILoads()
1081 SpillSlot = new AllocaInst(PN->getType(), DL->getAllocaAddrSpace(), nullptr, in insertPHILoads()
1113 AllocaInst *SpillSlot) { in insertPHIStores()
[all …]
DSjLjEHPrepare.cpp52 AllocaInst *FuncCtx;
180 FuncCtx = new AllocaInst(FunctionContextTy, DL.getAllocaAddrSpace(), nullptr, in setupFunctionContext()
231 while (isa<AllocaInst>(AfterAllocaInsPt) && in lowerIncomingArguments()
232 cast<AllocaInst>(AfterAllocaInsPt)->isStaticAlloca()) in lowerIncomingArguments()
277 if (auto *AI = dyn_cast<AllocaInst>(&Inst)) in lowerAcrossUnwindEdges()
455 } else if (!isa<AllocaInst>(&I)) { in setupEntryBlockAndCallSites()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DPromoteMemToReg.h20 class AllocaInst; variable
31 bool isAllocaPromotable(const AllocaInst *AI);
40 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
DLocal.h40 class AllocaInst; variable
242 AllocaInst *DemoteRegToStack(Instruction &X,
249 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = nullptr);
336 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
345 void replaceDbgValueForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
349 AllocaInst *findAllocaForValue(Value *V,
350 DenseMap<Value *, AllocaInst *> &AllocaForValue);
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;
DASanStackFrameLayout.h19 class AllocaInst; variable
37 AllocaInst *AI; // The actual AllocaInst.
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64StackTagging.cpp271 AllocaInst *AI;
290 bool isInterestingAlloca(const AllocaInst &AI);
293 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr,
295 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size);
301 insertBaseTaggedPointer(const MapVector<AllocaInst *, AllocaInfo> &Allocas,
393 bool AArch64StackTagging::isInterestingAlloca(const AllocaInst &AI) { in isInterestingAlloca()
407 void AArch64StackTagging::tagAlloca(AllocaInst *AI, Instruction *InsertBefore, in tagAlloca()
428 void AArch64StackTagging::untagAlloca(AllocaInst *AI, Instruction *InsertBefore, in untagAlloca()
436 const MapVector<AllocaInst *, AllocaInfo> &Allocas, in insertBaseTaggedPointer() argument
442 AllocaInst *AI = Info.AI; in insertBaseTaggedPointer()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineFrameInfo.h27 class AllocaInst; variable
164 const AllocaInst *Alloca;
185 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca,
483 const AllocaInst* getObjectAllocation(int ObjectIdx) const { in getObjectAllocation()
738 const AllocaInst *Alloca = nullptr, uint8_t ID = 0);
742 const AllocaInst *Alloca = nullptr,
765 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
767 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca) { in CreateVariableSizedObject()
DWinEHFuncInfo.h25 class AllocaInst; variable
65 const AllocaInst *Alloca;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DHWAddressSanitizer.cpp219 bool isInterestingAlloca(const AllocaInst &AI);
220 bool tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size);
224 SmallVectorImpl<AllocaInst *> &Allocas,
225 DenseMap<AllocaInst *, std::vector<DbgVariableIntrinsic *>> &AllocaDbgMap,
231 Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, AllocaInst *AI,
759 static uint64_t getAllocaSizeInBytes(const AllocaInst &AI) { in getAllocaSizeInBytes()
771 bool HWAddressSanitizer::tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, in tagAlloca()
852 AllocaInst *AI, unsigned AllocaNo) { in getAllocaTag()
1018 SmallVectorImpl<AllocaInst *> &Allocas, in instrumentStack()
1019 DenseMap<AllocaInst *, std::vector<DbgVariableIntrinsic *>> &AllocaDbgMap, in instrumentStack() argument
[all …]
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/
Dbuilder.cpp119 AllocaInst* pAlloca = dyn_cast<AllocaInst>(inst); in SetTempAlloca()
127 AllocaInst* pAlloca = dyn_cast<AllocaInst>(inst); in IsTempAlloca()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXAllocaHoisting.cpp47 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++); in runOnFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp123 bool handleAlloca(AllocaInst &I, bool SufficientLDS);
168 SmallVector<AllocaInst *, 16> Allocas; in runOnFunction()
170 if (AllocaInst *AI = dyn_cast<AllocaInst>(&I)) in runOnFunction()
174 for (AllocaInst *AI : Allocas) { in runOnFunction()
336 if (isa<AllocaInst>(User) && in canVectorizeInst()
349 if (isa<AllocaInst>(User) && in canVectorizeInst()
360 static bool tryPromoteAllocaToVector(AllocaInst *Alloca) { in tryPromoteAllocaToVector()
505 if (!isa<AllocaInst>(OtherObj)) in binaryOpIsDerivedFromSameAlloca()
719 bool AMDGPUPromoteAlloca::handleAlloca(AllocaInst &I, bool SufficientLDS) { in handleAlloca()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroFrame.cpp405 AllocaInst *PromiseAlloca = Shape.getPromiseAlloca(); in buildFrameType()
443 if (auto *AI = dyn_cast<AllocaInst>(CurrentDef)) { in buildFrameType()
524 static bool mightWriteIntoAllocaPtr(AllocaInst &A, const DominatorTree &DT, in mightWriteIntoAllocaPtr()
608 SmallVector<std::pair<AllocaInst *, unsigned>, 4> Allocas; in insertSpills()
624 if (auto *AI = dyn_cast<AllocaInst>(Orig)) { in insertSpills()
647 return isa<AllocaInst>(CurrentValue) in insertSpills()
662 if (auto *AI = dyn_cast<AllocaInst>(CurrentValue)) { in insertSpills()
756 AllocaInst *const A = P.first; in insertSpills()
780 AllocaInst *const A = P.first; in insertSpills()
1197 AllocaInst *Alloca, in emitSetAndGetSwiftErrorValueAround()
[all …]
DCoroElide.cpp69 static bool operandReferences(CallInst *CI, AllocaInst *Frame, AAResults &AA) { in operandReferences()
79 static void removeTailCallAttribute(AllocaInst *Frame, AAResults &AA) { in removeTailCallAttribute()
102 if (!isa<AllocaInst>(&I)) in getFirstNonAllocaInTheEntryBlock()
131 auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt); in elideHeapAllocations()

123456