Lines Matching defs:AllocaPtr
180 bool IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize);
183 const Value *AllocaPtr, uint64_t AllocaSize);
184 bool IsAccessSafe(Value *Addr, uint64_t Size, const Value *AllocaPtr,
217 const Value *AllocaPtr, uint64_t AllocaSize) {
220 if (!Base || Base->getValue() != AllocaPtr) {
223 << (isa<AllocaInst>(AllocaPtr) ? "Alloca " : "ByValArgument ")
224 << *AllocaPtr << "\n"
241 << (isa<AllocaInst>(AllocaPtr) ? "Alloca " : "ByValArgument ")
242 << *AllocaPtr << "\n"
255 const Value *AllocaPtr,
268 return IsAccessSafe(U, Len->getZExtValue(), AllocaPtr, AllocaSize);
274 bool SafeStack::IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize) {
280 WorkList.push_back(AllocaPtr);
291 if (!IsAccessSafe(UI, DL.getTypeStoreSize(I->getType()), AllocaPtr,
303 << "[SafeStack] Unsafe alloca: " << *AllocaPtr
309 AllocaPtr, AllocaSize))
325 if (!IsMemIntrinsicSafe(MI, UI, AllocaPtr, AllocaSize)) {
327 << "[SafeStack] Unsafe alloca: " << *AllocaPtr
346 LLVM_DEBUG(dbgs() << "[SafeStack] Unsafe alloca: " << *AllocaPtr