Lines Matching refs:AI

162 bool StackProtector::HasAddressTaken(const Instruction *AI,  in HasAddressTaken()  argument
165 for (const User *U : AI->users()) { in HasAddressTaken()
176 if (AI == cast<StoreInst>(I)->getValueOperand()) in HasAddressTaken()
182 if (AI == cast<AtomicCmpXchgInst>(I)->getNewValOperand()) in HasAddressTaken()
186 if (AI == cast<PtrToIntInst>(I)->getOperand(0)) in HasAddressTaken()
306 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector() local
307 if (AI->isArrayAllocation()) { in RequiresStackProtector()
316 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
320 Layout.insert(std::make_pair(AI, in RequiresStackProtector()
326 Layout.insert(std::make_pair(AI, in RequiresStackProtector()
333 Layout.insert(std::make_pair(AI, in RequiresStackProtector()
342 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector()
343 Layout.insert(std::make_pair(AI, IsLarge in RequiresStackProtector()
357 if (Strong && HasAddressTaken(AI, M->getDataLayout().getTypeAllocSize( in RequiresStackProtector()
358 AI->getAllocatedType()))) { in RequiresStackProtector()
360 Layout.insert(std::make_pair(AI, MachineFrameInfo::SSPLK_AddrOf)); in RequiresStackProtector()
418 const TargetLoweringBase *TLI, AllocaInst *&AI) { in CreatePrologue() argument
422 AI = B.CreateAlloca(PtrTy, nullptr, "StackGuardSlot"); in CreatePrologue()
426 {GuardSlot, AI}); in CreatePrologue()
443 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. in InsertStackProtectors() local
453 SupportsSelectionDAGSP &= CreatePrologue(F, M, RI, TLI, AI); in InsertStackProtectors()
463 if (!AI) { in InsertStackProtectors()
466 AI = cast<AllocaInst>(SPCall->getArgOperand(1)); in InsertStackProtectors()
496 LoadInst *Guard = B.CreateLoad(B.getInt8PtrTy(), AI, true, "Guard"); in InsertStackProtectors()
552 LoadInst *LI2 = B.CreateLoad(B.getInt8PtrTy(), AI, true); in InsertStackProtectors()
607 const AllocaInst *AI = MFI.getObjectAllocation(I); in copyToMachineFrameInfo() local
608 if (!AI) in copyToMachineFrameInfo()
611 SSPLayoutMap::const_iterator LI = Layout.find(AI); in copyToMachineFrameInfo()