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