| 262 | } |
| 263 | |
| 264 | bool RDTarget::includes(const RDTarget &Target) const { |
| 265 | |
| 266 | if (IR != &Target.getIR()) |
| 267 | return false; |
| 268 | |
| 269 | auto TargetMemoryIndices = Target.getMemoryIndices(); |
| 270 | if (MemoryIndices.size() > TargetMemoryIndices.size()) |
| 271 | return false; |
| 272 | |
| 273 | for (unsigned S = 0, E = MemoryIndices.size(); S < E; ++S) { |
| 274 | if (MemoryIndices[S] != TargetMemoryIndices[S]) |
| 275 | return false; |
| 276 | } |
| 277 | |
| 278 | return true; |
| 279 | } |
| 280 | |
| 281 | bool RDTarget::operator==(const RDTarget &Rhs) const { |
| 282 |
no test coverage detected