commit | 6757de75f409f67e93b8d276bcd0c8879a0f99ee | [log] [tgz] |
---|---|---|
author | Kazu Hirata <kazu@google.com> | Sat Jun 21 08:20:49 2025 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Jun 21 08:25:53 2025 -0700 |
tree | 782a0134596a0a7de5b309135bc85848b5eefb12 | |
parent | c14098dfa3aeaea639e7a3997ba5a0c5afd5e79e [diff] |
[mlir] Migrate away from ArrayRef(std::nullopt) (NFC) (#145140) ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is kind of abuse and not intuitive to new comers, I would like to move away from the constructor and eventually remove it. This patch takes care of the mlir side of the migration, starting with straightforward places like "return std::nullopt;" and ternally expressions involving std::nullopt. GitOrigin-RevId: e6ebf8f99ba27d60026c7473b0cd5e24c855b018
See https://mlir.llvm.org/ for more information.