summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcRegClassInfo.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-12-17 22:04:00 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-12-17 22:04:00 +0000
commitb01a80aa94d3c5ca578eaf18985ef91476eb428f (patch)
tree698a755dd2ddbed0d9801b68898f9d457b38cca4 /llvm/lib/Target/Sparc/SparcRegClassInfo.cpp
parent423ad188da0e170481ba1aede0121b064f4e5316 (diff)
downloadbcm5719-llvm-b01a80aa94d3c5ca578eaf18985ef91476eb428f.tar.gz
bcm5719-llvm-b01a80aa94d3c5ca578eaf18985ef91476eb428f.zip
Reorganized the Sparc backend to be more modular -- each different
implementation of a Target{RegInfo, InstrInfo, Machine, etc} now has a separate header and a separate implementation file. This means that instead of a massive SparcInternals.h that forces a recompilation of the whole target whenever a minor detail is changed, you should only recompile a few files. Note that SparcInternals.h is still around; its contents should be minimized. llvm-svn: 10500
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcRegClassInfo.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcRegClassInfo.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/Sparc/SparcRegClassInfo.cpp b/llvm/lib/Target/Sparc/SparcRegClassInfo.cpp
index 564e59cd70e..c6d559abdb9 100644
--- a/llvm/lib/Target/Sparc/SparcRegClassInfo.cpp
+++ b/llvm/lib/Target/Sparc/SparcRegClassInfo.cpp
@@ -11,9 +11,10 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/Type.h"
#include "SparcRegClassInfo.h"
#include "SparcInternals.h"
-#include "llvm/Type.h"
+#include "SparcRegInfo.h"
#include "../../CodeGen/RegAlloc/RegAllocCommon.h" // FIXME!
#include "../../CodeGen/RegAlloc/IGNode.h" // FIXME!
@@ -320,8 +321,8 @@ void SparcFloatRegClass::markColorsUsed(unsigned RegInClass,
int RegTypeWanted,
std::vector<bool> &IsColorUsedArr) const
{
- if (UserRegType == UltraSparcRegInfo::FPDoubleRegType ||
- RegTypeWanted == UltraSparcRegInfo::FPDoubleRegType) {
+ if (UserRegType == SparcRegInfo::FPDoubleRegType ||
+ RegTypeWanted == SparcRegInfo::FPDoubleRegType) {
// This register is used as or is needed as a double-precision reg.
// We need to mark the [even,odd] pair corresponding to this reg.
// Get the even numbered register corresponding to this reg.
@@ -348,7 +349,7 @@ void SparcFloatRegClass::markColorsUsed(unsigned RegInClass,
int SparcFloatRegClass::findUnusedColor(int RegTypeWanted,
const std::vector<bool> &IsColorUsedArr) const
{
- if (RegTypeWanted == UltraSparcRegInfo::FPDoubleRegType) {
+ if (RegTypeWanted == SparcRegInfo::FPDoubleRegType) {
unsigned NC = 2 * this->getNumOfAvailRegs();
assert(IsColorUsedArr.size() == NC && "Invalid colors-used array");
for (unsigned c = 0; c < NC; c+=2)
OpenPOWER on IntegriCloud