Home
last modified time | relevance | path

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

12345678910

/external/llvm/include/llvm/Transforms/Scalar/
DSROA.h66 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> Worklist;
81 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> PostPromotionWorklist;
84 std::vector<AllocaInst *> PromotableAllocas;
115 bool presplitLoadsAndStores(AllocaInst &AI, sroa::AllocaSlices &AS);
116 AllocaInst *rewritePartition(AllocaInst &AI, sroa::AllocaSlices &AS,
118 bool splitAlloca(AllocaInst &AI, sroa::AllocaSlices &AS);
119 bool runOnAlloca(AllocaInst &AI);
121 void deleteDeadInstructions(SmallPtrSetImpl<AllocaInst *> &DeletedAllocas);
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DDemoteRegToStack.cpp32 AllocaInst* llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads, in DemoteRegToStack()
40 AllocaInst *Slot; in DemoteRegToStack()
42 Slot = new AllocaInst(I.getType(), 0, in DemoteRegToStack()
46 Slot = new AllocaInst(I.getType(), 0, I.getName()+".reg2mem", in DemoteRegToStack()
111 AllocaInst* llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) { in DemotePHIToStack()
118 AllocaInst *Slot; in DemotePHIToStack()
120 Slot = new AllocaInst(P->getType(), 0, in DemotePHIToStack()
124 Slot = new AllocaInst(P->getType(), 0, P->getName()+".reg2mem", in DemotePHIToStack()
DPromoteMemoryToRegister.cpp80 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable()
160 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
161 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
201 std::vector<AllocaInst*> Allocas;
211 DenseMap<AllocaInst*, unsigned> AllocaLookup;
246 PromoteMem2Reg(const std::vector<AllocaInst*> &A, DominatorTree &dt, in PromoteMem2Reg()
275 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
277 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
281 void RewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info,
283 void PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInfo &Info,
[all …]
DLowerInvoke.cpp98 AllocaInst *InvokeNum, AllocaInst *StackPtr,
217 AllocaInst *InvokeNum, in rewriteExpensiveInvoke()
218 AllocaInst *StackPtr, in rewriteExpensiveInvoke()
303 while (isa<AllocaInst>(AfterAllocaInsertPt) && in splitLiveRangesLiveAcrossInvokes()
304 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsertPt)->getArraySize())) in splitLiveRangesLiveAcrossInvokes()
351 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst)) in splitLiveRangesLiveAcrossInvokes()
453 AllocaInst *JmpBuf = in insertExpensiveEHSupport()
454 new AllocaInst(JBLinkTy, 0, Align, in insertExpensiveEHSupport()
478 AllocaInst *StackPtr = new AllocaInst(Type::getInt8PtrTy(F.getContext()), 0, in insertExpensiveEHSupport()
483 AllocaInst *InvokeNum = new AllocaInst(Type::getInt32Ty(F.getContext()), 0, in insertExpensiveEHSupport()
DMem2Reg.cpp58 std::vector<AllocaInst*> Allocas; in INITIALIZE_PASS_DEPENDENCY()
72 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? in INITIALIZE_PASS_DEPENDENCY()
/external/llvm/lib/CodeGen/
DSafeStack.cpp135 AllocaInst *StackGuardSlot, Value *StackGuard);
140 void findInsts(Function &F, SmallVectorImpl<AllocaInst *> &StaticAllocas,
141 SmallVectorImpl<AllocaInst *> &DynamicAllocas,
148 uint64_t getStaticAllocaAllocationSize(const AllocaInst* AI);
157 ArrayRef<AllocaInst *> StaticAllocas,
161 AllocaInst *StackGuardSlot);
168 AllocaInst *
177 AllocaInst *DynamicTop,
178 ArrayRef<AllocaInst *> DynamicAllocas);
213 uint64_t SafeStack::getStaticAllocaAllocationSize(const AllocaInst* AI) { in getStaticAllocaAllocationSize()
[all …]
DSafeStackColoring.h20 class AllocaInst; variable
74 ArrayRef<AllocaInst *> Allocas;
76 DenseMap<AllocaInst *, unsigned> AllocaNumbering;
103 StackColoring(Function &F, ArrayRef<AllocaInst *> Allocas) in StackColoring()
112 const LiveRange &getLiveRange(AllocaInst *AI);
DGCRootLowering.cpp138 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint()
152 static bool InsertRootInitializers(Function &F, AllocaInst **Roots, in InsertRootInitializers()
156 while (isa<AllocaInst>(IP)) in InsertRootInitializers()
160 SmallPtrSet<AllocaInst *, 16> InitedRoots; in InsertRootInitializers()
163 if (AllocaInst *AI = in InsertRootInitializers()
164 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers()
170 for (AllocaInst **I = Roots, **E = Roots + Count; I != E; ++I) in InsertRootInitializers()
205 SmallVector<AllocaInst *, 32> Roots; in PerformDefaultLowering()
236 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in PerformDefaultLowering()
DStackProtector.cpp61 StackProtector::getSSPLayout(const AllocaInst *AI) const { in getSSPLayout()
65 void StackProtector::adjustForColoring(const AllocaInst *From, in adjustForColoring()
66 const AllocaInst *To) { in adjustForColoring()
237 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector()
319 const TargetLoweringBase *TLI, AllocaInst *&AI) { in CreatePrologue()
340 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. in InsertStackProtectors()
/external/llvm/lib/Transforms/Utils/
DDemoteRegToStack.cpp24 AllocaInst *llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads, in DemoteRegToStack()
32 AllocaInst *Slot; in DemoteRegToStack()
34 Slot = new AllocaInst(I.getType(), nullptr, in DemoteRegToStack()
38 Slot = new AllocaInst(I.getType(), nullptr, I.getName() + ".reg2mem", in DemoteRegToStack()
107 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) { in DemotePHIToStack()
114 AllocaInst *Slot; in DemotePHIToStack()
116 Slot = new AllocaInst(P->getType(), nullptr, in DemotePHIToStack()
120 Slot = new AllocaInst(P->getType(), nullptr, P->getName() + ".reg2mem", in DemotePHIToStack()
DPromoteMemoryToRegister.cpp51 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable()
119 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;
271 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT, in PromoteMem2Reg()
293 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
304 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) { in removeLifetimeIntrinsicUsers()
336 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, in rewriteSingleStoreAlloca()
[all …]
DMem2Reg.cpp32 std::vector<AllocaInst *> Allocas; in promoteMemoryToRegister()
42 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? in promoteMemoryToRegister()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp88 AllocaInst *AI;
113 explicit AllocaInfo(AllocaInst *ai) in AllocaInfo()
125 bool isSafeAllocaToScalarRepl(AllocaInst *AI);
138 void DoScalarReplacement(AllocaInst *AI,
139 std::vector<AllocaInst*> &WorkList);
142 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
143 SmallVector<AllocaInst*, 32> &NewElts);
144 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
145 SmallVector<AllocaInst*, 32> &NewElts);
146 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset,
[all …]
DDeadStoreElimination.cpp261 if (AllocaInst *A = dyn_cast<AllocaInst>(V)) { in getPointerSize()
276 if (const AllocaInst *AI = dyn_cast<AllocaInst>(V)) in isObjectPointerWithTrustworthySize()
592 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) in handleEndBlock()
635 if (AllocaInst *A = dyn_cast<AllocaInst>(BBI)) { in handleEndBlock()
717 if (isa<AllocaInst>(UnderlyingPointer) || isa<Argument>(UnderlyingPointer)) { in RemoveAccessedObjects()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DGCStrategy.cpp49 AllocaInst **Roots, unsigned Count);
174 bool LowerIntrinsics::InsertRootInitializers(Function &F, AllocaInst **Roots, in InsertRootInitializers()
178 while (isa<AllocaInst>(IP)) ++IP; in InsertRootInitializers()
181 SmallPtrSet<AllocaInst*,16> InitedRoots; in InsertRootInitializers()
184 if (AllocaInst *AI = in InsertRootInitializers()
185 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers()
191 for (AllocaInst **I = Roots, **E = Roots + Count; I != E; ++I) in InsertRootInitializers()
232 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || in CouldBecomeSafePoint()
279 SmallVector<AllocaInst*, 32> Roots; in PerformDefaultLowering()
309 Roots.push_back(cast<AllocaInst>( in PerformDefaultLowering()
DStackProtector.cpp120 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) { in RequiresStackProtector()
151 AllocaInst *AI = 0; // Place on stack that stores the stack guard. in InsertStackProtectors()
183 AI = new AllocaInst(PtrTy, "StackGuardSlot", InsPt); in InsertStackProtectors()
/external/llvm/include/llvm/CodeGen/
DStackProtector.h48 typedef ValueMap<const AllocaInst *, SSPLayoutKind> SSPLayoutMap;
128 SSPLayoutKind getSSPLayout(const AllocaInst *AI) const;
133 void adjustForColoring(const AllocaInst *From, const AllocaInst *To);
DMachineFrameInfo.h33 class AllocaInst; variable
113 const AllocaInst *Alloca;
132 bool isSS, const AllocaInst *Val, bool A) in StackObject()
421 const AllocaInst* getObjectAllocation(int ObjectIdx) const { in getObjectAllocation()
611 const AllocaInst *Alloca = nullptr);
626 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca);
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DPromoteMemToReg.h22 class AllocaInst; variable
30 bool isAllocaPromotable(const AllocaInst *AI);
40 void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
DLocal.h31 class AllocaInst; variable
142 AllocaInst *DemoteRegToStack(Instruction &X,
149 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = 0);
/external/llvm/include/llvm/Transforms/Utils/
DPromoteMemToReg.h21 class AllocaInst; variable
32 bool isAllocaPromotable(const AllocaInst *AI);
43 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
DLocal.h39 class AllocaInst; variable
155 AllocaInst *DemoteRegToStack(Instruction &X,
162 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = nullptr);
282 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
290 void replaceDbgValueForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
DASanStackFrameLayout.h20 class AllocaInst; variable
34 AllocaInst *AI; // The actual AllocaInst.
/external/swiftshader/third_party/LLVM/unittests/Support/
DIRBuilderTest.cpp43 AllocaInst *Var1 = Builder.CreateAlloca(Builder.getInt8Ty()); in TEST_F()
44 AllocaInst *Var2 = Builder.CreateAlloca(Builder.getInt32Ty()); in TEST_F()
45 AllocaInst *Var3 = Builder.CreateAlloca(Builder.getInt8Ty(), in TEST_F()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLoads.cpp95 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Base)) { in isSafeToLoadUnconditionally()
207 if ((isa<AllocaInst>(Ptr) || isa<GlobalVariable>(Ptr)) && in FindAvailableLoadedValue()
208 (isa<AllocaInst>(SI->getOperand(1)) || in FindAvailableLoadedValue()

12345678910