| 20 | namespace xla { |
| 21 | |
| 22 | HloReachabilityMap::HloReachabilityMap( |
| 23 | absl::Span<const HloInstruction* const> instructions) |
| 24 | : size_(instructions.size()) { |
| 25 | bit_vectors_.reserve(size_); |
| 26 | for (const HloInstruction* hlo : instructions) { |
| 27 | indices_[GetKey(hlo)] = bit_vectors_.size(); |
| 28 | bit_vectors_.emplace_back(size_); |
| 29 | } |
| 30 | CHECK_EQ(size_, indices_.size()); // instructions should be unique |
| 31 | } |
| 32 | |
| 33 | bool HloReachabilityMap::SetReachabilityToUnion( |
| 34 | absl::Span<const HloInstruction* const> inputs, |
nothing calls this directly
no test coverage detected