[ODG] Use getODSOperands() and getODSResults() to back accessors
authorLei Zhang <antiagainst@google.com>
Sun, 9 Jun 2019 12:50:09 +0000 (05:50 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 9 Jun 2019 23:24:18 +0000 (16:24 -0700)
commit7f108e60cc92a6ba26f61e084c0032f4d89ca39a
tree96ecbdb90e6c2904058d4cb723daea72a8b12f43
parent1be9fc66115de245f469e3b09114a06603258ce0
[ODG] Use getODSOperands() and getODSResults() to back accessors

This CL added getODSOperands() and getODSResults() as fallback getter methods for
getting all the dynamic values corresponding to a static operand/result (which
can be variadic). It should provide a uniform way of calculating the value ranges.
All named getter methods are layered on top of these methods now.

PiperOrigin-RevId: 252284270
mlir/test/mlir-tblgen/op-decl.td
mlir/test/mlir-tblgen/op-operand.td
mlir/test/mlir-tblgen/op-result.td
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp