Lines Matching refs:Stmt
155 if (!Stmt || !Inst) { in print()
160 OS << "[" << Stmt->getBaseName() << "]"; in print()
200 addInstructionRoots(ScopStmt *Stmt, in addInstructionRoots() argument
202 if (!Stmt->isBlockStmt()) { in addInstructionRoots()
206 RootInsts.emplace_back(Stmt, in addInstructionRoots()
207 Stmt->getRegion()->getEntry()->getTerminator()); in addInstructionRoots()
208 for (BasicBlock *BB : Stmt->getRegion()->blocks()) in addInstructionRoots()
209 if (Stmt->getRegion()->getEntry() != BB) in addInstructionRoots()
211 RootInsts.emplace_back(Stmt, &Inst); in addInstructionRoots()
215 for (Instruction *Inst : Stmt->getInstructions()) in addInstructionRoots()
217 RootInsts.emplace_back(Stmt, Inst); in addInstructionRoots()
228 static void addAccessRoots(ScopStmt *Stmt, in addAccessRoots() argument
231 for (auto *MA : *Stmt) { in addAccessRoots()
257 static void addRoots(ScopStmt *Stmt, in addRoots() argument
260 addInstructionRoots(Stmt, RootInsts); in addRoots()
261 addAccessRoots(Stmt, RootAccs, Local); in addRoots()
322 ScopStmt *Stmt = Acc->getStatement(); in walkReachable() local
323 if (OnlyLocal && Stmt != OnlyLocal) in walkReachable()
350 Loop *Scope = Stmt->getSurroundingLoop(); in walkReachable()
352 VirtualUse::create(S, Stmt, Scope, Acc->getAccessValue(), true); in walkReachable()
359 S, Stmt, LI->getLoopFor(Incoming.first), Incoming.second, true); in walkReachable()
365 WorklistInsts.emplace_back(Stmt, Acc->getAccessInstruction()); in walkReachable()
374 ScopStmt *Stmt = VInst.getStmt(); in walkReachable() local
378 if (OnlyLocal && Stmt != OnlyLocal) in walkReachable()
387 if (PHI && PHI->getParent() == Stmt->getEntryBlock()) { in walkReachable()
388 if (MemoryAccess *PHIRead = Stmt->lookupPHIReadOf(PHI)) in walkReachable()
396 const MemoryAccessList *Accs = Stmt->lookupArrayAccessesFor(Inst); in walkReachable()
415 for (auto &Stmt : *S) in markReachable()
416 addRoots(&Stmt, RootInsts, RootAccs, false); in markReachable()