diff options
author | Alex Zinenko <zinenko@google.com> | 2022-05-13 18:03:08 +0200 |
---|---|---|
committer | Alex Zinenko <zinenko@google.com> | 2022-05-17 00:03:40 +0200 |
commit | 18fc39590978949fb75969e4bd63f8d2f13288ad (patch) | |
tree | 176dad9f3de7d414c499cb2fd04de2c4938b0cee /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 9defb3b4b4a3ab5a95c449471aaa930cf63a7106 (diff) | |
download | llvm-18fc39590978949fb75969e4bd63f8d2f13288ad.zip llvm-18fc39590978949fb75969e4bd63f8d2f13288ad.tar.gz llvm-18fc39590978949fb75969e4bd63f8d2f13288ad.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions