Lines Matching refs:AllocaPtr

107   const Value *AllocaPtr;  member in __anona08a2d6e0111::AllocaOffsetRewriter
110 AllocaOffsetRewriter(ScalarEvolution &SE, const Value *AllocaPtr) in AllocaOffsetRewriter() argument
111 : SCEVRewriteVisitor(SE), AllocaPtr(AllocaPtr) {} in AllocaOffsetRewriter()
114 if (Expr->getValue() == AllocaPtr) in visitUnknown()
196 bool IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize);
199 const Value *AllocaPtr, uint64_t AllocaSize);
200 bool IsAccessSafe(Value *Addr, uint64_t Size, const Value *AllocaPtr,
232 const Value *AllocaPtr, uint64_t AllocaSize) { in IsAccessSafe() argument
233 AllocaOffsetRewriter Rewriter(SE, AllocaPtr); in IsAccessSafe()
247 << (isa<AllocaInst>(AllocaPtr) ? "Alloca " : "ByValArgument ") in IsAccessSafe()
248 << *AllocaPtr << "\n" in IsAccessSafe()
261 const Value *AllocaPtr, in IsMemIntrinsicSafe() argument
274 return IsAccessSafe(U, Len->getZExtValue(), AllocaPtr, AllocaSize); in IsMemIntrinsicSafe()
280 bool SafeStack::IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize) { in IsSafeStackAlloca() argument
286 WorkList.push_back(AllocaPtr); in IsSafeStackAlloca()
297 if (!IsAccessSafe(UI, DL.getTypeStoreSize(I->getType()), AllocaPtr, in IsSafeStackAlloca()
309 << "[SafeStack] Unsafe alloca: " << *AllocaPtr in IsSafeStackAlloca()
315 AllocaPtr, AllocaSize)) in IsSafeStackAlloca()
331 if (!IsMemIntrinsicSafe(MI, UI, AllocaPtr, AllocaSize)) { in IsSafeStackAlloca()
333 << "[SafeStack] Unsafe alloca: " << *AllocaPtr in IsSafeStackAlloca()
352 LLVM_DEBUG(dbgs() << "[SafeStack] Unsafe alloca: " << *AllocaPtr in IsSafeStackAlloca()