xref: /llvm-project/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.td (revision 4f1c12425179608298dc39f5524ba2612609b5e4)
1//===- StructuredOpsUtils.td - structured ops enums --------*- tablegen -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef STRUCTURED_OPS_UTILS
10#define STRUCTURED_OPS_UTILS
11
12include "mlir/IR/OpBase.td"
13include "mlir/IR/EnumAttr.td"
14
15def IteratorType : I32EnumAttr<"IteratorType", "Iterator type", [
16  I32EnumAttrCase<"parallel", 0>,
17  I32EnumAttrCase<"reduction", 1>
18]> {
19    let genSpecializedAttr = 0;
20    let cppNamespace = "::mlir::utils";
21}
22
23#endif // STRUCTURED_OPS_UTILS
24