X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FCodeGen%2FLiveInterval.h;h=3a9fef6fbd78176b9aac3a4d868590fad2e364a5;hb=d8324e6983d06c3d56debcbfdc9ead0e0d4a817d;hp=d28cb048223157c64c4ce05b2f7e58b9e8498946;hpb=5649e25ce86b9d89d228ae7c392413571b0f8c19;p=oota-llvm.git diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index d28cb048223..3a9fef6fbd7 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -527,6 +527,8 @@ namespace llvm { /// 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 @@ -539,12 +541,12 @@ namespace llvm { /// 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 { @@ -554,6 +556,9 @@ namespace llvm { (thisIndex == otherIndex && reg < other.reg); } + void print(raw_ostream &OS) const; + void dump() const; + private: LiveInterval& operator=(const LiveInterval& rhs) LLVM_DELETED_FUNCTION;