Lines Matching refs:AI

166 bool StackProtector::HasAddressTaken(const Instruction *AI,  in HasAddressTaken()  argument
169 for (const User *U : AI->users()) { in HasAddressTaken()
179 if (AI == cast<StoreInst>(I)->getValueOperand()) in HasAddressTaken()
185 if (AI == cast<AtomicCmpXchgInst>(I)->getNewValOperand()) in HasAddressTaken()
189 if (AI == cast<PtrToIntInst>(I)->getOperand(0)) in HasAddressTaken()
303 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector() local
304 if (AI->isArrayAllocation()) { in RequiresStackProtector()
313 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
317 Layout.insert(std::make_pair(AI, in RequiresStackProtector()
323 Layout.insert(std::make_pair(AI, in RequiresStackProtector()
330 Layout.insert(std::make_pair(AI, in RequiresStackProtector()
339 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector()
340 Layout.insert(std::make_pair(AI, IsLarge in RequiresStackProtector()
354 if (Strong && HasAddressTaken(AI, M->getDataLayout().getTypeAllocSize( in RequiresStackProtector()
355 AI->getAllocatedType()))) { in RequiresStackProtector()
357 Layout.insert(std::make_pair(AI, MachineFrameInfo::SSPLK_AddrOf)); in RequiresStackProtector()
415 const TargetLoweringBase *TLI, AllocaInst *&AI) { in CreatePrologue() argument
419 AI = B.CreateAlloca(PtrTy, nullptr, "StackGuardSlot"); in CreatePrologue()
423 {GuardSlot, AI}); in CreatePrologue()
441 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. in InsertStackProtectors() local
452 SupportsSelectionDAGSP &= CreatePrologue(F, M, RI, TLI, AI); in InsertStackProtectors()
462 if (!AI) { in InsertStackProtectors()
465 AI = cast<AllocaInst>(SPCall->getArgOperand(1)); in InsertStackProtectors()
495 LoadInst *Guard = B.CreateLoad(B.getInt8PtrTy(), AI, true, "Guard"); in InsertStackProtectors()
551 LoadInst *LI2 = B.CreateLoad(B.getInt8PtrTy(), AI, true); in InsertStackProtectors()
606 const AllocaInst *AI = MFI.getObjectAllocation(I); in copyToMachineFrameInfo() local
607 if (!AI) in copyToMachineFrameInfo()
610 SSPLayoutMap::const_iterator LI = Layout.find(AI); in copyToMachineFrameInfo()