• Home
  • Raw
  • Download

Lines Matching refs:dv

192   void collapse(DomainValue *dv, unsigned domain);
218 DomainValue *dv = Avail.empty() ? in alloc() local
222 dv->addDomain(domain); in alloc()
223 assert(dv->Refs == 0 && "Reference count wasn't cleared"); in alloc()
224 assert(!dv->Next && "Chained DomainValue shouldn't have been recycled"); in alloc()
225 return dv; in alloc()
267 void ExeDepsFix::setLiveReg(int rx, DomainValue *dv) { in setLiveReg() argument
271 if (LiveRegs[rx].Value == dv) in setLiveReg()
275 LiveRegs[rx].Value = retain(dv); in setLiveReg()
293 if (DomainValue *dv = LiveRegs[rx].Value) { in force() local
294 if (dv->isCollapsed()) in force()
295 dv->addDomain(domain); in force()
296 else if (dv->hasDomain(domain)) in force()
297 collapse(dv, domain); in force()
301 collapse(dv, dv->getFirstDomain()); in force()
313 void ExeDepsFix::collapse(DomainValue *dv, unsigned domain) { in collapse() argument
314 assert(dv->hasDomain(domain) && "Cannot collapse"); in collapse()
317 while (!dv->Instrs.empty()) in collapse()
318 TII->setExecutionDomain(dv->Instrs.pop_back_val(), domain); in collapse()
319 dv->setSingleDomain(domain); in collapse()
322 if (LiveRegs && dv->Refs > 1) in collapse()
324 if (LiveRegs[rx].Value == dv) in collapse()
617 DomainValue *dv = LiveRegs[rx].Value; in visitSoftInstr() local
618 if (dv == nullptr) in visitSoftInstr()
621 unsigned common = dv->getCommonDomains(available); in visitSoftInstr()
623 if (dv->isCollapsed()) { in visitSoftInstr()
673 DomainValue *dv = nullptr; in visitSoftInstr() local
675 if (!dv) { in visitSoftInstr()
676 dv = Regs.pop_back_val().Value; in visitSoftInstr()
678 dv->AvailableDomains = dv->getCommonDomains(available); in visitSoftInstr()
679 assert(dv->AvailableDomains && "Domain should have been filtered"); in visitSoftInstr()
685 if (Latest == dv || Latest->Next) in visitSoftInstr()
687 if (merge(dv, Latest)) in visitSoftInstr()
699 if (!dv) { in visitSoftInstr()
700 dv = alloc(); in visitSoftInstr()
701 dv->AvailableDomains = available; in visitSoftInstr()
703 dv->Instrs.push_back(mi); in visitSoftInstr()
713 if (!LiveRegs[rx].Value || (mo.isDef() && LiveRegs[rx].Value != dv)) { in visitSoftInstr()
715 setLiveReg(rx, dv); in visitSoftInstr()