Lines Matching refs:tab
123 void ppHRegUsage ( const RRegUniverse* univ, HRegUsage* tab ) in ppHRegUsage() argument
132 Bool rRd = (tab->rRead & (1ULL << i)) != 0; in ppHRegUsage()
133 Bool rWr = (tab->rWritten & (1ULL << i)) != 0; in ppHRegUsage()
144 for (UInt i = 0; i < tab->n_vRegs; i++) { in ppHRegUsage()
146 switch (tab->vMode[i]) { in ppHRegUsage()
153 ppHReg(tab->vRegs[i]); in ppHRegUsage()
164 void addHRegUse ( HRegUsage* tab, HRegMode mode, HReg reg ) in addHRegUse() argument
172 for (i = 0; i < tab->n_vRegs; i++) in addHRegUse()
173 if (sameHReg(tab->vRegs[i], reg)) in addHRegUse()
175 if (i == tab->n_vRegs) { in addHRegUse()
177 vassert(tab->n_vRegs < N_HREGUSAGE_VREGS); in addHRegUse()
178 tab->vRegs[tab->n_vRegs] = reg; in addHRegUse()
179 tab->vMode[tab->n_vRegs] = mode; in addHRegUse()
180 tab->n_vRegs++; in addHRegUse()
193 if (tab->vMode[i] == mode) { in addHRegUse()
196 tab->vMode[i] = HRmModify; in addHRegUse()
205 case HRmRead: tab->rRead |= mask; break; in addHRegUse()
206 case HRmWrite: tab->rWritten |= mask; break; in addHRegUse()
207 case HRmModify: tab->rRead |= mask; tab->rWritten |= mask; break; in addHRegUse()
213 Bool HRegUsage__contains ( const HRegUsage* tab, HReg reg ) in HRegUsage__contains() argument
217 for (UInt i = 0; i < tab->n_vRegs; i++) { in HRegUsage__contains()
218 if (sameHReg(reg, tab->vRegs[i])) in HRegUsage__contains()
225 ULong mentioned = tab->rRead | tab->rWritten; in HRegUsage__contains()