Home
last modified time | relevance | path

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

12345678910>>...21

/external/llvm-project/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);
/external/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);
/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/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()
/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/llvm-project/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()
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()
358 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, in rewriteSingleStoreAlloca()
[all …]
/external/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 …]
/external/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);
/external/llvm-project/llvm/lib/CodeGen/
DSafeStack.cpp155 AllocaInst *StackGuardSlot, Value *StackGuard);
160 void findInsts(Function &F, SmallVectorImpl<AllocaInst *> &StaticAllocas,
161 SmallVectorImpl<AllocaInst *> &DynamicAllocas,
168 uint64_t getStaticAllocaAllocationSize(const AllocaInst* AI);
176 ArrayRef<AllocaInst *> StaticAllocas,
179 AllocaInst *StackGuardSlot);
186 AllocaInst *
195 AllocaInst *DynamicTop,
196 ArrayRef<AllocaInst *> DynamicAllocas);
222 uint64_t SafeStack::getStaticAllocaAllocationSize(const AllocaInst* AI) { in getStaticAllocaAllocationSize()
[all …]
DGCRootLowering.cpp129 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint()
143 static bool InsertRootInitializers(Function &F, ArrayRef<AllocaInst *> Roots) { in InsertRootInitializers()
146 while (isa<AllocaInst>(IP)) in InsertRootInitializers()
150 SmallPtrSet<AllocaInst *, 16> InitedRoots; in InsertRootInitializers()
153 if (AllocaInst *AI = in InsertRootInitializers()
154 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers()
160 for (AllocaInst *Root : Roots) in InsertRootInitializers()
192 SmallVector<AllocaInst *, 32> Roots; in DoLowering()
226 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in DoLowering()
DStackColoring.cpp704 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers()
786 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers()
951 DenseMap<const AllocaInst*, const AllocaInst*> Allocas; in remapInstructions()
954 SmallPtrSet<const AllocaInst*, 32> MergedAllocas; in remapInstructions()
957 const AllocaInst *From = MFI->getObjectAllocation(SI.first); in remapInstructions()
958 const AllocaInst *To = MFI->getObjectAllocation(SI.second); in remapInstructions()
965 const_cast<AllocaInst*>(To)->moveBefore(const_cast<AllocaInst*>(From)); in remapInstructions()
973 Instruction *Inst = const_cast<AllocaInst *>(To); in remapInstructions()
998 AllocaInst *FromAI = const_cast<AllocaInst *>(From); in remapInstructions()
1027 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue()); in remapInstructions()
[all …]
/external/llvm-project/llvm/include/llvm/Analysis/
DStackLifetime.h24 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;
/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/llvm-project/llvm/include/llvm/Transforms/Utils/
DPromoteMemToReg.h20 class AllocaInst; variable
30 bool isAllocaPromotable(const AllocaInst *AI);
39 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
/external/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,
/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/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 …]
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64StackTagging.cpp285 AllocaInst *AI;
306 bool isInterestingAlloca(const AllocaInst &AI);
309 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr,
311 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size);
317 insertBaseTaggedPointer(const MapVector<AllocaInst *, AllocaInfo> &Allocas,
414 bool AArch64StackTagging::isInterestingAlloca(const AllocaInst &AI) { in isInterestingAlloca()
430 void AArch64StackTagging::tagAlloca(AllocaInst *AI, Instruction *InsertBefore, in tagAlloca()
452 void AArch64StackTagging::untagAlloca(AllocaInst *AI, Instruction *InsertBefore, in untagAlloca()
460 const MapVector<AllocaInst *, AllocaInfo> &Allocas, in insertBaseTaggedPointer() argument
466 AllocaInst *AI = Info.AI; in insertBaseTaggedPointer()
[all …]

12345678910>>...21