[mlir][index] Add `index` dialect ops and attributes
authorJeff Niu <jeff@modular.com>
Tue, 11 Oct 2022 16:29:35 +0000 (09:29 -0700)
committerJeff Niu <jeff@modular.com>
Fri, 21 Oct 2022 16:46:06 +0000 (09:46 -0700)
commitddf87d6cd40416b306c55a02f3646018c2293a7c
tree4bd678d28d0beb85b4d376e3c2ac509705af3297
parent8bef3541fabf01fc1f11452d45737b15109b8bd6
[mlir][index] Add `index` dialect ops and attributes

This patch adds the definitions for the operations and attributes (just
one enum attribute) for the `index` dialect.

Depends on D135688

Reviewed By: rriddle, jpienaar

Differential Revision: https://reviews.llvm.org/D135689
mlir/include/mlir/Dialect/Index/IR/IndexDialect.td
mlir/include/mlir/Dialect/Index/IR/IndexEnums.td
mlir/include/mlir/Dialect/Index/IR/IndexOps.h
mlir/include/mlir/Dialect/Index/IR/IndexOps.td
mlir/lib/Dialect/Index/IR/IndexAttrs.cpp
mlir/lib/Dialect/Index/IR/IndexOps.cpp
mlir/test/Dialect/Index/index-errors.mlir [new file with mode: 0644]
mlir/test/Dialect/Index/index-ops.mlir [new file with mode: 0644]