#define LIVE_RANGE_H
#include "llvm/Analysis/LiveVar/ValueSet.h"
-#include "llvm/Type.h"
-#include <iostream>
+#include "llvm/Value.h"
class RegClass;
class IGNode;
+class Type;
class LiveRange : public ValueSet {
RegClass *MyRegClass; // register classs (e.g., int, FP) for this LR
inline void setCallInterference() {
doesSpanAcrossCalls = 1;
}
+ inline void clearCallInterference() {
+ doesSpanAcrossCalls = 0;
+ }
inline bool isCallInterference() const {
return doesSpanAcrossCalls == 1;
return (*begin())->getType(); // set's don't have a front
}
- inline Type::PrimitiveID getTypeID() const {
- return getType()->getPrimitiveID();
- }
-
inline void setSuggestedColor(int Col) {
if (SuggestedColor == -1)
SuggestedColor = Col;
-#if 0
- else if (DEBUG_RA)
- std::cerr << "Already has a suggested color " << Col << "\n";
-#endif
}
inline unsigned getSuggestedColor() const {