Lines Matching defs:sets
228 /// the given "sets".
229 /// If this couple does not reference any set, an empty set is added to "sets"
232 /// with the way sets is used.
233 static SetOfMachineInstr &getSet(BlockToSetOfInstrsPerColor &sets,
237 BlockToSetOfInstrsPerColor::iterator it = sets.find(&MBB);
238 if (it != sets.end())
241 result = sets[&MBB] = new SetOfMachineInstr[nbRegs];
247 /// the given "sets".
248 /// This is used to get the uses record in sets of a definition identified by
251 /// "sets[reg]".
253 static SetOfMachineInstr &getUses(InstrToInstrs *sets, unsigned reg,
255 return sets[reg][&MI];
258 /// Same as getUses but does not modify the input map: sets.
259 /// \return NULL if the couple (reg, MI) is not in sets.
260 static const SetOfMachineInstr *getUses(const InstrToInstrs *sets, unsigned reg,
262 InstrToInstrs::const_iterator Res = sets[reg].find(&MI);
263 if (Res != sets[reg].end())