Lines Matching refs:domain

71   bool hasDomain(unsigned domain) const {  in hasDomain()
72 return AvailableDomains & (1u << domain); in hasDomain()
76 void addDomain(unsigned domain) { in addDomain()
77 AvailableDomains |= 1u << domain; in addDomain()
81 void setSingleDomain(unsigned domain) { in setSingleDomain()
82 AvailableDomains = 1u << domain; in setSingleDomain()
142 DomainValue *Alloc(int domain = -1);
148 void Force(int rx, unsigned domain);
149 void Collapse(DomainValue *dv, unsigned domain);
155 void visitHardInstr(MachineInstr*, unsigned domain);
168 DomainValue *ExeDepsFix::Alloc(int domain) { in Alloc() argument
173 if (domain >= 0) in Alloc()
174 dv->addDomain(domain); in Alloc()
216 void ExeDepsFix::Force(int rx, unsigned domain) { in Force() argument
221 dv->addDomain(domain); in Force()
222 else if (dv->hasDomain(domain)) in Force()
223 Collapse(dv, domain); in Force()
229 LiveRegs[rx]->addDomain(domain); in Force()
233 SetLiveReg(rx, Alloc(domain)); in Force()
239 void ExeDepsFix::Collapse(DomainValue *dv, unsigned domain) { in Collapse() argument
240 assert(dv->hasDomain(domain) && "Cannot collapse"); in Collapse()
244 TII->setExecutionDomain(dv->Instrs.pop_back_val(), domain); in Collapse()
245 dv->setSingleDomain(domain); in Collapse()
251 SetLiveReg(rx, Alloc(domain)); in Collapse()
294 unsigned domain = LiveRegs[rx]->getFirstDomain(); in enterBasicBlock() local
295 if (!pdv->isCollapsed() && pdv->hasDomain(domain)) in enterBasicBlock()
296 Collapse(pdv, domain); in enterBasicBlock()
311 void ExeDepsFix::visitHardInstr(MachineInstr *mi, unsigned domain) { in visitHardInstr() argument
319 Force(rx, domain); in visitHardInstr()
329 Force(rx, domain); in visitHardInstr()
369 unsigned domain = CountTrailingZeros_32(available); in visitSoftInstr() local
370 TII->setExecutionDomain(mi, domain); in visitSoftInstr()
371 visitHardInstr(mi, domain); in visitSoftInstr()