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

123456

/external/llvm/include/llvm/Transforms/Utils/
H A DPromoteMemToReg.h22 class AllocaInst;
33 bool isAllocaPromotable(const AllocaInst *AI);
44 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
H A DASanStackFrameLayout.h20 class AllocaInst;
34 AllocaInst *AI; // The actual AllocaInst.
H A DCloning.h45 class AllocaInst;
207 SmallVector<AllocaInst *, 4> StaticAllocas;
H A DLocal.h35 class AllocaInst;
159 AllocaInst *DemoteRegToStack(Instruction &X,
166 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = nullptr);
276 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
/external/llvm/include/llvm/CodeGen/
H A DStackProtector.h48 typedef ValueMap<const AllocaInst *, SSPLayoutKind> SSPLayoutMap;
65 /// AllocaInst triggers a stack protector.
122 SSPLayoutKind getSSPLayout(const AllocaInst *AI) const;
123 void adjustForColoring(const AllocaInst *From, const AllocaInst *To);
H A DMachineFrameInfo.h33 class AllocaInst;
106 const AllocaInst *Alloca;
119 bool isSS, const AllocaInst *Val, bool A)
418 const AllocaInst* getObjectAllocation(int ObjectIdx) const {
561 const AllocaInst *Alloca = nullptr);
581 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca);
H A DFunctionLoweringInfo.h32 class AllocaInst;
79 DenseMap<const AllocaInst*, int> StaticAllocaMap;
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp50 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++);
H A DNVPTXLowerStructArgs.cpp67 AllocaInst *AllocA = new AllocaInst(StructType, Arg->getName(), FirstInst);
/external/llvm/lib/Target/R600/
H A DAMDGPUTargetTransformInfo.cpp47 const AllocaInst *Alloca =
48 dyn_cast<AllocaInst>(GetUnderlyingObject(Ptr, DL));
/external/llvm/lib/Transforms/Utils/
H A DDemoteRegToStack.cpp24 AllocaInst *llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads,
32 AllocaInst *Slot;
34 Slot = new AllocaInst(I.getType(), nullptr,
38 Slot = new AllocaInst(I.getType(), nullptr, I.getName()+".reg2mem",
108 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) {
115 AllocaInst *Slot;
117 Slot = new AllocaInst(P->getType(), nullptr,
121 Slot = new AllocaInst(P->getType(), nullptr, P->getName()+".reg2mem",
H A DMem2Reg.cpp62 std::vector<AllocaInst*> Allocas;
78 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
H A DPromoteMemoryToRegister.cpp61 bool llvm::isAllocaPromotable(const AllocaInst *AI) {
129 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;
246 DenseMap<AllocaInst *, unsigned> AllocaLookup;
285 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
307 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
309 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
320 static void removeLifetimeIntrinsicUsers(AllocaInst *A
[all...]
/external/llvm/lib/CodeGen/
H A DGCRootLowering.cpp138 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) ||
152 static bool InsertRootInitializers(Function &F, AllocaInst **Roots,
156 while (isa<AllocaInst>(IP))
160 SmallPtrSet<AllocaInst *, 16> InitedRoots;
163 if (AllocaInst *AI =
164 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts()))
170 for (AllocaInst **I = Roots, **E = Roots + Count; I != E; ++I)
206 SmallVector<AllocaInst *, 32> Roots;
237 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts()));
H A DStackProtector.cpp60 StackProtector::getSSPLayout(const AllocaInst *AI) const {
64 void StackProtector::adjustForColoring(const AllocaInst *From,
65 const AllocaInst *To) {
213 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) {
333 AllocaInst *&AI, Value *&StackGuardVar) {
372 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard.
H A DStackColoring.cpp259 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot);
474 DenseMap<const AllocaInst*, const AllocaInst*> Allocas;
476 const AllocaInst *From = MFI->getObjectAllocation(SI.first);
477 const AllocaInst *To = MFI->getObjectAllocation(SI.second);
487 Instruction *Inst = const_cast<AllocaInst *>(To);
501 const_cast<AllocaInst *>(From)->replaceAllUsesWith(Inst);
523 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue());
H A DShadowStackGCLowering.cpp41 std::vector<std::pair<CallInst *, AllocaInst *>> Roots;
324 SmallVector<std::pair<CallInst *, AllocaInst *>, 16> MetaRoots;
331 std::pair<CallInst *, AllocaInst *> Pair = std::make_pair(
333 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts()));
400 while (isa<AllocaInst>(IP))
417 AllocaInst *OriginalAlloca = Roots[I].second;
H A DSjLjEHPrepare.cpp62 AllocaInst *FuncCtx;
202 FuncCtx = new AllocaInst(FunctionContextTy, nullptr, Align, "fn_context",
252 while (isa<AllocaInst>(AfterAllocaInsPt) &&
253 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsPt)->getArraySize()))
294 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst))
476 } else if (!isa<AllocaInst>(I)) {
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp102 AllocaInst *AI;
127 explicit AllocaInfo(AllocaInst *ai)
152 bool isSafeAllocaToScalarRepl(AllocaInst *AI);
166 void DoScalarReplacement(AllocaInst *AI,
167 std::vector<AllocaInst*> &WorkList);
170 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
171 SmallVectorImpl<AllocaInst *> &NewElts);
172 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
173 SmallVectorImpl<AllocaInst *> &NewElts);
174 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.cpp219 AllocaSlices(const DataLayout &DL, AllocaInst &AI);
561 AllocaInst &AI;
640 SliceBuilder(const DataLayout &DL, AllocaInst &AI, AllocaSlices &AS)
999 AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI)
1084 AllocaInst &AI;
1092 AllocaInst &AI, DIBuilder &DIB)
1210 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> Worklist;
1225 SetVector<AllocaInst *, SmallVector<AllocaInst *, 1
[all...]
/external/llvm/lib/Analysis/
H A DLoads.cpp77 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Base)) {
228 if ((isa<AllocaInst>(StrippedPtr) || isa<GlobalVariable>(StrippedPtr)) &&
229 (isa<AllocaInst>(StorePtr) || isa<GlobalVariable>(StorePtr)) &&
H A DCodeMetrics.cpp150 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp159 isOnlyCopiedFromConstantGlobal(AllocaInst *AI,
167 static Instruction *simplifyAllocaArraySize(InstCombiner &IC, AllocaInst &AI) {
183 AllocaInst *New = IC.Builder->CreateAlloca(NewTy, nullptr, AI.getName());
190 while (isa<AllocaInst>(*It) || isa<DbgInfoIntrinsic>(*It))
223 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) {
251 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst);
537 if (AllocaInst *AI = dyn_cast<AllocaInst>(P)) {
913 if (isa<AllocaInst>(Pt
[all...]
/external/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp397 uint64_t getAllocaSizeInBytes(AllocaInst *AI) const {
404 bool isInterestingAlloca(AllocaInst &AI);
461 DenseMap<AllocaInst *, bool> ProcessedAllocas;
513 SmallVector<AllocaInst *, 16> AllocaVec;
524 AllocaInst *AI;
535 AllocaInst *AI;
539 explicit DynamicAllocaCall(AllocaInst *AI, Value *LeftRzAddr = nullptr,
548 // Maps Value to an AllocaInst from which the Value is originated.
549 typedef DenseMap<Value *, AllocaInst *> AllocaForValueMapTy;
643 void visitAllocaInst(AllocaInst
[all...]

Completed in 236 milliseconds

123456