Lines Matching refs:User
325 static bool canVectorizeInst(Instruction *Inst, User *User) { in canVectorizeInst() argument
331 if (isa<AllocaInst>(User) && in canVectorizeInst()
332 LI->getPointerOperandType() == User->getType() && in canVectorizeInst()
344 if (isa<AllocaInst>(User) && in canVectorizeInst()
345 SI->getPointerOperandType() == User->getType() && in canVectorizeInst()
348 return (SI->getPointerOperand() == User) && isa<GetElementPtrInst>(User) && SI->isSimple(); in canVectorizeInst()
381 for (User *AllocaUser : Alloca->users()) { in tryPromoteAllocaToVector()
402 for (User *GEPUser : AllocaUser->users()) { in tryPromoteAllocaToVector()
523 for (User *User : Val->users()) { in collectUsesWithPtrTypes()
524 if (is_contained(WorkList, User)) in collectUsesWithPtrTypes()
527 if (CallInst *CI = dyn_cast<CallInst>(User)) { in collectUsesWithPtrTypes()
531 WorkList.push_back(User); in collectUsesWithPtrTypes()
535 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes()
576 WorkList.push_back(User); in collectUsesWithPtrTypes()
580 if (!User->getType()->isPointerTy()) in collectUsesWithPtrTypes()
613 WorkList.push_back(User); in collectUsesWithPtrTypes()
614 if (!collectUsesWithPtrTypes(BaseAlloca, User, WorkList)) in collectUsesWithPtrTypes()
651 for (const User *U : GV.users()) { in hasSufficientLocalMem()