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