HomeSort by relevance Sort by last modified time
    Searched refs:AllocaInst (Results 1 - 25 of 104) sorted by null

1 2 3 4 5

  /external/llvm/include/llvm/Transforms/Utils/
PromoteMemToReg.h 22 class AllocaInst;
29 bool isAllocaPromotable(const AllocaInst *AI);
39 void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
Local.h 36 class AllocaInst;
153 AllocaInst *DemoteRegToStack(Instruction &X,
160 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = 0);
257 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
Cloning.h 45 class AllocaInst;
171 SmallVector<AllocaInst*, 4> StaticAllocas;
  /external/llvm/lib/Target/NVPTX/
NVPTXAllocaHoisting.cpp 28 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++);
29 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) {
30 allocaInst->moveBefore(firstTerminatorInst);
  /external/llvm/lib/Transforms/Utils/
DemoteRegToStack.cpp 23 AllocaInst *llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads,
31 AllocaInst *Slot;
33 Slot = new AllocaInst(I.getType(), 0,
37 Slot = new AllocaInst(I.getType(), 0, I.getName()+".reg2mem",
109 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) {
116 AllocaInst *Slot;
118 Slot = new AllocaInst(P->getType(), 0,
122 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 82 bool llvm::isAllocaPromotable(const AllocaInst *AI) {
162 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) ||
163 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1)));
203 std::vector<AllocaInst*> Allocas;
213 DenseMap<AllocaInst*, unsigned> AllocaLookup;
252 PromoteMem2Reg(const std::vector<AllocaInst*> &A, DominatorTree &dt,
281 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
283 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
287 void RewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info,
289 void PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInfo &Info
    [all...]
LowerInvoke.cpp 97 AllocaInst *InvokeNum, AllocaInst *StackPtr,
202 AllocaInst *InvokeNum,
203 AllocaInst *StackPtr,
288 while (isa<AllocaInst>(AfterAllocaInsertPt) &&
289 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsertPt)->getArraySize()))
302 // Set the operand of the instructions back to the AllocaInst.
312 // Set the operand of the cast instruction back to the AllocaInst.
336 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst)
    [all...]
  /external/llvm/lib/Analysis/
CodeMetrics.cpp 59 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
Loads.cpp 67 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Base)) {
188 if ((isa<AllocaInst>(Ptr) || isa<GlobalVariable>(Ptr)) &&
189 (isa<AllocaInst>(SI->getOperand(1)) ||
  /external/llvm/lib/Transforms/Scalar/
ScalarReplAggregates.cpp 101 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 SmallVector<AllocaInst*, 32> &NewElts);
170 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
171 SmallVector<AllocaInst*, 32> &NewElts);
172 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) &&
TailRecursionElimination.cpp 136 static bool AllocaMightEscapeToCalls(AllocaInst *AI) {
148 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) {
503 if (AllocaInst *AI = dyn_cast<AllocaInst>(OEBI++))
  /external/llvm/lib/CodeGen/
GCStrategy.cpp 50 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...]
StackProtector.cpp 220 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
261 AllocaInst *AI = 0; // Place on stack that stores the stack guard.
293 AI = new AllocaInst(PtrTy, "StackGuardSlot", InsPt);
ShadowStackGC.cpp 53 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;
StackColoring.cpp 270 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot);
501 DenseMap<const AllocaInst*, const AllocaInst*> Allocas;
504 const AllocaInst *From = MFI->getObjectAllocation(it->first);
505 const AllocaInst *To = MFI->getObjectAllocation(it->second);
535 if (!V || !isa<AllocaInst>(V)) {
541 const AllocaInst *AI= cast<AllocaInst>(V);
SjLjEHPrepare.cpp 58 AllocaInst *FuncCtx;
196 new AllocaInst(FunctionContextTy, 0, Align, "fn_context", EntryBB->begin());
241 while (isa<AllocaInst>(AfterAllocaInsPt) &&
242 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsPt)->getArraySize()))
258 // Set the operand of the instructions back to the AllocaInst.
270 // Set the operand of the cast instruction back to the AllocaInst.
301 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst))
481 } else if (!isa<AllocaInst>(I)) {
  /external/llvm/include/llvm/CodeGen/
MachineFrameInfo.h 32 class AllocaInst;
110 const AllocaInst *Alloca;
117 bool isSS, bool NSP, const AllocaInst *Val)
376 const AllocaInst* getObjectAllocation(int ObjectIdx) const {
503 bool MayNeedSP = false, const AllocaInst *Alloca = 0);
FunctionLoweringInfo.h 32 class AllocaInst;
77 DenseMap<const AllocaInst*, int> StaticAllocaMap;
  /external/llvm/lib/Target/R600/
AMDGPUFrameLowering.cpp 81 const AllocaInst *Alloca = MFI->getObjectAllocation(i);
  /external/llvm/unittests/IR/
IRBuilderTest.cpp 50 AllocaInst *Var1 = Builder.CreateAlloca(Builder.getInt8Ty());
51 AllocaInst *Var2 = Builder.CreateAlloca(Builder.getInt32Ty());
52 AllocaInst *Var3 = Builder.CreateAlloca(Builder.getInt8Ty(),
  /external/llvm/lib/Transforms/IPO/
Inliner.cpp 72 typedef DenseMap<ArrayType*, std::vector<AllocaInst*> >
151 SmallPtrSet<AllocaInst*, 16> UsedAllocas;
172 AllocaInst *AI = IFI.StaticAllocas[AllocaNo];
182 std::vector<AllocaInst*> &AllocasForType = InlinedArrayAllocas[ATy];
191 AllocaInst *AvailableAlloca = AllocasForType[i];
  /external/llvm/lib/Transforms/Instrumentation/
AddressSanitizer.cpp 376 SmallVector<AllocaInst*, 16> AllocaVec;
392 // Maps Value to an AllocaInst from which the Value is originated.
393 typedef DenseMap<Value*, AllocaInst*> AllocaForValueMapTy;
434 void visitAllocaInst(AllocaInst &AI) {
462 AllocaInst *AI = findAllocaForValue(II.getArgOperand(1));
473 bool isInterestingAlloca(AllocaInst &AI) {
482 uint64_t getAllocaSizeInBytes(AllocaInst *AI) {
491 uint64_t getAlignedAllocaSize(AllocaInst *AI) {
496 AllocaInst *findAllocaForValue(Value *V);
497 void poisonRedZones(const ArrayRef<AllocaInst*> &AllocaVec, IRBuilder<> IRB
    [all...]
  /external/llvm/lib/CodeGen/SelectionDAG/
FunctionLoweringInfo.cpp 79 if (const AllocaInst *AI = dyn_cast<AllocaInst>(I))
108 if (!isa<AllocaInst>(I) ||
109 !StaticAllocaMap.count(cast<AllocaInst>(I)))
127 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Address)) {
128 DenseMap<const AllocaInst *, int>::iterator SI =

Completed in 689 milliseconds

1 2 3 4 5