[all-commits] [llvm/llvm-project] 98dcee: [mlir] Make some functions public to use custom Ty...

Fehr Mathieu via All-commits all-commits at lists.llvm.org
Tue Apr 20 10:56:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98dceed64bd061ef42272fb84eea8fd2b84083ac
      https://github.com/llvm/llvm-project/commit/98dceed64bd061ef42272fb84eea8fd2b84083ac
  Author: Mathieu Fehr <mathieu.fehr at gmail.com>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M mlir/include/mlir/IR/Dialect.h
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/include/mlir/IR/TypeSupport.h
    M mlir/include/mlir/Support/InterfaceSupport.h

  Log Message:
  -----------
  [mlir] Make some functions public to use custom TypeIDs

Currently, it is only possible to register an operation or a type
when the TypeID is defined at compile time. Same with InterfaceMaps
which can only be defined with compile-time defined interfaces.

With those changes, it is now possible to register types/operations
with custom TypeIDs. This is necessary to define new operations/types
at runtime.

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




More information about the All-commits mailing list