diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-01 19:56:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-01 19:56:48 +0000 |
commit | 3323829ecc33f5e0889f98baa053c1ef279df177 (patch) | |
tree | 93b02136c9d337271e4c85123be179784623fda8 /llvm/lib/Target/Sparc/SparcRegClassInfo.cpp | |
parent | ffc2d16f218d1005aa29856e6148d271408f3037 (diff) | |
download | bcm5719-llvm-3323829ecc33f5e0889f98baa053c1ef279df177.tar.gz bcm5719-llvm-3323829ecc33f5e0889f98baa053c1ef279df177.zip |
No longer include IGNode.h in the Sparc global header
llvm-svn: 8292
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcRegClassInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcRegClassInfo.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/SparcRegClassInfo.cpp b/llvm/lib/Target/Sparc/SparcRegClassInfo.cpp index c27c28b33f0..6050cf069d8 100644 --- a/llvm/lib/Target/Sparc/SparcRegClassInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcRegClassInfo.cpp @@ -8,6 +8,7 @@ #include "SparcInternals.h" #include "llvm/Type.h" #include "../../CodeGen/RegAlloc/RegAllocCommon.h" // FIXME! +#include "llvm/CodeGen/IGNode.h" //----------------------------------------------------------------------------- // Int Register Class - method for coloring a node in the interference graph. @@ -162,6 +163,19 @@ void SparcIntCCRegClass::colorIGNode(IGNode *Node, } +void SparcFloatCCRegClass::colorIGNode(IGNode *Node, + const std::vector<bool> &IsColorUsedArr) const { + for(unsigned c = 0; c != 4; ++c) + if (!IsColorUsedArr[c]) { // find unused color + Node->setColor(c); + return; + } + + Node->getParentLR()->markForSpill(); +} + + + //----------------------------------------------------------------------------- // Float Register Class - method for coloring a node in the interference graph. // |