HomeSort by relevance Sort by last modified time
    Searched full:allocainst (Results 1 - 25 of 109) sorted by null

1 2 3 4 5

  /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?
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...]
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...]
InlineFunction.cpp 372 Value *NewAlloca = new AllocaInst(AggTy, 0, Align, Arg->getName(),
423 static bool hasLifetimeMarkers(AllocaInst *AI) {
626 AllocaInst *AI = dyn_cast<AllocaInst>(I++);
644 while (isa<AllocaInst>(I) &&
645 isa<Constant>(cast<AllocaInst>(I)->getArraySize())) {
646 IFI.StaticAllocas.push_back(cast<AllocaInst>(I));
664 AllocaInst *AI = IFI.StaticAllocas[ai];
679 assert(AllocaArraySize > 0 && "array size of AllocaInst is zero");
    [all...]
  /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/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) &&
SROA.cpp 200 AllocaPartitioning(const DataLayout &TD, AllocaInst &AI);
356 AllocaInst &AI;
453 PartitionBuilder(const DataLayout &DL, AllocaInst &AI, AllocaPartitioning &P)
793 UseBuilder(const DataLayout &TD, AllocaInst &AI, AllocaPartitioning &P)
    [all...]
  /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...]
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)) {
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);
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);
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;
  /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/Analysis/
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)) ||
CodeMetrics.cpp 59 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
  /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...]
ProfilingUtils.cpp 48 while (isa<AllocaInst>(InsertPos)) ++InsertPos;
112 while (isa<AllocaInst>(InsertPos))
  /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 =
  /external/llvm/lib/Transforms/InstCombine/
InstCombineLoadStoreAlloca.cpp 145 isOnlyCopiedFromConstantGlobal(AllocaInst *AI,
153 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) {
171 AllocaInst *New = Builder->CreateAlloca(NewTy, 0, AI.getName());
178 while (isa<AllocaInst>(*It) || isa<DbgInfoIntrinsic>(*It)) ++It;
223 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst);
588 if (isa<AllocaInst>(Ptr))
591 if (isa<AllocaInst>(GEP->getOperand(0))) {
  /frameworks/compile/libbcc/lib/Renderscript/
RSForEachExpand.cpp 263 llvm::AllocaInst *AX = Builder.CreateAlloca(Int32Ty, 0, "AX");
271 llvm::AllocaInst *AIn = NULL;
283 llvm::AllocaInst *AOut = NULL;
483 llvm::AllocaInst *AX = Builder.CreateAlloca(Int32Ty, 0, "AX");
491 llvm::AllocaInst *AOut = NULL;
512 llvm::AllocaInst *AIn = NULL;

Completed in 743 milliseconds

1 2 3 4 5