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

1 2 3 4 5 6

  /external/llvm/include/llvm/Transforms/Utils/
PromoteMemToReg.h 22 class AllocaInst;
33 bool isAllocaPromotable(const AllocaInst *AI);
44 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
ASanStackFrameLayout.h 20 class AllocaInst;
34 AllocaInst *AI; // The actual AllocaInst.
Local.h 37 class AllocaInst;
160 AllocaInst *DemoteRegToStack(Instruction &X,
167 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = nullptr);
288 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
  /external/llvm/include/llvm/Transforms/Scalar/
SROA.h 66 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> Worklist;
81 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> PostPromotionWorklist;
84 std::vector<AllocaInst *> PromotableAllocas;
117 bool presplitLoadsAndStores(AllocaInst &AI, sroa::AllocaSlices &AS);
118 AllocaInst *rewritePartition(AllocaInst &AI, sroa::AllocaSlices &AS,
120 bool splitAlloca(AllocaInst &AI, sroa::AllocaSlices &AS);
121 bool runOnAlloca(AllocaInst &AI)
    [all...]
  /external/llvm/include/llvm/CodeGen/
StackProtector.h 48 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);
WinEHFuncInfo.h 23 class AllocaInst;
67 const AllocaInst *Alloca;
MachineFrameInfo.h 33 class AllocaInst;
106 const AllocaInst *Alloca;
119 bool isSS, const AllocaInst *Val, bool A)
424 const AllocaInst* getObjectAllocation(int ObjectIdx) const {
568 const AllocaInst *Alloca = nullptr);
583 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca);
FunctionLoweringInfo.h 33 class AllocaInst;
96 DenseMap<const AllocaInst*, int> StaticAllocaMap;
  /external/llvm/lib/Target/NVPTX/
NVPTXAllocaHoisting.cpp 50 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++);
51 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) {
52 allocaInst->moveBefore(firstTerminatorInst);
NVPTXLowerKernelArgs.cpp 151 AllocaInst *AllocA = new AllocaInst(StructType, Arg->getName(), FirstInst);
  /external/llvm/lib/Transforms/Utils/
DemoteRegToStack.cpp 24 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",
107 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) {
114 AllocaInst *Slot;
116 Slot = new AllocaInst(P->getType(), nullptr,
120 Slot = new AllocaInst(P->getType(), nullptr, P->getName() + ".reg2mem",
Mem2Reg.cpp 62 std::vector<AllocaInst*> Allocas;
81 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
PromoteMemoryToRegister.cpp 51 bool llvm::isAllocaPromotable(const AllocaInst *AI) {
119 void AnalyzeAlloca(AllocaInst *AI) {
189 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) ||
190 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1)));
224 std::vector<AllocaInst *> Allocas;
235 DenseMap<AllocaInst *, unsigned> AllocaLookup;
271 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
293 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
304 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) {
336 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info
    [all...]
  /external/llvm/lib/CodeGen/
GCRootLowering.cpp 138 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()));
StackProtector.cpp 60 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.
StackColoring.cpp 258 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot);
473 DenseMap<const AllocaInst*, const AllocaInst*> Allocas;
475 const AllocaInst *From = MFI->getObjectAllocation(SI.first);
476 const AllocaInst *To = MFI->getObjectAllocation(SI.second);
486 Instruction *Inst = const_cast<AllocaInst *>(To);
500 const_cast<AllocaInst *>(From)->replaceAllUsesWith(Inst);
522 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue());
ShadowStackGCLowering.cpp 41 std::vector<std::pair<CallInst *, AllocaInst *>> Roots;
328 SmallVector<std::pair<CallInst *, AllocaInst *>, 16> MetaRoots;
335 std::pair<CallInst *, AllocaInst *> Pair = std::make_pair(
337 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts()));
404 while (isa<AllocaInst>(IP))
421 AllocaInst *OriginalAlloca = Roots[I].second;
WinEHPrepare.cpp 65 void insertPHIStores(PHINode *OriginalPHI, AllocaInst *SpillSlot);
67 insertPHIStore(BasicBlock *PredBlock, Value *PredVal, AllocaInst *SpillSlot,
69 AllocaInst *insertPHILoads(PHINode *PN, Function &F);
70 void replaceUseWithLoad(Value *V, Use &U, AllocaInst *&SpillSlot,
145 HT.CatchObj.Alloca = cast<AllocaInst>(CPI->getArgOperand(2));
568 AllocaInst *SpillSlot = insertPHILoads(PN, F);
    [all...]
  /external/llvm/lib/Transforms/Scalar/
ScalarReplAggregates.cpp 103 AllocaInst *AI;
128 explicit AllocaInfo(AllocaInst *ai)
153 bool isSafeAllocaToScalarRepl(AllocaInst *AI);
167 void DoScalarReplacement(AllocaInst *AI,
168 std::vector<AllocaInst*> &WorkList);
171 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
172 SmallVectorImpl<AllocaInst *> &NewElts);
173 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
174 SmallVectorImpl<AllocaInst *> &NewElts);
175 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset
    [all...]
Reg2Mem.cpp 83 while (isa<AllocaInst>(I)) ++I;
96 if (!(isa<AllocaInst>(iib) && iib->getParent() == BBEntry) &&
  /external/llvm/lib/Transforms/Instrumentation/
SafeStack.cpp 128 void findInsts(Function &F, SmallVectorImpl<AllocaInst *> &StaticAllocas,
129 SmallVectorImpl<AllocaInst *> &DynamicAllocas,
136 uint64_t getStaticAllocaAllocationSize(const AllocaInst* AI);
145 ArrayRef<AllocaInst *> StaticAllocas,
154 AllocaInst *
163 AllocaInst *DynamicTop,
164 ArrayRef<AllocaInst *> DynamicAllocas);
199 uint64_t SafeStack::getStaticAllocaAllocationSize(const AllocaInst* AI) {
225 << (isa<AllocaInst>(AllocaPtr) ? "Alloca " : "ByValArgument ")
382 SmallVectorImpl<AllocaInst *> &StaticAllocas
    [all...]
Instrumentation.cpp 43 if (auto *AI = dyn_cast<AllocaInst>(I)) {
  /external/llvm/lib/Target/AMDGPU/
AMDGPUTargetTransformInfo.cpp 47 const AllocaInst *Alloca =
48 dyn_cast<AllocaInst>(GetUnderlyingObject(Ptr, DL));
  /external/llvm/lib/Analysis/
Loads.cpp 83 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Base)) {
255 if ((isa<AllocaInst>(StrippedPtr) || isa<GlobalVariable>(StrippedPtr)) &&
256 (isa<AllocaInst>(StorePtr) || isa<GlobalVariable>(StorePtr)) &&
  /external/llvm/include/llvm/Analysis/
ObjCARCAnalysisUtils.h 142 if (isa<Constant>(Op) || isa<AllocaInst>(Op))
205 isa<AllocaInst>(V))

Completed in 813 milliseconds

1 2 3 4 5 6