Add sanity check in MLIR ODS to catch case where an arguments/results/regions/success...
authorMehdi Amini <joker.eph@gmail.com>
Thu, 9 Sep 2021 00:10:16 +0000 (00:10 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 13 Sep 2021 06:21:25 +0000 (06:21 +0000)
commit7fb2394a4f362aff4282af8486b7352e720c32ab
tree3d543099b211736e1de5e51c5e2328d75e26fec0
parentff94f6024082ecd6b8a236b0953d3ce2d240cc64
Add sanity check in MLIR ODS to catch case where an arguments/results/regions/successors names overlap

This is making a tablegen crash with a more friendly error.

Differential Revision: https://reviews.llvm.org/D109474
mlir/include/mlir/TableGen/Operator.h
mlir/lib/TableGen/Operator.cpp
mlir/test/mlir-tblgen/op-error.td
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp