Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CPU] Return std::nullopt when failing on creating host target. (#19052)
We should not have an assertion because it crashes in debug build. Given that the return type is std::optional, the caller should handle the error themselves. Otherwise, we're not able to compile any MLIR programs targeting CPUs when there are troubles in host CPU setup.
- Loading branch information