[all-commits] [llvm/llvm-project] 214026: [mlir] Remove remaining uses of llvm::Optional (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sat Jan 14 01:35:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2140260d9154ea3b7dd905b72805004dd182b1a3
      https://github.com/llvm/llvm-project/commit/2140260d9154ea3b7dd905b72805004dd182b1a3
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-01-14 (Sat, 14 Jan 2023)

  Changed paths:
    M mlir/examples/toy/Ch1/include/toy/Parser.h
    M mlir/examples/toy/Ch2/include/toy/Parser.h
    M mlir/examples/toy/Ch3/include/toy/Parser.h
    M mlir/examples/toy/Ch4/include/toy/Parser.h
    M mlir/examples/toy/Ch5/include/toy/Parser.h
    M mlir/examples/toy/Ch6/include/toy/Parser.h
    M mlir/examples/toy/Ch7/include/toy/Parser.h
    M mlir/include/mlir/Analysis/Presburger/Simplex.h
    M mlir/include/mlir/Bindings/Python/PybindAdaptors.h
    M mlir/include/mlir/Dialect/Affine/Analysis/AffineAnalysis.h
    M mlir/include/mlir/Dialect/Affine/Analysis/LoopAnalysis.h
    M mlir/include/mlir/ExecutionEngine/MemRefUtils.h
    M mlir/include/mlir/Pass/PassManager.h
    M mlir/include/mlir/Support/LogicalResult.h
    M mlir/lib/Analysis/Presburger/Simplex.cpp
    M mlir/lib/AsmParser/Token.h
    M mlir/lib/Bindings/Python/Globals.h
    M mlir/lib/Bindings/Python/IRAttributes.cpp
    M mlir/lib/Bindings/Python/IRModule.h
    M mlir/lib/Bindings/Python/PybindUtils.h
    M mlir/lib/Tools/lsp-server-support/Protocol.h
    M mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp

  Log Message:
  -----------
  [mlir] Remove remaining uses of llvm::Optional (NFC)

This patch removes one "using" declaration and #include
"llvm/ADT/Optional.h".  It keeps several "using" declarations in
headers for downstream users.

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




More information about the All-commits mailing list