getCommonSubClass() - Calculate the largest common sub-class of two register
[oota-llvm.git] / include / llvm / Target / TargetRegisterInfo.h
index 16cec2d647e867aaf37d0d95ee5efd045fb3d44b..fbb8ffe8128709ffd001e108758c9a3ff5abce28 100644 (file)
@@ -254,6 +254,10 @@ public:
   int getCopyCost() const { return CopyCost; }
 };
 
+/// getCommonSubClass - find the largest common subclass of A and B. Return NULL
+/// if there is no common subclass.
+const TargetRegisterClass *getCommonSubClass(const TargetRegisterClass *A,
+                                             const TargetRegisterClass *B);
 
 /// TargetRegisterInfo base class - We assume that the target defines a static
 /// array of TargetRegisterDesc objects that represent all of the machine