#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.
}
+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.
//
#define SPARC_REG_CLASS_INFO_H
#include "llvm/Target/TargetRegInfo.h"
-#include "llvm/CodeGen/IGNode.h"
//-----------------------------------------------------------------------------
// Integer Register Class
: TargetRegClassInfo(ID, 4, 5) { }
void 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();
- }
+ const std::vector<bool> &IsColorUsedArr) const;
// according to Sparc 64 ABI, all %fp CC regs are volatile
//
#include "llvm/CodeGen/MachineCodeForInstruction.h"
#include "llvm/CodeGen/MachineInstrAnnot.h"
#include "llvm/CodeGen/LiveRangeInfo.h"
+#include "llvm/CodeGen/IGNode.h"
#include "llvm/iTerminators.h"
#include "llvm/iOther.h"
#include "llvm/Function.h"