[all-commits] [llvm/llvm-project] 18fc39: [mlir] allow for re-registering extension ops

ftynse via All-commits all-commits at lists.llvm.org
Mon May 16 15:04:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18fc39590978949fb75969e4bd63f8d2f13288ad
      https://github.com/llvm/llvm-project/commit/18fc39590978949fb75969e4bd63f8d2f13288ad
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2022-05-17 (Tue, 17 May 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td

  Log Message:
  -----------
  [mlir] allow for re-registering extension ops

Op registration mechanism does not allow for ops with the same name to be
re-registered. This is okay to avoid name conflicts and debug
double-registration, but may be problematic for dialect extensions that may get
registered several times (unlike dialects that are deduplicated in the
registry). When registering ops through the Transform dialect extension
mechanism, check first if the ops are already registered and only complain in
the case of repeated registration with the same name but different TypeID.

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




More information about the All-commits mailing list