Rename TargetRegisterDesc to MCRegisterDesc
authorEvan Cheng <evan.cheng@apple.com>
Fri, 24 Jun 2011 23:44:48 +0000 (23:44 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 24 Jun 2011 23:44:48 +0000 (23:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133845 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCRegisterInfo.h
include/llvm/Target/TargetRegisterInfo.h
utils/TableGen/RegisterInfoEmitter.cpp

index c2ec08e7b21e5038399de7e25a7a431d784fc1e9..7b16e7b1d471c8a3e3fb2362ecb7d7aeaf5cc434 100644 (file)
@@ -20,7 +20,7 @@
 
 namespace llvm {
 
-/// TargetRegisterDesc - This record contains all of the information known about
+/// MCRegisterDesc - This record contains all of the information known about
 /// a particular register.  The Overlaps field contains a pointer to a zero
 /// terminated array of registers that this register aliases, starting with
 /// itself. This is needed for architectures like X86 which have AL alias AX
@@ -38,7 +38,7 @@ struct MCRegisterDesc {
 };
 
 /// MCRegisterInfo base class - We assume that the target defines a static
-/// array of TargetRegisterDesc objects that represent all of the machine
+/// array of MCRegisterDesc objects that represent all of the machine
 /// registers that the target has.  As such, we simply have to track a pointer
 /// to this array so that we can turn register number into a register
 /// descriptor.
index 2b7e1f9bde606fe725b863a6c678941e3283e672..d50bfe7eecd687f49162016e2152598fdf855500 100644 (file)
@@ -256,9 +256,6 @@ public:
   bool isAllocatable() const { return Allocatable; }
 };
 
-/// TargetRegisterDesc - It's just an alias of MCRegisterDesc.
-typedef MCRegisterDesc TargetRegisterDesc;
-
 /// TargetRegisterInfoDesc - Extra information, not in MCRegisterDesc, about
 /// registers. These are used by codegen, not by MC.
 struct TargetRegisterInfoDesc {
index 6fd8bb4772380527810098e13a5b8f48c70c4e58..9a1db978c4c74fbf2a59f087b7a0071148506d6f 100644 (file)
@@ -79,7 +79,7 @@ void RegisterInfoEmitter::runHeader(raw_ostream &OS) {
 
   OS << "struct " << ClassName << " : public TargetRegisterInfo {\n"
      << "  explicit " << ClassName
-     << "(const TargetRegisterDesc *D, const TargetRegisterInfoDesc *ID, "
+     << "(const MCRegisterDesc *D, const TargetRegisterInfoDesc *ID, "
      << "int CallFrameSetupOpcode = -1, int CallFrameDestroyOpcode = -1);\n"
      << "  virtual int getDwarfRegNumFull(unsigned RegNum, "
      << "unsigned Flavour) const;\n"
@@ -518,7 +518,7 @@ void RegisterInfoEmitter::run(raw_ostream &OS) {
 
   // Emit the constructor of the class...
   OS << ClassName << "::" << ClassName
-     << "(const TargetRegisterDesc *D, const TargetRegisterInfoDesc *ID, "
+     << "(const MCRegisterDesc *D, const TargetRegisterInfoDesc *ID, "
      << "int CallFrameSetupOpcode, int CallFrameDestroyOpcode)\n"
      << "  : TargetRegisterInfo(ID"
      << ", RegisterClasses, RegisterClasses+" << RegisterClasses.size() <<",\n"