[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / mlir / include / mlir-c / Dialect / Transform.h
blob91c99b1f869f22cd07503650420496b72aff4e85
1 //===-- mlir-c/Dialect/Transform.h - C API for Transform Dialect --*- C -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM
4 // Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
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"
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
20 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Transform, transform);
22 //===---------------------------------------------------------------------===//
23 // AnyOpType
24 //===---------------------------------------------------------------------===//
26 MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyOpType(MlirType type);
28 MLIR_CAPI_EXPORTED MlirType mlirTransformAnyOpTypeGet(MlirContext ctx);
30 //===---------------------------------------------------------------------===//
31 // AnyParamType
32 //===---------------------------------------------------------------------===//
34 MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyParamType(MlirType type);
36 MLIR_CAPI_EXPORTED MlirType mlirTransformAnyParamTypeGet(MlirContext ctx);
38 //===---------------------------------------------------------------------===//
39 // AnyValueType
40 //===---------------------------------------------------------------------===//
42 MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyValueType(MlirType type);
44 MLIR_CAPI_EXPORTED MlirType mlirTransformAnyValueTypeGet(MlirContext ctx);
46 //===---------------------------------------------------------------------===//
47 // OperationType
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 //===---------------------------------------------------------------------===//
61 // ParamType
62 //===---------------------------------------------------------------------===//
64 MLIR_CAPI_EXPORTED bool mlirTypeIsATransformParamType(MlirType type);
66 MLIR_CAPI_EXPORTED MlirType mlirTransformParamTypeGet(MlirContext ctx,
67 MlirType type);
69 MLIR_CAPI_EXPORTED MlirType mlirTransformParamTypeGetType(MlirType type);
71 #ifdef __cplusplus
73 #endif
75 #endif // MLIR_C_DIALECT_TRANSFORM_H