[all-commits] [llvm/llvm-project] bd5941: [mlir] Remove the PatternState class and simplify ...

River Riddle via All-commits all-commits at lists.llvm.org
Mon Mar 16 17:59:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bd5941b9ceef0c1af0a10b292d22fdbd2433f4cd
      https://github.com/llvm/llvm-project/commit/bd5941b9ceef0c1af0a10b292d22fdbd2433f4cd
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-03-16 (Mon, 16 Mar 2020)

  Changed paths:
    M mlir/include/mlir/IR/PatternMatch.h
    M mlir/include/mlir/Transforms/DialectConversion.h
    M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
    M mlir/lib/Dialect/SPIRV/SPIRVCanonicalization.cpp
    M mlir/lib/IR/PatternMatch.cpp
    M mlir/lib/Transforms/DialectConversion.cpp

  Log Message:
  -----------
  [mlir] Remove the PatternState class and simplify PatternMatchResult.

Summary: PatternState was a mechanism to pass state between the match and rewrite calls of a RewritePattern. With the rise of matchAndRewrite, this class is unused and unnecessary. This revision removes PatternState and simplifies PatternMatchResult to just be a LogicalResult. A future revision will replace all usages of PatternMatchResult/matchSuccess/matchFailure with LogicalResult equivalents.

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




More information about the All-commits mailing list