Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 1 | //===-- LiveIntervalUnion.h - Live interval union data struct --*- C++ -*--===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // LiveIntervalUnion is a union of live segments across multiple live virtual |
| 11 | // registers. This may be used during coalescing to represent a congruence |
| 12 | // class, or during register allocation to model liveness of a physical |
| 13 | // register. |
| 14 | // |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | |
| 17 | #ifndef LLVM_CODEGEN_LIVEINTERVALUNION |
| 18 | #define LLVM_CODEGEN_LIVEINTERVALUNION |
| 19 | |
| 20 | #include "llvm/CodeGen/LiveInterval.h" |
| 21 | #include <vector> |
| 22 | #include <set> |
| 23 | |
| 24 | namespace llvm { |
| 25 | |
Andrew Trick | 071d1c0 | 2010-11-09 21:04:34 +0000 | [diff] [blame] | 26 | #ifndef NDEBUG |
| 27 | // forward declaration |
| 28 | template <unsigned Element> class SparseBitVector; |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 29 | typedef SparseBitVector<128> LiveVirtRegBitSet; |
Andrew Trick | 071d1c0 | 2010-11-09 21:04:34 +0000 | [diff] [blame] | 30 | #endif |
| 31 | |
Andrew Trick | e16eecc | 2010-10-26 18:34:01 +0000 | [diff] [blame] | 32 | /// A LiveSegment is a copy of a LiveRange object used within |
| 33 | /// LiveIntervalUnion. LiveSegment additionally contains a pointer to its |
| 34 | /// original live virtual register (LiveInterval). This allows quick lookup of |
| 35 | /// the live virtual register as we iterate over live segments in a union. Note |
| 36 | /// that LiveRange is misnamed and actually represents only a single contiguous |
| 37 | /// interval within a virtual register's liveness. To limit confusion, in this |
| 38 | /// file we refer it as a live segment. |
| 39 | /// |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 40 | /// Note: This currently represents a half-open interval [Start,End). |
Andrew Trick | e16eecc | 2010-10-26 18:34:01 +0000 | [diff] [blame] | 41 | /// If LiveRange is modified to represent a closed interval, so should this. |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 42 | struct LiveSegment { |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 43 | SlotIndex Start; |
| 44 | SlotIndex End; |
| 45 | LiveInterval *VirtReg; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 46 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 47 | LiveSegment(const LiveRange& LR, LiveInterval *VReg) |
| 48 | : Start(LR.start), End(LR.end), VirtReg(VReg) {} |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 49 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 50 | bool operator==(const LiveSegment &LS) const { |
| 51 | return Start == LS.Start && End == LS.End && VirtReg == LS.VirtReg; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 52 | } |
| 53 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 54 | bool operator!=(const LiveSegment &LS) const { |
| 55 | return !operator==(LS); |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 56 | } |
| 57 | |
Andrew Trick | e16eecc | 2010-10-26 18:34:01 +0000 | [diff] [blame] | 58 | // Order segments by starting point only--we expect them to be disjoint. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 59 | bool operator<(const LiveSegment &LS) const { return Start < LS.Start; } |
Andrew Trick | 071d1c0 | 2010-11-09 21:04:34 +0000 | [diff] [blame] | 60 | |
| 61 | void dump() const; |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 62 | void print(raw_ostream &OS) const; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 63 | }; |
| 64 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 65 | inline bool operator<(SlotIndex Idx, const LiveSegment &LS) { |
| 66 | return Idx < LS.Start; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 67 | } |
| 68 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 69 | inline bool operator<(const LiveSegment &LS, SlotIndex Idx) { |
| 70 | return LS.Start < Idx; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 71 | } |
| 72 | |
Andrew Trick | e16eecc | 2010-10-26 18:34:01 +0000 | [diff] [blame] | 73 | /// Compare a live virtual register segment to a LiveIntervalUnion segment. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 74 | inline bool overlap(const LiveRange &VirtRegSegment, |
| 75 | const LiveSegment &LiveUnionSegment) { |
| 76 | return VirtRegSegment.start < LiveUnionSegment.End && |
| 77 | LiveUnionSegment.Start < VirtRegSegment.end; |
Andrew Trick | e16eecc | 2010-10-26 18:34:01 +0000 | [diff] [blame] | 78 | } |
| 79 | |
Matt Beaumont-Gay | e33daaa | 2010-11-09 19:56:25 +0000 | [diff] [blame] | 80 | template <> struct isPodLike<LiveSegment> { static const bool value = true; }; |
| 81 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 82 | raw_ostream& operator<<(raw_ostream& OS, const LiveSegment &LS); |
Matt Beaumont-Gay | e33daaa | 2010-11-09 19:56:25 +0000 | [diff] [blame] | 83 | |
| 84 | /// Abstraction to provide info for the representative register. |
| 85 | class AbstractRegisterDescription { |
| 86 | public: |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 87 | virtual const char *getName(unsigned Reg) const = 0; |
Andrew Trick | 071d1c0 | 2010-11-09 21:04:34 +0000 | [diff] [blame] | 88 | virtual ~AbstractRegisterDescription() {} |
Matt Beaumont-Gay | e33daaa | 2010-11-09 19:56:25 +0000 | [diff] [blame] | 89 | }; |
Andrew Trick | 071d1c0 | 2010-11-09 21:04:34 +0000 | [diff] [blame] | 90 | |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 91 | /// Union of live intervals that are strong candidates for coalescing into a |
| 92 | /// single register (either physical or virtual depending on the context). We |
| 93 | /// expect the constituent live intervals to be disjoint, although we may |
| 94 | /// eventually make exceptions to handle value-based interference. |
| 95 | class LiveIntervalUnion { |
| 96 | // A set of live virtual register segments that supports fast insertion, |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 97 | // intersection, and removal. |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 98 | // |
| 99 | // FIXME: std::set is a placeholder until we decide how to |
| 100 | // efficiently represent it. Probably need to roll our own B-tree. |
| 101 | typedef std::set<LiveSegment> LiveSegments; |
| 102 | |
| 103 | // A set of live virtual registers. Elements have type LiveInterval, where |
| 104 | // each element represents the liveness of a single live virtual register. |
| 105 | // This is traditionally known as a live range, but we refer is as a live |
| 106 | // virtual register to avoid confusing it with the misnamed LiveRange |
| 107 | // class. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 108 | typedef std::vector<LiveInterval*> LiveVRegs; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 109 | |
| 110 | public: |
| 111 | // SegmentIter can advance to the next segment ordered by starting position |
| 112 | // which may belong to a different live virtual register. We also must be able |
| 113 | // to reach the current segment's containing virtual register. |
| 114 | typedef LiveSegments::iterator SegmentIter; |
| 115 | |
| 116 | class InterferenceResult; |
| 117 | class Query; |
| 118 | |
| 119 | private: |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 120 | unsigned RepReg; // representative register number |
| 121 | LiveSegments Segments; // union of virtual reg segements |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 122 | |
| 123 | public: |
| 124 | // default ctor avoids placement new |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 125 | LiveIntervalUnion() : RepReg(0) {} |
Andrew Trick | e16eecc | 2010-10-26 18:34:01 +0000 | [diff] [blame] | 126 | |
| 127 | // Initialize the union by associating it with a representative register |
| 128 | // number. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 129 | void init(unsigned Reg) { RepReg = Reg; } |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 130 | |
Andrew Trick | e16eecc | 2010-10-26 18:34:01 +0000 | [diff] [blame] | 131 | // Iterate over all segments in the union of live virtual registers ordered |
| 132 | // by their starting position. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 133 | SegmentIter begin() { return Segments.begin(); } |
| 134 | SegmentIter end() { return Segments.end(); } |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 135 | |
Andrew Trick | e141a49 | 2010-11-08 18:02:08 +0000 | [diff] [blame] | 136 | // Return an iterator to the first segment after or including begin that |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 137 | // intersects with LS. |
| 138 | SegmentIter upperBound(SegmentIter SegBegin, const LiveSegment &LS); |
Andrew Trick | e141a49 | 2010-11-08 18:02:08 +0000 | [diff] [blame] | 139 | |
Andrew Trick | e16eecc | 2010-10-26 18:34:01 +0000 | [diff] [blame] | 140 | // Add a live virtual register to this union and merge its segments. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 141 | // Holds a nonconst reference to the VirtReg for later maniplution. |
| 142 | void unify(LiveInterval &VirtReg); |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 143 | |
Andrew Trick | e141a49 | 2010-11-08 18:02:08 +0000 | [diff] [blame] | 144 | // Remove a live virtual register's segments from this union. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 145 | void extract(const LiveInterval &VirtReg); |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 146 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 147 | void dump(const AbstractRegisterDescription *RegDesc) const; |
Andrew Trick | 071d1c0 | 2010-11-09 21:04:34 +0000 | [diff] [blame] | 148 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 149 | // If tri != NULL, use it to decode RepReg |
| 150 | void print(raw_ostream &OS, const AbstractRegisterDescription *RegDesc) const; |
| 151 | |
Andrew Trick | 071d1c0 | 2010-11-09 21:04:34 +0000 | [diff] [blame] | 152 | #ifndef NDEBUG |
| 153 | // Verify the live intervals in this union and add them to the visited set. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 154 | void verify(LiveVirtRegBitSet& VisitedVRegs); |
Andrew Trick | 071d1c0 | 2010-11-09 21:04:34 +0000 | [diff] [blame] | 155 | #endif |
| 156 | |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 157 | /// Cache a single interference test result in the form of two intersecting |
| 158 | /// segments. This allows efficiently iterating over the interferences. The |
| 159 | /// iteration logic is handled by LiveIntervalUnion::Query which may |
| 160 | /// filter interferences depending on the type of query. |
| 161 | class InterferenceResult { |
| 162 | friend class Query; |
| 163 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 164 | LiveInterval::iterator VirtRegI; // current position in VirtReg |
| 165 | SegmentIter LiveUnionI; // current position in LiveUnion |
| 166 | |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 167 | // Internal ctor. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 168 | InterferenceResult(LiveInterval::iterator VRegI, SegmentIter UnionI) |
| 169 | : VirtRegI(VRegI), LiveUnionI(UnionI) {} |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 170 | |
| 171 | public: |
| 172 | // Public default ctor. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 173 | InterferenceResult(): VirtRegI(), LiveUnionI() {} |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 174 | |
| 175 | // Note: this interface provides raw access to the iterators because the |
| 176 | // result has no way to tell if it's valid to dereference them. |
| 177 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 178 | // Access the VirtReg segment. |
| 179 | LiveInterval::iterator virtRegPos() const { return VirtRegI; } |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 180 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 181 | // Access the LiveUnion segment. |
| 182 | SegmentIter liveUnionPos() const { return LiveUnionI; } |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 183 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 184 | bool operator==(const InterferenceResult &IR) const { |
| 185 | return VirtRegI == IR.VirtRegI && LiveUnionI == IR.LiveUnionI; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 186 | } |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 187 | bool operator!=(const InterferenceResult &IR) const { |
| 188 | return !operator==(IR); |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 189 | } |
| 190 | }; |
| 191 | |
| 192 | /// Query interferences between a single live virtual register and a live |
| 193 | /// interval union. |
| 194 | class Query { |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 195 | LiveIntervalUnion *LiveUnion; |
| 196 | LiveInterval *VirtReg; |
| 197 | InterferenceResult FirstInterference; |
| 198 | SmallVector<LiveInterval*,4> InterferingVRegs; |
| 199 | bool SeenAllInterferences; |
| 200 | bool SeenUnspillableVReg; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 201 | |
| 202 | public: |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 203 | Query(): LiveUnion(), VirtReg() {} |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 204 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 205 | Query(LiveInterval *VReg, LiveIntervalUnion *LIU): |
| 206 | LiveUnion(LIU), VirtReg(VReg), SeenAllInterferences(false), |
| 207 | SeenUnspillableVReg(false) |
| 208 | {} |
Andrew Trick | e141a49 | 2010-11-08 18:02:08 +0000 | [diff] [blame] | 209 | |
| 210 | void clear() { |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 211 | LiveUnion = NULL; |
| 212 | VirtReg = NULL; |
| 213 | FirstInterference = InterferenceResult(); |
| 214 | InterferingVRegs.clear(); |
| 215 | SeenAllInterferences = false; |
| 216 | SeenUnspillableVReg = false; |
Andrew Trick | e141a49 | 2010-11-08 18:02:08 +0000 | [diff] [blame] | 217 | } |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 218 | |
| 219 | void init(LiveInterval *VReg, LiveIntervalUnion *LIU) { |
| 220 | if (VirtReg == VReg) { |
Andrew Trick | e141a49 | 2010-11-08 18:02:08 +0000 | [diff] [blame] | 221 | // We currently allow query objects to be reused acrossed live virtual |
| 222 | // registers, but always for the same live interval union. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 223 | assert(LiveUnion == LIU && "inconsistent initialization"); |
Andrew Trick | e141a49 | 2010-11-08 18:02:08 +0000 | [diff] [blame] | 224 | // Retain cached results, e.g. firstInterference. |
| 225 | return; |
| 226 | } |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 227 | clear(); |
| 228 | LiveUnion = LIU; |
| 229 | VirtReg = VReg; |
Andrew Trick | e141a49 | 2010-11-08 18:02:08 +0000 | [diff] [blame] | 230 | } |
| 231 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 232 | LiveInterval &virtReg() const { |
| 233 | assert(VirtReg && "uninitialized"); |
| 234 | return *VirtReg; |
| 235 | } |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 236 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 237 | bool isInterference(const InterferenceResult &IR) const { |
| 238 | if (IR.VirtRegI != VirtReg->end()) { |
| 239 | assert(overlap(*IR.VirtRegI, *IR.LiveUnionI) && |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 240 | "invalid segment iterators"); |
| 241 | return true; |
| 242 | } |
| 243 | return false; |
| 244 | } |
| 245 | |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 246 | // Does this live virtual register interfere with the union? |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 247 | bool checkInterference() { return isInterference(firstInterference()); } |
| 248 | |
Andrew Trick | e141a49 | 2010-11-08 18:02:08 +0000 | [diff] [blame] | 249 | // Get the first pair of interfering segments, or a noninterfering result. |
| 250 | // This initializes the firstInterference_ cache. |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 251 | InterferenceResult firstInterference(); |
| 252 | |
| 253 | // Treat the result as an iterator and advance to the next interfering pair |
| 254 | // of segments. Visiting each unique interfering pairs means that the same |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 255 | // VirtReg or LiveUnion segment may be visited multiple times. |
| 256 | bool nextInterference(InterferenceResult &IR) const; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 257 | |
Andrew Trick | f4baeaf | 2010-11-10 19:18:47 +0000 | [diff] [blame] | 258 | // Count the virtual registers in this union that interfere with this |
| 259 | // query's live virtual register, up to maxInterferingRegs. |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 260 | unsigned collectInterferingVRegs(unsigned MaxInterferingRegs = UINT_MAX); |
Andrew Trick | f4baeaf | 2010-11-10 19:18:47 +0000 | [diff] [blame] | 261 | |
| 262 | // Was this virtual register visited during collectInterferingVRegs? |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 263 | bool isSeenInterference(LiveInterval *VReg) const; |
| 264 | |
| 265 | // Did collectInterferingVRegs collect all interferences? |
| 266 | bool seenAllInterferences() const { return SeenAllInterferences; } |
Andrew Trick | f4baeaf | 2010-11-10 19:18:47 +0000 | [diff] [blame] | 267 | |
| 268 | // Did collectInterferingVRegs encounter an unspillable vreg? |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 269 | bool seenUnspillableVReg() const { return SeenUnspillableVReg; } |
Andrew Trick | f4baeaf | 2010-11-10 19:18:47 +0000 | [diff] [blame] | 270 | |
| 271 | // Vector generated by collectInterferingVRegs. |
| 272 | const SmallVectorImpl<LiveInterval*> &interferingVRegs() const { |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 273 | return InterferingVRegs; |
Andrew Trick | f4baeaf | 2010-11-10 19:18:47 +0000 | [diff] [blame] | 274 | } |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 275 | |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 276 | private: |
Andrew Trick | 8a83d54 | 2010-11-11 17:46:29 +0000 | [diff] [blame] | 277 | Query(const Query&); // DO NOT IMPLEMENT |
| 278 | void operator=(const Query&); // DO NOT IMPLEMENT |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 279 | |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 280 | // Private interface for queries |
Andrew Trick | 18c57a8 | 2010-11-30 23:18:47 +0000 | [diff] [blame] | 281 | void findIntersection(InterferenceResult &IR) const; |
Andrew Trick | 14e8d71 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 282 | }; |
| 283 | }; |
| 284 | |
| 285 | } // end namespace llvm |
| 286 | |
| 287 | #endif // !defined(LLVM_CODEGEN_LIVEINTERVALUNION) |