[all-commits] [llvm/llvm-project] 7082e1: [mlir] Use has_value instead of hasValue (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Fri Aug 12 19:19:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7082e1506d409bf303c2e7be7f925662f4095758
      https://github.com/llvm/llvm-project/commit/7082e1506d409bf303c2e7be7f925662f4095758
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    M mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp

  Log Message:
  -----------
  [mlir] Use has_value instead of hasValue (NFC)


  Commit: 5c4674d67b06c5b4a845f26a614fc453a6bfb1f6
      https://github.com/llvm/llvm-project/commit/5c4674d67b06c5b4a845f26a614fc453a6bfb1f6
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    M mlir/include/mlir/IR/OpDefinition.h

  Log Message:
  -----------
  [mlir] Deprecate OptionalParseResult::{hasValue,getValue}

This patch deprecates hasValue and getValue for consistency with
std::optional and llvm::Optional.  Note that I've migrated all known
uses of them to has_value and value, respectively.

Differential Revision: https://reviews.llvm.org/D131366


Compare: https://github.com/llvm/llvm-project/compare/0fe5f03eeb8f...5c4674d67b06


More information about the All-commits mailing list