e6c72df7407eb4badb698415643f884876ee42b8
[oota-llvm.git] / utils / TableGen / CodeGenRegisters.h
1 //===- CodeGenRegisters.h - Register and RegisterClass Info -----*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines structures to encapsulate information gleaned from the
11 // target register and register class definitions.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef CODEGEN_REGISTERS_H
16 #define CODEGEN_REGISTERS_H
17
18 #include "SetTheory.h"
19 #include "llvm/TableGen/Record.h"
20 #include "llvm/CodeGen/ValueTypes.h"
21 #include "llvm/ADT/ArrayRef.h"
22 #include "llvm/ADT/BitVector.h"
23 #include "llvm/ADT/DenseMap.h"
24 #include "llvm/ADT/SetVector.h"
25 #include "llvm/Support/ErrorHandling.h"
26 #include <cstdlib>
27 #include <map>
28 #include <string>
29 #include <set>
30 #include <vector>
31
32 namespace llvm {
33   class CodeGenRegBank;
34
35   /// CodeGenSubRegIndex - Represents a sub-register index.
36   class CodeGenSubRegIndex {
37     Record *const TheDef;
38
39   public:
40     const unsigned EnumValue;
41
42     CodeGenSubRegIndex(Record *R, unsigned Enum);
43
44     const std::string &getName() const;
45     std::string getNamespace() const;
46     std::string getQualifiedName() const;
47
48     // Order CodeGenSubRegIndex pointers by EnumValue.
49     struct Less {
50       bool operator()(const CodeGenSubRegIndex *A,
51                       const CodeGenSubRegIndex *B) const {
52         assert(A && B);
53         return A->EnumValue < B->EnumValue;
54       }
55     };
56
57     // Map of composite subreg indices.
58     typedef std::map<CodeGenSubRegIndex*, CodeGenSubRegIndex*, Less> CompMap;
59
60     // Returns the subreg index that results from composing this with Idx.
61     // Returns NULL if this and Idx don't compose.
62     CodeGenSubRegIndex *compose(CodeGenSubRegIndex *Idx) const {
63       CompMap::const_iterator I = Composed.find(Idx);
64       return I == Composed.end() ? 0 : I->second;
65     }
66
67     // Add a composite subreg index: this+A = B.
68     // Return a conflicting composite, or NULL
69     CodeGenSubRegIndex *addComposite(CodeGenSubRegIndex *A,
70                                      CodeGenSubRegIndex *B) {
71       assert(A && B);
72       std::pair<CompMap::iterator, bool> Ins =
73         Composed.insert(std::make_pair(A, B));
74       return (Ins.second || Ins.first->second == B) ? 0 : Ins.first->second;
75     }
76
77     // Update the composite maps of components specified in 'ComposedOf'.
78     void updateComponents(CodeGenRegBank&);
79
80     // Clean out redundant composite mappings.
81     void cleanComposites();
82
83     // Return the map of composites.
84     const CompMap &getComposites() const { return Composed; }
85
86   private:
87     CompMap Composed;
88   };
89
90   /// CodeGenRegister - Represents a register definition.
91   struct CodeGenRegister {
92     Record *TheDef;
93     unsigned EnumValue;
94     unsigned CostPerUse;
95     bool CoveredBySubRegs;
96
97     // Map SubRegIndex -> Register.
98     typedef std::map<CodeGenSubRegIndex*, CodeGenRegister*,
99                      CodeGenSubRegIndex::Less> SubRegMap;
100
101     CodeGenRegister(Record *R, unsigned Enum);
102
103     const std::string &getName() const;
104
105     // Extract more information from TheDef. This is used to build an object
106     // graph after all CodeGenRegister objects have been created.
107     void buildObjectGraph(CodeGenRegBank&);
108
109     // Lazily compute a map of all sub-registers.
110     // This includes unique entries for all sub-sub-registers.
111     const SubRegMap &computeSubRegs(CodeGenRegBank&);
112
113     // Compute extra sub-registers by combining the existing sub-registers.
114     void computeSecondarySubRegs(CodeGenRegBank&);
115
116     // Add this as a super-register to all sub-registers after the sub-register
117     // graph has been built.
118     void computeSuperRegs(CodeGenRegBank&);
119
120     const SubRegMap &getSubRegs() const {
121       assert(SubRegsComplete && "Must precompute sub-registers");
122       return SubRegs;
123     }
124
125     // Add sub-registers to OSet following a pre-order defined by the .td file.
126     void addSubRegsPreOrder(SetVector<const CodeGenRegister*> &OSet,
127                             CodeGenRegBank&) const;
128
129     // Return the sub-register index naming Reg as a sub-register of this
130     // register. Returns NULL if Reg is not a sub-register.
131     CodeGenSubRegIndex *getSubRegIndex(const CodeGenRegister *Reg) const {
132       return SubReg2Idx.lookup(Reg);
133     }
134
135     typedef std::vector<const CodeGenRegister*> SuperRegList;
136
137     // Get the list of super-registers in topological order, small to large.
138     // This is valid after computeSubRegs visits all registers during RegBank
139     // construction.
140     const SuperRegList &getSuperRegs() const {
141       assert(SubRegsComplete && "Must precompute sub-registers");
142       return SuperRegs;
143     }
144
145     // Get the list of ad hoc aliases. The graph is symmetric, so the list
146     // contains all registers in 'Aliases', and all registers that mention this
147     // register in 'Aliases'.
148     ArrayRef<CodeGenRegister*> getExplicitAliases() const {
149       return ExplicitAliases;
150     }
151
152     // Get the topological signature of this register. This is a small integer
153     // less than RegBank.getNumTopoSigs(). Registers with the same TopoSig have
154     // identical sub-register structure. That is, they support the same set of
155     // sub-register indices mapping to the same kind of sub-registers
156     // (TopoSig-wise).
157     unsigned getTopoSig() const {
158       assert(SuperRegsComplete && "TopoSigs haven't been computed yet.");
159       return TopoSig;
160     }
161
162     // List of register units in ascending order.
163     typedef SmallVector<unsigned, 16> RegUnitList;
164
165     // Get the list of register units.
166     // This is only valid after getSubRegs() completes.
167     const RegUnitList &getRegUnits() const { return RegUnits; }
168
169     // Inherit register units from subregisters.
170     // Return true if the RegUnits changed.
171     bool inheritRegUnits(CodeGenRegBank &RegBank);
172
173     // Adopt a register unit for pressure tracking.
174     // A unit is adopted iff its unit number is >= NumNativeRegUnits.
175     void adoptRegUnit(unsigned RUID) { RegUnits.push_back(RUID); }
176
177     // Get the sum of this register's register unit weights.
178     unsigned getWeight(const CodeGenRegBank &RegBank) const;
179
180     // Order CodeGenRegister pointers by EnumValue.
181     struct Less {
182       bool operator()(const CodeGenRegister *A,
183                       const CodeGenRegister *B) const {
184         assert(A && B);
185         return A->EnumValue < B->EnumValue;
186       }
187     };
188
189     // Canonically ordered set.
190     typedef std::set<const CodeGenRegister*, Less> Set;
191
192   private:
193     bool SubRegsComplete;
194     bool SuperRegsComplete;
195     unsigned TopoSig;
196
197     // The sub-registers explicit in the .td file form a tree.
198     SmallVector<CodeGenSubRegIndex*, 8> ExplicitSubRegIndices;
199     SmallVector<CodeGenRegister*, 8> ExplicitSubRegs;
200
201     // Explicit ad hoc aliases, symmetrized to form an undirected graph.
202     SmallVector<CodeGenRegister*, 8> ExplicitAliases;
203
204     // Super-registers where this is the first explicit sub-register.
205     SuperRegList LeadingSuperRegs;
206
207     SubRegMap SubRegs;
208     SuperRegList SuperRegs;
209     DenseMap<const CodeGenRegister*, CodeGenSubRegIndex*> SubReg2Idx;
210     RegUnitList RegUnits;
211   };
212
213
214   class CodeGenRegisterClass {
215     CodeGenRegister::Set Members;
216     // Allocation orders. Order[0] always contains all registers in Members.
217     std::vector<SmallVector<Record*, 16> > Orders;
218     // Bit mask of sub-classes including this, indexed by their EnumValue.
219     BitVector SubClasses;
220     // List of super-classes, topologocally ordered to have the larger classes
221     // first.  This is the same as sorting by EnumValue.
222     SmallVector<CodeGenRegisterClass*, 4> SuperClasses;
223     Record *TheDef;
224     std::string Name;
225
226     // For a synthesized class, inherit missing properties from the nearest
227     // super-class.
228     void inheritProperties(CodeGenRegBank&);
229
230     // Map SubRegIndex -> sub-class.  This is the largest sub-class where all
231     // registers have a SubRegIndex sub-register.
232     DenseMap<CodeGenSubRegIndex*, CodeGenRegisterClass*> SubClassWithSubReg;
233
234     // Map SubRegIndex -> set of super-reg classes.  This is all register
235     // classes SuperRC such that:
236     //
237     //   R:SubRegIndex in this RC for all R in SuperRC.
238     //
239     DenseMap<CodeGenSubRegIndex*,
240              SmallPtrSet<CodeGenRegisterClass*, 8> > SuperRegClasses;
241
242     // Bit vector of TopoSigs for the registers in this class. This will be
243     // very sparse on regular architectures.
244     BitVector TopoSigs;
245
246   public:
247     unsigned EnumValue;
248     std::string Namespace;
249     std::vector<MVT::SimpleValueType> VTs;
250     unsigned SpillSize;
251     unsigned SpillAlignment;
252     int CopyCost;
253     bool Allocatable;
254     std::string AltOrderSelect;
255
256     // Return the Record that defined this class, or NULL if the class was
257     // created by TableGen.
258     Record *getDef() const { return TheDef; }
259
260     const std::string &getName() const { return Name; }
261     std::string getQualifiedName() const;
262     const std::vector<MVT::SimpleValueType> &getValueTypes() const {return VTs;}
263     unsigned getNumValueTypes() const { return VTs.size(); }
264
265     MVT::SimpleValueType getValueTypeNum(unsigned VTNum) const {
266       if (VTNum < VTs.size())
267         return VTs[VTNum];
268       llvm_unreachable("VTNum greater than number of ValueTypes in RegClass!");
269     }
270
271     // Return true if this this class contains the register.
272     bool contains(const CodeGenRegister*) const;
273
274     // Returns true if RC is a subclass.
275     // RC is a sub-class of this class if it is a valid replacement for any
276     // instruction operand where a register of this classis required. It must
277     // satisfy these conditions:
278     //
279     // 1. All RC registers are also in this.
280     // 2. The RC spill size must not be smaller than our spill size.
281     // 3. RC spill alignment must be compatible with ours.
282     //
283     bool hasSubClass(const CodeGenRegisterClass *RC) const {
284       return SubClasses.test(RC->EnumValue);
285     }
286
287     // getSubClassWithSubReg - Returns the largest sub-class where all
288     // registers have a SubIdx sub-register.
289     CodeGenRegisterClass*
290     getSubClassWithSubReg(CodeGenSubRegIndex *SubIdx) const {
291       return SubClassWithSubReg.lookup(SubIdx);
292     }
293
294     void setSubClassWithSubReg(CodeGenSubRegIndex *SubIdx,
295                                CodeGenRegisterClass *SubRC) {
296       SubClassWithSubReg[SubIdx] = SubRC;
297     }
298
299     // getSuperRegClasses - Returns a bit vector of all register classes
300     // containing only SubIdx super-registers of this class.
301     void getSuperRegClasses(CodeGenSubRegIndex *SubIdx, BitVector &Out) const;
302
303     // addSuperRegClass - Add a class containing only SudIdx super-registers.
304     void addSuperRegClass(CodeGenSubRegIndex *SubIdx,
305                           CodeGenRegisterClass *SuperRC) {
306       SuperRegClasses[SubIdx].insert(SuperRC);
307     }
308
309     // getSubClasses - Returns a constant BitVector of subclasses indexed by
310     // EnumValue.
311     // The SubClasses vector includs an entry for this class.
312     const BitVector &getSubClasses() const { return SubClasses; }
313
314     // getSuperClasses - Returns a list of super classes ordered by EnumValue.
315     // The array does not include an entry for this class.
316     ArrayRef<CodeGenRegisterClass*> getSuperClasses() const {
317       return SuperClasses;
318     }
319
320     // Returns an ordered list of class members.
321     // The order of registers is the same as in the .td file.
322     // No = 0 is the default allocation order, No = 1 is the first alternative.
323     ArrayRef<Record*> getOrder(unsigned No = 0) const {
324         return Orders[No];
325     }
326
327     // Return the total number of allocation orders available.
328     unsigned getNumOrders() const { return Orders.size(); }
329
330     // Get the set of registers.  This set contains the same registers as
331     // getOrder(0).
332     const CodeGenRegister::Set &getMembers() const { return Members; }
333
334     // Get a bit vector of TopoSigs present in this register class.
335     const BitVector &getTopoSigs() const { return TopoSigs; }
336
337     // Populate a unique sorted list of units from a register set.
338     void buildRegUnitSet(std::vector<unsigned> &RegUnits) const;
339
340     CodeGenRegisterClass(CodeGenRegBank&, Record *R);
341
342     // A key representing the parts of a register class used for forming
343     // sub-classes.  Note the ordering provided by this key is not the same as
344     // the topological order used for the EnumValues.
345     struct Key {
346       const CodeGenRegister::Set *Members;
347       unsigned SpillSize;
348       unsigned SpillAlignment;
349
350       Key(const Key &O)
351         : Members(O.Members),
352           SpillSize(O.SpillSize),
353           SpillAlignment(O.SpillAlignment) {}
354
355       Key(const CodeGenRegister::Set *M, unsigned S = 0, unsigned A = 0)
356         : Members(M), SpillSize(S), SpillAlignment(A) {}
357
358       Key(const CodeGenRegisterClass &RC)
359         : Members(&RC.getMembers()),
360           SpillSize(RC.SpillSize),
361           SpillAlignment(RC.SpillAlignment) {}
362
363       // Lexicographical order of (Members, SpillSize, SpillAlignment).
364       bool operator<(const Key&) const;
365     };
366
367     // Create a non-user defined register class.
368     CodeGenRegisterClass(StringRef Name, Key Props);
369
370     // Called by CodeGenRegBank::CodeGenRegBank().
371     static void computeSubClasses(CodeGenRegBank&);
372   };
373
374   // Register units are used to model interference and register pressure.
375   // Every register is assigned one or more register units such that two
376   // registers overlap if and only if they have a register unit in common.
377   //
378   // Normally, one register unit is created per leaf register. Non-leaf
379   // registers inherit the units of their sub-registers.
380   struct RegUnit {
381     // Weight assigned to this RegUnit for estimating register pressure.
382     // This is useful when equalizing weights in register classes with mixed
383     // register topologies.
384     unsigned Weight;
385
386     // Each native RegUnit corresponds to one or two root registers. The full
387     // set of registers containing this unit can be computed as the union of
388     // these two registers and their super-registers.
389     const CodeGenRegister *Roots[2];
390
391     RegUnit() : Weight(0) { Roots[0] = Roots[1] = 0; }
392
393     ArrayRef<const CodeGenRegister*> getRoots() const {
394       assert(!(Roots[1] && !Roots[0]) && "Invalid roots array");
395       return makeArrayRef(Roots, !!Roots[0] + !!Roots[1]);
396     }
397   };
398
399   // Each RegUnitSet is a sorted vector with a name.
400   struct RegUnitSet {
401     typedef std::vector<unsigned>::const_iterator iterator;
402
403     std::string Name;
404     std::vector<unsigned> Units;
405   };
406
407   // Base vector for identifying TopoSigs. The contents uniquely identify a
408   // TopoSig, only computeSuperRegs needs to know how.
409   typedef SmallVector<unsigned, 16> TopoSigId;
410
411   // CodeGenRegBank - Represent a target's registers and the relations between
412   // them.
413   class CodeGenRegBank {
414     RecordKeeper &Records;
415     SetTheory Sets;
416
417     // SubRegIndices.
418     std::vector<CodeGenSubRegIndex*> SubRegIndices;
419     DenseMap<Record*, CodeGenSubRegIndex*> Def2SubRegIdx;
420     unsigned NumNamedIndices;
421
422     typedef std::map<SmallVector<CodeGenSubRegIndex*, 8>,
423                      CodeGenSubRegIndex*> ConcatIdxMap;
424     ConcatIdxMap ConcatIdx;
425
426     // Registers.
427     std::vector<CodeGenRegister*> Registers;
428     DenseMap<Record*, CodeGenRegister*> Def2Reg;
429     unsigned NumNativeRegUnits;
430
431     std::map<TopoSigId, unsigned> TopoSigs;
432
433     // Includes native (0..NumNativeRegUnits-1) and adopted register units.
434     SmallVector<RegUnit, 8> RegUnits;
435
436     // Register classes.
437     std::vector<CodeGenRegisterClass*> RegClasses;
438     DenseMap<Record*, CodeGenRegisterClass*> Def2RC;
439     typedef std::map<CodeGenRegisterClass::Key, CodeGenRegisterClass*> RCKeyMap;
440     RCKeyMap Key2RC;
441
442     // Remember each unique set of register units. Initially, this contains a
443     // unique set for each register class. Simliar sets are coalesced with
444     // pruneUnitSets and new supersets are inferred during computeRegUnitSets.
445     std::vector<RegUnitSet> RegUnitSets;
446
447     // Map RegisterClass index to the index of the RegUnitSet that contains the
448     // class's units and any inferred RegUnit supersets.
449     std::vector<std::vector<unsigned> > RegClassUnitSets;
450
451     // Add RC to *2RC maps.
452     void addToMaps(CodeGenRegisterClass*);
453
454     // Create a synthetic sub-class if it is missing.
455     CodeGenRegisterClass *getOrCreateSubClass(const CodeGenRegisterClass *RC,
456                                               const CodeGenRegister::Set *Membs,
457                                               StringRef Name);
458
459     // Infer missing register classes.
460     void computeInferredRegisterClasses();
461     void inferCommonSubClass(CodeGenRegisterClass *RC);
462     void inferSubClassWithSubReg(CodeGenRegisterClass *RC);
463     void inferMatchingSuperRegClass(CodeGenRegisterClass *RC,
464                                     unsigned FirstSubRegRC = 0);
465
466     // Iteratively prune unit sets.
467     void pruneUnitSets();
468
469     // Compute a weight for each register unit created during getSubRegs.
470     void computeRegUnitWeights();
471
472     // Create a RegUnitSet for each RegClass and infer superclasses.
473     void computeRegUnitSets();
474
475     // Populate the Composite map from sub-register relationships.
476     void computeComposites();
477
478   public:
479     CodeGenRegBank(RecordKeeper&);
480
481     SetTheory &getSets() { return Sets; }
482
483     // Sub-register indices. The first NumNamedIndices are defined by the user
484     // in the .td files. The rest are synthesized such that all sub-registers
485     // have a unique name.
486     ArrayRef<CodeGenSubRegIndex*> getSubRegIndices() { return SubRegIndices; }
487     unsigned getNumNamedIndices() { return NumNamedIndices; }
488
489     // Find a SubRegIndex form its Record def.
490     CodeGenSubRegIndex *getSubRegIdx(Record*);
491
492     // Find or create a sub-register index representing the A+B composition.
493     CodeGenSubRegIndex *getCompositeSubRegIndex(CodeGenSubRegIndex *A,
494                                                 CodeGenSubRegIndex *B);
495
496     // Find or create a sub-register index representing the concatenation of
497     // non-overlapping sibling indices.
498     CodeGenSubRegIndex *
499       getConcatSubRegIndex(const SmallVector<CodeGenSubRegIndex*, 8>&);
500
501     void
502     addConcatSubRegIndex(const SmallVector<CodeGenSubRegIndex*, 8> &Parts,
503                          CodeGenSubRegIndex *Idx) {
504       ConcatIdx.insert(std::make_pair(Parts, Idx));
505     }
506
507     const std::vector<CodeGenRegister*> &getRegisters() { return Registers; }
508
509     // Find a register from its Record def.
510     CodeGenRegister *getReg(Record*);
511
512     // Get a Register's index into the Registers array.
513     unsigned getRegIndex(const CodeGenRegister *Reg) const {
514       return Reg->EnumValue - 1;
515     }
516
517     // Return the number of allocated TopoSigs. The first TopoSig representing
518     // leaf registers is allocated number 0.
519     unsigned getNumTopoSigs() const {
520       return TopoSigs.size();
521     }
522
523     // Find or create a TopoSig for the given TopoSigId.
524     // This function is only for use by CodeGenRegister::computeSuperRegs().
525     // Others should simply use Reg->getTopoSig().
526     unsigned getTopoSig(const TopoSigId &Id) {
527       return TopoSigs.insert(std::make_pair(Id, TopoSigs.size())).first->second;
528     }
529
530     // Create a native register unit that is associated with one or two root
531     // registers.
532     unsigned newRegUnit(CodeGenRegister *R0, CodeGenRegister *R1 = 0) {
533       RegUnits.resize(RegUnits.size() + 1);
534       RegUnits.back().Roots[0] = R0;
535       RegUnits.back().Roots[1] = R1;
536       return RegUnits.size() - 1;
537     }
538
539     // Create a new non-native register unit that can be adopted by a register
540     // to increase its pressure. Note that NumNativeRegUnits is not increased.
541     unsigned newRegUnit(unsigned Weight) {
542       RegUnits.resize(RegUnits.size() + 1);
543       RegUnits.back().Weight = Weight;
544       return RegUnits.size() - 1;
545     }
546
547     // Native units are the singular unit of a leaf register. Register aliasing
548     // is completely characterized by native units. Adopted units exist to give
549     // register additional weight but don't affect aliasing.
550     bool isNativeUnit(unsigned RUID) {
551       return RUID < NumNativeRegUnits;
552     }
553
554     RegUnit &getRegUnit(unsigned RUID) { return RegUnits[RUID]; }
555     const RegUnit &getRegUnit(unsigned RUID) const { return RegUnits[RUID]; }
556
557     ArrayRef<CodeGenRegisterClass*> getRegClasses() const {
558       return RegClasses;
559     }
560
561     // Find a register class from its def.
562     CodeGenRegisterClass *getRegClass(Record*);
563
564     /// getRegisterClassForRegister - Find the register class that contains the
565     /// specified physical register.  If the register is not in a register
566     /// class, return null. If the register is in multiple classes, and the
567     /// classes have a superset-subset relationship and the same set of types,
568     /// return the superclass.  Otherwise return null.
569     const CodeGenRegisterClass* getRegClassForRegister(Record *R);
570
571     // Get the sum of unit weights.
572     unsigned getRegUnitSetWeight(const std::vector<unsigned> &Units) const {
573       unsigned Weight = 0;
574       for (std::vector<unsigned>::const_iterator
575              I = Units.begin(), E = Units.end(); I != E; ++I)
576         Weight += getRegUnit(*I).Weight;
577       return Weight;
578     }
579
580     // Increase a RegUnitWeight.
581     void increaseRegUnitWeight(unsigned RUID, unsigned Inc) {
582       getRegUnit(RUID).Weight += Inc;
583     }
584
585     // Get the number of register pressure dimensions.
586     unsigned getNumRegPressureSets() const { return RegUnitSets.size(); }
587
588     // Get a set of register unit IDs for a given dimension of pressure.
589     RegUnitSet getRegPressureSet(unsigned Idx) const {
590       return RegUnitSets[Idx];
591     }
592
593     // Get a list of pressure set IDs for a register class. Liveness of a
594     // register in this class impacts each pressure set in this list by the
595     // weight of the register. An exact solution requires all registers in a
596     // class to have the same class, but it is not strictly guaranteed.
597     ArrayRef<unsigned> getRCPressureSetIDs(unsigned RCIdx) const {
598       return RegClassUnitSets[RCIdx];
599     }
600
601     // Computed derived records such as missing sub-register indices.
602     void computeDerivedInfo();
603
604     // Compute full overlap sets for every register. These sets include the
605     // rarely used aliases that are neither sub nor super-registers.
606     //
607     // Map[R1].count(R2) is reflexive and symmetric, but not transitive.
608     //
609     // If R1 is a sub-register of R2, Map[R1] is a subset of Map[R2].
610     void computeOverlaps(std::map<const CodeGenRegister*,
611                                   CodeGenRegister::Set> &Map);
612
613     // Compute the set of registers completely covered by the registers in Regs.
614     // The returned BitVector will have a bit set for each register in Regs,
615     // all sub-registers, and all super-registers that are covered by the
616     // registers in Regs.
617     //
618     // This is used to compute the mask of call-preserved registers from a list
619     // of callee-saves.
620     BitVector computeCoveredRegisters(ArrayRef<Record*> Regs);
621   };
622 }
623
624 #endif