Home | History | Annotate | Download | only in TableGen

Lines Matching refs:Reg

142     CodeGenRegister *Reg = RegBank.getReg(Aliases[i]);
143 ExplicitAliases.push_back(Reg);
144 Reg->ExplicitAliases.push_back(this);
495 // Make sure all sub-registers have been visited first, so the super-reg
586 Record *Reg = Lists[i][n];
588 Name += Reg->getName();
589 Tuple.push_back(DefInit::get(Reg));
591 unsigned(Reg->getValueAsInt("CostPerUse")));
691 const CodeGenRegister *Reg = RegBank.getReg((*Elements)[i]);
692 Members.insert(Reg);
693 TopoSigs.set(Reg->getTopoSig());
703 CodeGenRegister *Reg = RegBank.getReg(Order.back());
705 if (!contains(Reg))
706 PrintFatalError(R->getLoc(), " AltOrder register " + Reg->getName() +
766 bool CodeGenRegisterClass::contains(const CodeGenRegister *Reg) const {
767 return Members.count(Reg);
1032 CodeGenRegister *&Reg = Def2Reg[Def];
1033 if (Reg)
1034 return Reg;
1035 Reg = new CodeGenRegister(Def, Registers.size() + 1);
1036 Registers.push_back(Reg);
1037 return Reg;
1152 // OK Reg1:IdxPair == Reg3. Find the index with Reg:Idx == Reg3.
1294 const CodeGenRegister *Reg = Registers[i];
1295 unsigned USetID = UberSetIDs[Reg->EnumValue];
1302 USet->Regs.insert(Reg);
1314 // Initialize all unit weights in this set, and remember the max units/reg.
1315 const CodeGenRegister *Reg = nullptr;
1318 if (Reg != UnitI.getReg()) {
1321 Reg = UnitI.getReg();
1366 static bool normalizeWeight(CodeGenRegister *Reg,
1373 if (!NormalRegs.insert(Reg->EnumValue).second)
1376 const CodeGenRegister::SubRegMap &SRM = Reg->getSubRegs();
1379 if (SRI->second == Reg)
1388 if (Reg->inheritRegUnits(RegBank))
1392 UberRegSet *UberSet = RegSets[RegBank.getRegIndex(Reg)];
1394 unsigned RegWeight = Reg->getWeight(RegBank);
1399 unsigned AdjustUnit = Reg->getRegUnits().front();
1400 if (Reg->getRegUnits().size() != 1
1405 Reg->adoptRegUnit(AdjustUnit);
1418 mergeRegUnits(NormalUnits, Reg->getRegUnits());
1924 const CodeGenRegister *Reg = getReg(R);
1929 if (!RC.contains(Reg))
1969 CodeGenRegister *Reg = getReg(Regs[i]);
1970 if (Set.insert(Reg))
1971 // Reg is new, add all sub-registers.
1973 Reg->addSubRegsPreOrder(Set, *this);