1 //===-- mlir-c/Dialect/Transform.h - C API for Transform Dialect --*- C -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef MLIR_C_DIALECT_TRANSFORM_H
11 #define MLIR_C_DIALECT_TRANSFORM_H
13 #include "mlir-c/IR.h"
14 #include "mlir-c/Support.h"
20 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Transform
, transform
);
22 //===---------------------------------------------------------------------===//
24 //===---------------------------------------------------------------------===//
26 MLIR_CAPI_EXPORTED
bool mlirTypeIsATransformAnyOpType(MlirType type
);
28 MLIR_CAPI_EXPORTED MlirType
mlirTransformAnyOpTypeGet(MlirContext ctx
);
30 //===---------------------------------------------------------------------===//
32 //===---------------------------------------------------------------------===//
34 MLIR_CAPI_EXPORTED
bool mlirTypeIsATransformAnyParamType(MlirType type
);
36 MLIR_CAPI_EXPORTED MlirType
mlirTransformAnyParamTypeGet(MlirContext ctx
);
38 //===---------------------------------------------------------------------===//
40 //===---------------------------------------------------------------------===//
42 MLIR_CAPI_EXPORTED
bool mlirTypeIsATransformAnyValueType(MlirType type
);
44 MLIR_CAPI_EXPORTED MlirType
mlirTransformAnyValueTypeGet(MlirContext ctx
);
46 //===---------------------------------------------------------------------===//
48 //===---------------------------------------------------------------------===//
50 MLIR_CAPI_EXPORTED
bool mlirTypeIsATransformOperationType(MlirType type
);
52 MLIR_CAPI_EXPORTED MlirTypeID
mlirTransformOperationTypeGetTypeID(void);
54 MLIR_CAPI_EXPORTED MlirType
55 mlirTransformOperationTypeGet(MlirContext ctx
, MlirStringRef operationName
);
57 MLIR_CAPI_EXPORTED MlirStringRef
58 mlirTransformOperationTypeGetOperationName(MlirType type
);
60 //===---------------------------------------------------------------------===//
62 //===---------------------------------------------------------------------===//
64 MLIR_CAPI_EXPORTED
bool mlirTypeIsATransformParamType(MlirType type
);
66 MLIR_CAPI_EXPORTED MlirType
mlirTransformParamTypeGet(MlirContext ctx
,
69 MLIR_CAPI_EXPORTED MlirType
mlirTransformParamTypeGetType(MlirType type
);
75 #endif // MLIR_C_DIALECT_TRANSFORM_H