Let tablegen compute maximum lanemask for regs/regclasses.
[oota-llvm.git] / utils / TableGen / CodeGenRegisters.h
index c1606e3570345f3f1ff34a0698180a0e160ee4a0..6baaa28d95ddc2f1e4e9caad96d4e128a70d5e63 100644 (file)
@@ -283,6 +283,8 @@ namespace llvm {
     int CopyCost;
     bool Allocatable;
     std::string AltOrderSelect;
+    /// Contains the combination of the lane masks of all subregisters.
+    unsigned LaneMask;
 
     // Return the Record that defined this class, or NULL if the class was
     // created by TableGen.
@@ -525,7 +527,7 @@ namespace llvm {
     void computeComposites();
 
     // Compute a lane mask for each sub-register index.
-    void computeSubRegIndexLaneMasks();
+    void computeSubRegLaneMasks();
 
   public:
     CodeGenRegBank(RecordKeeper&);