Searched refs:AllocaInst (Results 1 - 25 of 99) sorted by relevance

1234

/freebsd-10.2-release/contrib/llvm/include/llvm/Transforms/Utils/
H A DPromoteMemToReg.h22 class AllocaInst;
32 bool isAllocaPromotable(const AllocaInst *AI);
43 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
H A DLocal.h36 class AllocaInst;
160 AllocaInst *DemoteRegToStack(Instruction &X,
167 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = 0);
270 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
H A DCloning.h45 class AllocaInst;
172 SmallVector<AllocaInst*, 4> StaticAllocas;
/freebsd-10.2-release/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp28 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++);
/freebsd-10.2-release/contrib/llvm/lib/Transforms/Utils/
H A DDemoteRegToStack.cpp24 AllocaInst *llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads,
32 AllocaInst *Slot;
34 Slot = new AllocaInst(I.getType(), 0,
38 Slot = new AllocaInst(I.getType(), 0, I.getName()+".reg2mem",
110 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) {
117 AllocaInst *Slot;
119 Slot = new AllocaInst(P->getType(), 0,
123 Slot = new AllocaInst(P->getType(), 0, P->getName()+".reg2mem",
H A DMem2Reg.cpp58 std::vector<AllocaInst*> Allocas;
72 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
H A DPromoteMemoryToRegister.cpp59 bool llvm::isAllocaPromotable(const AllocaInst *AI) {
128 void AnalyzeAlloca(AllocaInst *AI) {
199 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) ||
200 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1)));
235 std::vector<AllocaInst *> Allocas;
243 DenseMap<AllocaInst *, unsigned> AllocaLookup;
282 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
303 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
305 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
316 static void removeLifetimeIntrinsicUsers(AllocaInst *A
[all...]
H A DLowerInvoke.cpp96 AllocaInst *InvokeNum, AllocaInst *StackPtr,
199 AllocaInst *InvokeNum,
200 AllocaInst *StackPtr,
285 while (isa<AllocaInst>(AfterAllocaInsertPt) &&
286 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsertPt)->getArraySize()))
299 // Set the operand of the instructions back to the AllocaInst.
309 // Set the operand of the cast instruction back to the AllocaInst.
333 if (AllocaInst *AI = dyn_cast<AllocaInst>(Ins
[all...]
/freebsd-10.2-release/contrib/llvm/include/llvm/CodeGen/
H A DStackProtector.h48 typedef ValueMap<const AllocaInst *, SSPLayoutKind> SSPLayoutMap;
65 /// AllocaInst triggers a stack protector.
121 SSPLayoutKind getSSPLayout(const AllocaInst *AI) const;
H A DMachineFrameInfo.h33 class AllocaInst;
111 const AllocaInst *Alloca;
118 bool isSS, bool NSP, const AllocaInst *Val)
382 const AllocaInst* getObjectAllocation(int ObjectIdx) const {
513 bool MayNeedSP = false, const AllocaInst *Alloca = 0);
533 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca);
H A DFunctionLoweringInfo.h32 class AllocaInst;
78 DenseMap<const AllocaInst*, int> StaticAllocaMap;
/freebsd-10.2-release/contrib/llvm/lib/Analysis/
H A DCodeMetrics.cpp59 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
H A DLoads.cpp67 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Base)) {
188 if ((isa<AllocaInst>(Ptr) || isa<GlobalVariable>(Ptr)) &&
189 (isa<AllocaInst>(SI->getOperand(1)) ||
/freebsd-10.2-release/contrib/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp101 AllocaInst *AI;
126 explicit AllocaInfo(AllocaInst *ai)
151 bool isSafeAllocaToScalarRepl(AllocaInst *AI);
164 void DoScalarReplacement(AllocaInst *AI,
165 std::vector<AllocaInst*> &WorkList);
168 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
169 SmallVectorImpl<AllocaInst *> &NewElts);
170 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
171 SmallVectorImpl<AllocaInst *> &NewElts);
172 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *A
[all...]
H A DReg2Mem.cpp83 while (isa<AllocaInst>(I)) ++I;
97 if (!(isa<AllocaInst>(iib) && iib->getParent() == BBEntry) &&
H A DSROA.cpp198 AllocaSlices(const DataLayout &DL, AllocaInst &AI);
258 AllocaInst &AI;
328 SliceBuilder(const DataLayout &DL, AllocaInst &AI, AllocaSlices &S)
656 AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI)
729 AllocaInst &AI;
737 AllocaInst &AI, DIBuilder &DIB)
861 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16> > Worklist;
876 SetVector<AllocaInst *, SmallVector<AllocaInst *, 1
[all...]
/freebsd-10.2-release/contrib/llvm/lib/CodeGen/
H A DGCStrategy.cpp50 AllocaInst **Roots, unsigned Count);
181 bool LowerIntrinsics::InsertRootInitializers(Function &F, AllocaInst **Roots,
185 while (isa<AllocaInst>(IP)) ++IP;
188 SmallPtrSet<AllocaInst*,16> InitedRoots;
191 if (AllocaInst *AI =
192 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts()))
198 for (AllocaInst **I = Roots, **E = Roots + Count; I != E; ++I)
239 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) ||
286 SmallVector<AllocaInst*, 32> Roots;
316 Roots.push_back(cast<AllocaInst>(
[all...]
H A DStackProtector.cpp57 StackProtector::getSSPLayout(const AllocaInst *AI) const {
195 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
317 AllocaInst *&AI, Value *&StackGuardVar) {
355 AllocaInst *AI = 0; // Place on stack that stores the stack guard.
H A DShadowStackGC.cpp53 std::vector<std::pair<CallInst*,AllocaInst*> > Roots;
328 SmallVector<std::pair<CallInst*, AllocaInst*>, 16> MetaRoots;
335 std::pair<CallInst*, AllocaInst*> Pair = std::make_pair(
336 CI, cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts()));
396 while (isa<AllocaInst>(IP)) ++IP;
411 AllocaInst *OriginalAlloca = Roots[I].second;
H A DStackColoring.cpp271 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot);
499 DenseMap<const AllocaInst*, const AllocaInst*> Allocas;
502 const AllocaInst *From = MFI->getObjectAllocation(it->first);
503 const AllocaInst *To = MFI->getObjectAllocation(it->second);
537 if (!V || !isa<AllocaInst>(V)) {
543 const AllocaInst *AI= cast<AllocaInst>(V);
H A DSjLjEHPrepare.cpp58 AllocaInst *FuncCtx;
195 FuncCtx = new AllocaInst(FunctionContextTy, 0, Align, "fn_context",
243 while (isa<AllocaInst>(AfterAllocaInsPt) &&
244 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsPt)->getArraySize()))
260 // Set the operand of the instructions back to the AllocaInst.
271 // Set the operand of the cast instruction back to the AllocaInst.
303 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst))
485 } else if (!isa<AllocaInst>(I)) {
/freebsd-10.2-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp79 if (const AllocaInst *AI = dyn_cast<AllocaInst>(I))
106 if (const AllocaInst *AI = dyn_cast<AllocaInst>(I)) {
145 if (!isa<AllocaInst>(I) ||
146 !StaticAllocaMap.count(cast<AllocaInst>(I)))
167 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Address)) {
168 DenseMap<const AllocaInst *, int>::iterator SI =
/freebsd-10.2-release/contrib/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp417 SmallVector<AllocaInst*, 16> AllocaVec;
429 AllocaInst *AI;
435 // Maps Value to an AllocaInst from which the Value is originated.
436 typedef DenseMap<Value*, AllocaInst*> AllocaForValueMapTy;
477 void visitAllocaInst(AllocaInst &AI) {
505 AllocaInst *AI = findAllocaForValue(II.getArgOperand(1));
516 bool isInterestingAlloca(AllocaInst &AI) const {
526 uint64_t getAllocaSizeInBytes(AllocaInst *AI) const {
535 uint64_t getAlignedAllocaSize(AllocaInst *AI) const {
540 AllocaInst *findAllocaForValu
[all...]
H A DDataFlowSanitizer.cpp211 AllocaInst *LabelReturnAlloca;
213 DenseMap<AllocaInst *, AllocaInst *> AllocaShadowMap;
255 void visitAllocaInst(AllocaInst &I);
718 while (isa<PHINode>(Pos) || isa<AllocaInst>(Pos))
869 if (AllocaInst *AI = dyn_cast<AllocaInst>(Addr)) {
870 llvm::DenseMap<AllocaInst *, AllocaInst *>::iterator i =
993 if (AllocaInst *A
[all...]
/freebsd-10.2-release/contrib/llvm/lib/Transforms/IPO/
H A DInliner.cpp72 typedef DenseMap<ArrayType*, std::vector<AllocaInst*> >
152 SmallPtrSet<AllocaInst*, 16> UsedAllocas;
173 AllocaInst *AI = IFI.StaticAllocas[AllocaNo];
183 std::vector<AllocaInst*> &AllocasForType = InlinedArrayAllocas[ATy];
192 AllocaInst *AvailableAlloca = AllocasForType[i];

Completed in 217 milliseconds

1234