[MLIR] Add IndexAttr to primitive attributes kinds in tablegen.
authorUlysse Beaugnon <ulysse@google.com>
Thu, 16 Apr 2020 08:28:02 +0000 (10:28 +0200)
committerAlex Zinenko <zinenko@google.com>
Thu, 16 Apr 2020 12:59:26 +0000 (14:59 +0200)
commit11f093fab4a38a652563cde52fcfa65ebcdc65e4
tree5789d6a80e70e21c458a66ec138f53257d19c097
parent48d64f56549f170ccaf32503338cf0efbffd6af1
[MLIR] Add IndexAttr to primitive attributes kinds in tablegen.

OpBase.td defined attributes kind for all integer types expect index. This
commit fixes that by adding an IndexAttr attribute kind. Update the
respective tests.

Differential Revision: https://reviews.llvm.org/D78195
mlir/include/mlir/IR/OpBase.td
mlir/test/IR/attribute.mlir
mlir/test/lib/Dialect/Test/TestOps.td