[mlir] Allow accessing TypeID of attrs/types defs
authorMathieu Fehr <mathieu.fehr@gmail.com>
Mon, 26 Sep 2022 16:42:33 +0000 (09:42 -0700)
committerJeff Niu <jeff@modular.com>
Mon, 26 Sep 2022 17:08:54 +0000 (10:08 -0700)
commitebdf00bc1982d38a1f175c41c138254454b802cc
tree2d5c3c36cc7b8e62b2901dbb2278b3476f56d24a
parent1f451a8bd6f32465b6ff26c30ba7fb6fc7e0e689
[mlir] Allow accessing TypeID of attrs/types defs

SelfOwningTypeID was inherited privately, so it was not possible to access
the TypeID of an attribute or a type definition.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D134593
mlir/include/mlir/IR/ExtensibleDialect.h