[all-commits] [llvm/llvm-project] dc860d: [mlir] Add has_value and value to OptionalParseResult

kazutakahirata via All-commits all-commits at lists.llvm.org
Tue Aug 2 22:17:09 PDT 2022


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

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

  Log Message:
  -----------
  [mlir] Add has_value and value to OptionalParseResult

llvm::Optional is in the process of switching to the
std::optional-like interface with has_value/value as opposed to
hasValue/getValue.

This patch adds has_value and value to enable the same transition.

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




More information about the All-commits mailing list