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