[all-commits] [llvm/llvm-project] 18b724: [MLIR] Simplify predicate in Matchers.h, NFC

Chris Lattner via All-commits all-commits at lists.llvm.org
Sun Jan 15 09:32:00 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18b72494d345ccbdef4ba21e03749e87ec5dd7c3
      https://github.com/llvm/llvm-project/commit/18b72494d345ccbdef4ba21e03749e87ec5dd7c3
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2023-01-15 (Sun, 15 Jan 2023)

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

  Log Message:
  -----------
  [MLIR] Simplify predicate in Matchers.h, NFC

The ConstantLike trait already static_asserts that operations
implementing it have a single result and zero operands, so we
don't need to redundantly check in Matchers.h

The static assert is in `class ConstantLike` in OpDefinition.h

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




More information about the All-commits mailing list