Home
last modified time | relevance | path

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

12345678910>>...13

/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/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-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 …]
DMem2Reg.cpp37 std::vector<AllocaInst *> Allocas; in promoteMemoryToRegister()
47 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? in promoteMemoryToRegister()
/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/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-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,
DLocal.h41 class AllocaInst; variable
235 AllocaInst *DemoteRegToStack(Instruction &X,
242 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = nullptr);
320 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
329 void replaceDbgValueForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
/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/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_;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DHWAddressSanitizer.cpp165 bool isInterestingAlloca(const AllocaInst &AI);
166 bool tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag);
169 bool instrumentStack(SmallVectorImpl<AllocaInst *> &Allocas,
173 Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, AllocaInst *AI,
504 static uint64_t getAllocaSizeInBytes(const AllocaInst &AI) { in getAllocaSizeInBytes()
516 bool HWAddressSanitizer::tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, in tagAlloca()
580 AllocaInst *AI, unsigned AllocaNo) { in getAllocaTag()
629 SmallVectorImpl<AllocaInst *> &Allocas, in instrumentStack()
674 bool HWAddressSanitizer::isInterestingAlloca(const AllocaInst &AI) { in isInterestingAlloca()
706 SmallVector<AllocaInst*, 8> AllocasToInstrument; in runOnFunction()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dkernel_mapping_scheme.h145 using AddressVector = absl::InlinedVector<llvm::AllocaInst*, 1>;
163 absl::Span<llvm::AllocaInst* const> GetPartialResultAddresses() const { in GetPartialResultAddresses()
174 absl::Span<llvm::AllocaInst* const> GetReductionInputAddresses() const { in GetReductionInputAddresses()

12345678910>>...13