From: Brian Gaeke Date: Mon, 19 Apr 2004 18:53:42 +0000 (+0000) Subject: Regularize include guards, remove some excess whitespace and fix some comments. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=854db8a29ad38fcaa069f1f9bfb9a26975810769;p=oota-llvm.git Regularize include guards, remove some excess whitespace and fix some comments. Remove the extra %fsr register from SparcV9FloatCCRegClass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13069 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SparcV9/SparcV9RegClassInfo.h b/lib/Target/SparcV9/SparcV9RegClassInfo.h index e5449f067fd..e573cb3dac4 100644 --- a/lib/Target/SparcV9/SparcV9RegClassInfo.h +++ b/lib/Target/SparcV9/SparcV9RegClassInfo.h @@ -11,8 +11,8 @@ // //===----------------------------------------------------------------------===// -#ifndef SPARC_REG_CLASS_INFO_H -#define SPARC_REG_CLASS_INFO_H +#ifndef SPARCV9REGCLASSINFO_H +#define SPARCV9REGCLASSINFO_H #include "llvm/Target/TargetRegInfo.h" @@ -81,8 +81,6 @@ struct SparcV9IntRegClass : public TargetRegClassInfo { }; - - //----------------------------------------------------------------------------- // Float Register Class //----------------------------------------------------------------------------- @@ -142,8 +140,6 @@ public: }; - - //----------------------------------------------------------------------------- // Int CC Register Class // Only one integer cc register is available. However, this register is @@ -160,8 +156,8 @@ struct SparcV9IntCCRegClass : public TargetRegClassInfo { void colorIGNode(IGNode *Node, const std::vector &IsColorUsedArr) const; - // according to SparcV9 64 ABI, %ccr is volatile - // + // according to the 64-bit SparcV9 ABI, all integer CC regs are + // volatile. inline bool isRegVolatile(int Reg) const { return true; } enum { @@ -179,22 +175,23 @@ struct SparcV9IntCCRegClass : public TargetRegClassInfo { struct SparcV9FloatCCRegClass : public TargetRegClassInfo { SparcV9FloatCCRegClass(unsigned ID) - : TargetRegClassInfo(ID, 4, 5) { } + : TargetRegClassInfo(ID, 4, 4) { } void colorIGNode(IGNode *Node, const std::vector &IsColorUsedArr) const; - // according to SparcV9 64 ABI, all %fp CC regs are volatile - // + // according to the 64-bit SparcV9 ABI, all floating-point CC regs are + // volatile. inline bool isRegVolatile(int Reg) const { return true; } enum { - fcc0, fcc1, fcc2, fcc3, fsr // fsr is not used in allocation - }; // but has a name in getRegName() - + fcc0, fcc1, fcc2, fcc3 + }; + const char * const getRegName(unsigned reg) const; }; + //----------------------------------------------------------------------------- // SparcV9 special register class. These registers are not used for allocation // but are used as arguments of some instructions.