Oleg Shyshkov fb80d2abcb [XLA][NFC] Make interface of module loaders consistent.
LoadModuleFromData has (data, format, config, ...) signature while FromFile has (path, config, format, ...). Change the latter so `format` becomes the second argument in both cases.

Since I'm touching this file:
* Use `std::string_view` and `absl::Status`
* Change `ovr_config` parameter to `const &`

PiperOrigin-RevId: 601304308
2024-01-24 19:16:43 -08:00
..