[all-commits] [llvm/llvm-project] 70619f: [MLIR] Add isa<> support for Dialects.

Tres via All-commits all-commits at lists.llvm.org
Thu Apr 30 02:12:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 70619fa82ddbe951d1b2d3dd224a131ff104edeb
      https://github.com/llvm/llvm-project/commit/70619fa82ddbe951d1b2d3dd224a131ff104edeb
  Author: Tres Popp <tpopp at google.com>
  Date:   2020-04-30 (Thu, 30 Apr 2020)

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

  Log Message:
  -----------
  [MLIR] Add isa<> support for Dialects.

Summary:
The purpose of this is to aid in having code behave differently on
Operations based on their Dialect without caring about the specific
Op. Additionally this is consistent with most other types supporting
isa<> and dyn_cast<>.

A Dialect matches isa<> based only on its namespace and relies on each
namespace being unique.

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




More information about the All-commits mailing list