[all-commits] [llvm/llvm-project] 34ea60: [mlir] Support repeated delayed registration of di...
ftynse via All-commits
all-commits at lists.llvm.org
Mon Feb 15 01:46:51 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34ea608a473a5c67263c49255551ea348ffc1700
https://github.com/llvm/llvm-project/commit/34ea608a473a5c67263c49255551ea348ffc1700
Author: Alex Zinenko <zinenko at google.com>
Date: 2021-02-15 (Mon, 15 Feb 2021)
Changed paths:
M mlir/include/mlir/IR/Dialect.h
M mlir/lib/IR/Dialect.cpp
M mlir/unittests/IR/DialectTest.cpp
Log Message:
-----------
[mlir] Support repeated delayed registration of dialect interfaces
Dialects themselves do not support repeated addition of interfaces with the
same TypeID. However, in case of delayed registration, the registry may contain
such an interface, or have the same interface registered several times due to,
e.g., dependencies. Make sure we delayed registration does not attempt to add
an interface with the same TypeID more than once.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D96606
More information about the All-commits
mailing list