Rename GRAD to GR32_AD, to follow the naming convention of other
authorDan Gohman <gohman@apple.com>
Thu, 30 Jul 2009 17:02:08 +0000 (17:02 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 30 Jul 2009 17:02:08 +0000 (17:02 +0000)
classes. And define its SubRegClassList.

llvm-svn: 77601

llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86RegisterInfo.td

index c4ed89e..bbc6ba5 100644 (file)
@@ -9110,7 +9110,7 @@ X86TargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint,
     // 'A' means EAX + EDX.
     if (Constraint == "A") {
       Res.first = X86::EAX;
-      Res.second = X86::GRADRegisterClass;
+      Res.second = X86::GR32_ADRegisterClass;
     }
     return Res;
   }
index d2197b2..796234a 100644 (file)
@@ -674,7 +674,9 @@ def GR64_NOREX_NOSP : RegisterClass<"X86", [i64], 64,
 }
 
 // A class to support the 'A' assembler constraint: EAX then EDX.
-def GRAD : RegisterClass<"X86", [i32], 32, [EAX, EDX]>;
+def GR32_AD : RegisterClass<"X86", [i32], 32, [EAX, EDX]> {
+  let SubRegClassList = [GR8_ABCD_L, GR8_ABCD_H, GR16_ABCD];
+}
 
 // Scalar SSE2 floating point registers.
 def FR32 : RegisterClass<"X86", [f32], 32,