Lines Matching refs:AllocaPtr
181 bool IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize);
184 const Value *AllocaPtr, uint64_t AllocaSize);
185 bool IsAccessSafe(Value *Addr, uint64_t Size, const Value *AllocaPtr,
218 const Value *AllocaPtr, uint64_t AllocaSize) { in IsAccessSafe() argument
221 if (!Base || Base->getValue() != AllocaPtr) { in IsAccessSafe()
224 << (isa<AllocaInst>(AllocaPtr) ? "Alloca " : "ByValArgument ") in IsAccessSafe()
225 << *AllocaPtr << "\n" in IsAccessSafe()
242 << (isa<AllocaInst>(AllocaPtr) ? "Alloca " : "ByValArgument ") in IsAccessSafe()
243 << *AllocaPtr << "\n" in IsAccessSafe()
256 const Value *AllocaPtr, in IsMemIntrinsicSafe() argument
269 return IsAccessSafe(U, Len->getZExtValue(), AllocaPtr, AllocaSize); in IsMemIntrinsicSafe()
275 bool SafeStack::IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize) { in IsSafeStackAlloca() argument
281 WorkList.push_back(AllocaPtr); in IsSafeStackAlloca()
292 if (!IsAccessSafe(UI, DL.getTypeStoreSize(I->getType()), AllocaPtr, in IsSafeStackAlloca()
304 << "[SafeStack] Unsafe alloca: " << *AllocaPtr in IsSafeStackAlloca()
310 AllocaPtr, AllocaSize)) in IsSafeStackAlloca()
326 if (!IsMemIntrinsicSafe(MI, UI, AllocaPtr, AllocaSize)) { in IsSafeStackAlloca()
328 << "[SafeStack] Unsafe alloca: " << *AllocaPtr in IsSafeStackAlloca()
347 LLVM_DEBUG(dbgs() << "[SafeStack] Unsafe alloca: " << *AllocaPtr in IsSafeStackAlloca()