/external/llvm/include/llvm/Transforms/Utils/ |
PromoteMemToReg.h | 22 class AllocaInst; 30 bool isAllocaPromotable(const AllocaInst *AI); 40 void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
|
Local.h | 31 class AllocaInst; 142 AllocaInst *DemoteRegToStack(Instruction &X, 149 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = 0);
|
Cloning.h | 45 class AllocaInst; 185 SmallVector<AllocaInst*, 4> StaticAllocas;
|
/external/llvm/lib/Transforms/Utils/ |
DemoteRegToStack.cpp | 13 // AllocaInst inserted. After this function is called on an instruction, we are 32 AllocaInst* llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads, 40 AllocaInst *Slot; 42 Slot = new AllocaInst(I.getType(), 0, 46 Slot = new AllocaInst(I.getType(), 0, I.getName()+".reg2mem", 111 AllocaInst* llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) { 118 AllocaInst *Slot; 120 Slot = new AllocaInst(P->getType(), 0, 124 Slot = new AllocaInst(P->getType(), 0, P->getName()+".reg2mem",
|
Mem2Reg.cpp | 58 std::vector<AllocaInst*> Allocas; 72 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
|
PromoteMemoryToRegister.cpp | 80 bool llvm::isAllocaPromotable(const AllocaInst *AI) { 160 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || 161 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); 201 std::vector<AllocaInst*> Allocas; 211 DenseMap<AllocaInst*, unsigned> AllocaLookup; 246 PromoteMem2Reg(const std::vector<AllocaInst*> &A, DominatorTree &dt, 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...] |
LowerInvoke.cpp | 98 AllocaInst *InvokeNum, AllocaInst *StackPtr, 217 AllocaInst *InvokeNum, 218 AllocaInst *StackPtr, 303 while (isa<AllocaInst>(AfterAllocaInsertPt) && 304 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsertPt)->getArraySize())) 317 // Set the operand of the instructions back to the AllocaInst. 327 // Set the operand of the cast instruction back to the AllocaInst. 351 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst) [all...] |
InlineFunction.cpp | 772 Value *NewAlloca = new AllocaInst(AggTy, 0, Align, Arg->getName(), 823 static bool hasLifetimeMarkers(AllocaInst *AI) [all...] |
/external/llvm/unittests/Support/ |
IRBuilderTest.cpp | 43 AllocaInst *Var1 = Builder.CreateAlloca(Builder.getInt8Ty()); 44 AllocaInst *Var2 = Builder.CreateAlloca(Builder.getInt32Ty()); 45 AllocaInst *Var3 = Builder.CreateAlloca(Builder.getInt8Ty(),
|
/external/llvm/lib/CodeGen/ |
GCStrategy.cpp | 49 AllocaInst **Roots, unsigned Count); 174 bool LowerIntrinsics::InsertRootInitializers(Function &F, AllocaInst **Roots, 178 while (isa<AllocaInst>(IP)) ++IP; 181 SmallPtrSet<AllocaInst*,16> InitedRoots; 184 if (AllocaInst *AI = 185 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) 191 for (AllocaInst **I = Roots, **E = Roots + Count; I != E; ++I) 232 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || 279 SmallVector<AllocaInst*, 32> Roots; 309 Roots.push_back(cast<AllocaInst>( [all...] |
StackProtector.cpp | 120 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) { 151 AllocaInst *AI = 0; // Place on stack that stores the stack guard. 183 AI = new AllocaInst(PtrTy, "StackGuardSlot", InsPt);
|
ShadowStackGC.cpp | 53 std::vector<std::pair<CallInst*,AllocaInst*> > Roots; 329 SmallVector<std::pair<CallInst*, AllocaInst*>, 16> MetaRoots; 336 std::pair<CallInst*, AllocaInst*> Pair = std::make_pair( 337 CI, cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); 397 while (isa<AllocaInst>(IP)) ++IP; 412 AllocaInst *OriginalAlloca = Roots[I].second;
|
SjLjEHPrepare.cpp | 267 while (isa<AllocaInst>(AfterAllocaInsertPt) && 268 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsertPt)->getArraySize())) 281 // Set the operand of the instructions back to the AllocaInst. 291 // Set the operand of the cast instruction back to the AllocaInst. 315 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst)) 469 } else if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) { 508 AllocaInst *FunctionContext = 509 new AllocaInst(FunctionContextTy, 0, Align [all...] |
/external/llvm/lib/Transforms/Scalar/ |
ScalarReplAggregates.cpp | 88 AllocaInst *AI; 113 explicit AllocaInfo(AllocaInst *ai) 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...] |
Reg2Mem.cpp | 83 while (isa<AllocaInst>(I)) ++I; 97 if (!(isa<AllocaInst>(iib) && iib->getParent() == BBEntry) &&
|
DeadStoreElimination.cpp | 261 if (AllocaInst *A = dyn_cast<AllocaInst>(V)) { 268 assert(isa<Argument>(V) && "Expected AllocaInst or Argument!"); 276 if (const AllocaInst *AI = dyn_cast<AllocaInst>(V)) 592 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) 635 if (AllocaInst *A = dyn_cast<AllocaInst>(BBI)) { 717 if (isa<AllocaInst>(UnderlyingPointer) || isa<Argument>(UnderlyingPointer)) [all...] |
TailRecursionElimination.cpp | 124 static bool AllocaMightEscapeToCalls(AllocaInst *AI) { 136 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) { 489 if (AllocaInst *AI = dyn_cast<AllocaInst>(OEBI++))
|
/external/llvm/lib/Analysis/ |
Loads.cpp | 95 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Base)) { 207 if ((isa<AllocaInst>(Ptr) || isa<GlobalVariable>(Ptr)) && 208 (isa<AllocaInst>(SI->getOperand(1)) ||
|
BasicAliasAnalysis.cpp | 49 if (isa<AllocaInst>(V)) return true; 65 if (isa<AllocaInst>(V) || isNoAliasCall(V)) 109 } else if (const AllocaInst *AI = dyn_cast<AllocaInst>(V)) { 586 if (OrLocal && isa<AllocaInst>(V)) 691 if (isa<AllocaInst>(Object)) [all...] |
/external/llvm/include/llvm/CodeGen/ |
FunctionLoweringInfo.h | 38 class AllocaInst; 82 DenseMap<const AllocaInst*, int> StaticAllocaMap;
|
FastISel.h | 23 class AllocaInst; 338 virtual unsigned TargetMaterializeAlloca(const AllocaInst* C) {
|
/external/llvm/lib/Transforms/IPO/ |
Inliner.cpp | 65 typedef DenseMap<ArrayType*, std::vector<AllocaInst*> > 116 SmallPtrSet<AllocaInst*, 16> UsedAllocas; 137 AllocaInst *AI = IFI.StaticAllocas[AllocaNo]; 147 std::vector<AllocaInst*> &AllocasForType = InlinedArrayAllocas[ATy]; 156 AllocaInst *AvailableAlloca = AllocasForType[i];
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
FunctionLoweringInfo.cpp | 79 if (const AllocaInst *AI = dyn_cast<AllocaInst>(I)) 106 if (!isa<AllocaInst>(I) || 107 !StaticAllocaMap.count(cast<AllocaInst>(I))) 125 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Address)) { 126 DenseMap<const AllocaInst *, int>::iterator SI =
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | 25 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { 43 assert(isa<AllocaInst>(AI) && "Unknown type of allocation inst!"); 44 AllocaInst *New = Builder->CreateAlloca(NewTy, 0, AI.getName()); 51 while (isa<AllocaInst>(*It) || isa<DbgInfoIntrinsic>(*It)) ++It; 72 if (TD && isa<AllocaInst>(AI) && AI.getAllocatedType()->isSized()) { 395 if (isa<AllocaInst>(Ptr)) 398 if (isa<AllocaInst>(GEP->getOperand(0))) {
|
/external/llvm/lib/Transforms/Instrumentation/ |
ProfilingUtils.cpp | 48 while (isa<AllocaInst>(InsertPos)) ++InsertPos; 112 while (isa<AllocaInst>(InsertPos))
|