[all-commits] [llvm/llvm-project] 004933: [mlir] Use std::nullopt instead of None (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Dec 4 14:40:25 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 004933e46a644a86de52dd9b08d72c43854425fc
      https://github.com/llvm/llvm-project/commit/004933e46a644a86de52dd9b08d72c43854425fc
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-12-04 (Sun, 04 Dec 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/PDL/IR/PDLOps.td
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVStructureOps.td

  Log Message:
  -----------
  [mlir] Use std::nullopt instead of None (NFC)

I've verified that every single instance of std::nullopt in this patch
affects generated files and would reduce the number of warnings if
None were deprecated.

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716


  Commit: 7f773ce6fc98a31b3466be02c020439414c2da24
      https://github.com/llvm/llvm-project/commit/7f773ce6fc98a31b3466be02c020439414c2da24
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-12-04 (Sun, 04 Dec 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIROps.td

  Log Message:
  -----------
  [flang] Use std::nullopt instead of None (NFC)

I've verified that every single instance of std::nullopt in this patch
affects generated files and would reduce the number of warnings if
None were deprecated.

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716


Compare: https://github.com/llvm/llvm-project/compare/8d6589cba7cd...7f773ce6fc98


More information about the All-commits mailing list