[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 08:28:33 +0000 (10:28 +0200)
commit997f33cfeec9cd8c5bc913cf862794e986a4bd39
treedb104585a242277d04f2e40c59db7bd2744f9fe0
parentc2f628e46c32dce91be0d23f9b603a11a74173f6
[MLIR] Add IndexAttr to primitive attributes kinds in tablegen.

Summary:
OpBase.td defined attributes kind for all integer types expect index. This
commit fixes that by adding an IndexAttr attribute kind.

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