Home
last modified time | relevance | path

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

12345678910>>...16

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/
DSROA.h27 class AllocaInst; variable
78 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> Worklist;
93 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> PostPromotionWorklist;
96 std::vector<AllocaInst *> PromotableAllocas;
127 bool presplitLoadsAndStores(AllocaInst &AI, sroa::AllocaSlices &AS);
128 AllocaInst *rewritePartition(AllocaInst &AI, sroa::AllocaSlices &AS,
130 bool splitAlloca(AllocaInst &AI, sroa::AllocaSlices &AS);
131 bool runOnAlloca(AllocaInst &AI);
133 bool deleteDeadInstructions(SmallPtrSetImpl<AllocaInst *> &DeletedAllocas);
/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/swiftshader/third_party/llvm-7.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.cpp137 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint()
151 static bool InsertRootInitializers(Function &F, AllocaInst **Roots, in InsertRootInitializers()
155 while (isa<AllocaInst>(IP)) in InsertRootInitializers()
159 SmallPtrSet<AllocaInst *, 16> InitedRoots; in InsertRootInitializers()
162 if (AllocaInst *AI = in InsertRootInitializers()
163 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers()
169 for (AllocaInst **I = Roots, **E = Roots + Count; I != E; ++I) in InsertRootInitializers()
204 SmallVector<AllocaInst *, 32> Roots; in PerformDefaultLowering()
235 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in PerformDefaultLowering()
DSafeStackColoring.h89 ArrayRef<AllocaInst *> Allocas;
91 DenseMap<AllocaInst *, unsigned> AllocaNumbering;
119 StackColoring(Function &F, ArrayRef<AllocaInst *> Allocas) in StackColoring()
128 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()
974 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue()); in remapInstructions()
1045 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(V); in remapInstructions()
/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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DDemoteRegToStack.cpp24 AllocaInst *llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads, in DemoteRegToStack()
35 AllocaInst *Slot; in DemoteRegToStack()
37 Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr, in DemoteRegToStack()
40 Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr, in DemoteRegToStack()
109 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) { in DemotePHIToStack()
118 AllocaInst *Slot; in DemotePHIToStack()
120 Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr, in DemotePHIToStack()
124 Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr, in DemotePHIToStack()
DPromoteMemoryToRegister.cpp65 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable()
133 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca()
198 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
199 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
233 std::vector<AllocaInst *> Allocas;
244 DenseMap<AllocaInst *, unsigned> AllocaLookup;
279 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT, in PromoteMem2Reg()
302 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
326 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) { in removeLifetimeIntrinsicUsers()
358 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, in rewriteSingleStoreAlloca()
[all …]
/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 …]
/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()
/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);
/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,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DPromoteMemToReg.h21 class AllocaInst; variable
32 bool isAllocaPromotable(const AllocaInst *AI);
41 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
/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,
/external/bcc/src/cc/frontends/b/
Dcodegen_llvm.h29 class AllocaInst; variable
96 llvm::AllocaInst *make_alloca(llvm::Instruction *Inst, llvm::Type *Ty,
99 llvm::AllocaInst *make_alloca(llvm::BasicBlock *BB, llvm::Type *Ty,
128 llvm::AllocaInst *retval_;
129 llvm::AllocaInst *errval_;

12345678910>>...16