[all-commits] [llvm/llvm-project] 81b2dc: [Support] Move ParseResult from OpDefinition.h to ...

Chris Lattner via All-commits all-commits at lists.llvm.org
Sun Apr 17 15:24:06 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81b2dc548b54832eb70dc483b69bbb8a77ecb095
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2022-04-17 (Sun, 17 Apr 2022)

  Changed paths:
    M mlir/include/mlir/IR/Diagnostics.h
    M mlir/include/mlir/IR/OpDefinition.h
    M mlir/include/mlir/Support/LogicalResult.h

  Log Message:
  [Support] Move ParseResult from OpDefinition.h to LogicalResult.h

This class is a helper for 'parser-like' use cases of LogicalResult
where the implicit conversion to bool is tolerable.  It is used by the
operation asmparsers, but is more generic functionality that is closely
aligned with LogicalResult.  Hoist it up to LogicalResult.h to make it
more accessible.  This is part of Issue #54884

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

More information about the All-commits mailing list