static */
| 818 | |
| 819 | /* static */ |
| 820 | StatusOr<std::unique_ptr<BufferAssignment>> BufferAssigner::Run( |
| 821 | const HloModule* module, std::unique_ptr<HloOrdering> hlo_ordering, |
| 822 | BufferValue::SizeFunction buffer_size, |
| 823 | LogicalBuffer::AlignmentFunction color_alignment, |
| 824 | bool allocate_buffers_for_constants, BufferAssigner::Colorer colorer, |
| 825 | const absl::flat_hash_set<HloOpcode>& reuse_checker, |
| 826 | HloDataflowAnalysis::CanShareBuffer can_share_buffer, |
| 827 | std::unique_ptr<PresetAssignments> preset_assignments) { |
| 828 | BufferAssigner assigner(allocate_buffers_for_constants, std::move(colorer), |
| 829 | reuse_checker, std::move(preset_assignments)); |
| 830 | return assigner.CreateAssignment( |
| 831 | module, std::move(hlo_ordering), std::move(buffer_size), |
| 832 | std::move(color_alignment), std::move(can_share_buffer)); |
| 833 | } |
| 834 | |
| 835 | bool BufferAssigner::LiveRangeInterferes(const HloValue* buffer1, |
| 836 | const HloValue* buffer2, |
nothing calls this directly
no test coverage detected