/// or stack slot.
class LiveInterval : public LiveRange {
public:
+ typedef LiveRange super;
+
const unsigned reg; // the register or stack slot of this interval.
float weight; // weight of this interval
/// isSpillable - Can this interval be spilled?
bool isSpillable() const {
- return weight != HUGE_VALF;
+ return weight != llvm::huge_valf;
}
/// markNotSpillable - Mark interval as not spillable
void markNotSpillable() {
- weight = HUGE_VALF;
+ weight = llvm::huge_valf;
}
bool operator<(const LiveInterval& other) const {
(thisIndex == otherIndex && reg < other.reg);
}
+ void print(raw_ostream &OS) const;
+ void dump() const;
+
private:
LiveInterval& operator=(const LiveInterval& rhs) LLVM_DELETED_FUNCTION;