Lines Matching refs:AllocaPtr

112   const Value *AllocaPtr;  member in __anon2905dedd0111::AllocaOffsetRewriter
115 AllocaOffsetRewriter(ScalarEvolution &SE, const Value *AllocaPtr) in AllocaOffsetRewriter() argument
116 : SCEVRewriteVisitor(SE), AllocaPtr(AllocaPtr) {} in AllocaOffsetRewriter()
119 if (Expr->getValue() == AllocaPtr) in visitUnknown()
200 bool IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize);
203 const Value *AllocaPtr, uint64_t AllocaSize);
204 bool IsAccessSafe(Value *Addr, uint64_t Size, const Value *AllocaPtr,
236 const Value *AllocaPtr, uint64_t AllocaSize) { in IsAccessSafe() argument
237 AllocaOffsetRewriter Rewriter(SE, AllocaPtr); in IsAccessSafe()
251 << (isa<AllocaInst>(AllocaPtr) ? "Alloca " : "ByValArgument ") in IsAccessSafe()
252 << *AllocaPtr << "\n" in IsAccessSafe()
265 const Value *AllocaPtr, in IsMemIntrinsicSafe() argument
278 return IsAccessSafe(U, Len->getZExtValue(), AllocaPtr, AllocaSize); in IsMemIntrinsicSafe()
284 bool SafeStack::IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize) { in IsSafeStackAlloca() argument
290 WorkList.push_back(AllocaPtr); in IsSafeStackAlloca()
301 if (!IsAccessSafe(UI, DL.getTypeStoreSize(I->getType()), AllocaPtr, in IsSafeStackAlloca()
313 << "[SafeStack] Unsafe alloca: " << *AllocaPtr in IsSafeStackAlloca()
319 AllocaPtr, AllocaSize)) in IsSafeStackAlloca()
335 if (!IsMemIntrinsicSafe(MI, UI, AllocaPtr, AllocaSize)) { in IsSafeStackAlloca()
337 << "[SafeStack] Unsafe alloca: " << *AllocaPtr in IsSafeStackAlloca()
356 LLVM_DEBUG(dbgs() << "[SafeStack] Unsafe alloca: " << *AllocaPtr in IsSafeStackAlloca()