| 18 | namespace xla { |
| 19 | |
| 20 | StatusOr<std::unique_ptr<Executable>> CodegenTestBase::CompileToExecutable( |
| 21 | std::unique_ptr<HloModule> hlo_module) { |
| 22 | TF_ASSIGN_OR_RETURN(hlo_module, backend().compiler()->RunHloPasses( |
| 23 | std::move(hlo_module), |
| 24 | backend().default_stream_executor(), |
| 25 | /*device_allocator=*/nullptr)); |
| 26 | return backend().compiler()->RunBackend(std::move(hlo_module), |
| 27 | backend().default_stream_executor(), |
| 28 | /*device_allocator=*/nullptr); |
| 29 | } |
| 30 | |
| 31 | StatusOr<std::unique_ptr<AotCompilationResult>> |
| 32 | CodegenTestBase::CompileToAotCompilationResult( |
nothing calls this directly
no test coverage detected