Lines Matching refs:AI

93     const AllocaInst *AI = MFI.getObjectAllocation(I);  in copyToMachineFrameInfo()  local
94 if (!AI) in copyToMachineFrameInfo()
97 SSPLayoutMap::const_iterator LI = Layout.find(AI); in copyToMachineFrameInfo()
255 static bool HasAddressTaken(const Instruction *AI, TypeSize AllocSize, in HasAddressTaken() argument
259 for (const User *U : AI->users()) { in HasAddressTaken()
269 if (AI == cast<StoreInst>(I)->getValueOperand()) in HasAddressTaken()
275 if (AI == cast<AtomicCmpXchgInst>(I)->getNewValOperand()) in HasAddressTaken()
279 if (AI == cast<PtrToIntInst>(I)->getOperand(0)) in HasAddressTaken()
411 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in requiresStackProtector() local
412 if (AI->isArrayAllocation()) { in requiresStackProtector()
421 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in requiresStackProtector()
428 std::make_pair(AI, MachineFrameInfo::SSPLK_LargeArray)); in requiresStackProtector()
436 std::make_pair(AI, MachineFrameInfo::SSPLK_SmallArray)); in requiresStackProtector()
445 std::make_pair(AI, MachineFrameInfo::SSPLK_LargeArray)); in requiresStackProtector()
453 if (ContainsProtectableArray(AI->getAllocatedType(), M, SSPBufferSize, in requiresStackProtector()
458 AI, IsLarge ? MachineFrameInfo::SSPLK_LargeArray in requiresStackProtector()
473 AI, M->getDataLayout().getTypeAllocSize(AI->getAllocatedType()), in requiresStackProtector()
478 Layout->insert(std::make_pair(AI, MachineFrameInfo::SSPLK_AddrOf)); in requiresStackProtector()
536 const TargetLoweringBase *TLI, AllocaInst *&AI) { in CreatePrologue() argument
540 AI = B.CreateAlloca(PtrTy, nullptr, "StackGuardSlot"); in CreatePrologue()
544 {GuardSlot, AI}); in CreatePrologue()
560 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. in InsertStackProtectors() local
584 SupportsSelectionDAGSP &= CreatePrologue(F, M, CheckLoc, TLI, AI); in InsertStackProtectors()
594 if (!AI) { in InsertStackProtectors()
597 AI = cast<AllocaInst>(SPCall->getArgOperand(1)); in InsertStackProtectors()
626 LoadInst *Guard = B.CreateLoad(B.getPtrTy(), AI, true, "Guard"); in InsertStackProtectors()
665 LoadInst *LI2 = B.CreateLoad(B.getPtrTy(), AI, true); in InsertStackProtectors()