[mlir][NFC] Provide accessor for TableGen record
authorMathieu Fehr <mathieu.fehr@gmail.com>
Thu, 8 Sep 2022 15:46:59 +0000 (08:46 -0700)
committerJeff Niu <jeff@modular.com>
Thu, 8 Sep 2022 16:47:20 +0000 (09:47 -0700)
commita8c647dbe603a0668e156010e358863bd64de1e4
tree53f97a4283a93137d732aef5c3e0fdf01639ed53
parent444f08c832c8ba67ad595037b58e3ac616a756f1
[mlir][NFC] Provide accessor for TableGen record

Constraint and Predicate classes did not expose their underlying
tablegen records. This means that for Constraints, it is not possible
to get the underlying base constraint of a variadic constraint.
For Predicate, it is not possible to get the predicates forming an
`Or` predicate for instance.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D133264
mlir/include/mlir/TableGen/Constraint.h
mlir/include/mlir/TableGen/Predicate.h