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