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