[SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (#90217)
[llvm-project.git] / mlir / include / mlir-c / Dialect / Transform.h
blob02c99b59218825c8008c6c4a514af820c830d362
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 MlirTypeID mlirTransformAnyOpTypeGetTypeID(void);
30 MLIR_CAPI_EXPORTED MlirType mlirTransformAnyOpTypeGet(MlirContext ctx);
32 //===---------------------------------------------------------------------===//
33 // AnyParamType
34 //===---------------------------------------------------------------------===//
36 MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyParamType(MlirType type);
38 MLIR_CAPI_EXPORTED MlirTypeID mlirTransformAnyParamTypeGetTypeID(void);
40 MLIR_CAPI_EXPORTED MlirType mlirTransformAnyParamTypeGet(MlirContext ctx);
42 //===---------------------------------------------------------------------===//
43 // AnyValueType
44 //===---------------------------------------------------------------------===//
46 MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyValueType(MlirType type);
48 MLIR_CAPI_EXPORTED MlirTypeID mlirTransformAnyValueTypeGetTypeID(void);
50 MLIR_CAPI_EXPORTED MlirType mlirTransformAnyValueTypeGet(MlirContext ctx);
52 //===---------------------------------------------------------------------===//
53 // OperationType
54 //===---------------------------------------------------------------------===//
56 MLIR_CAPI_EXPORTED bool mlirTypeIsATransformOperationType(MlirType type);
58 MLIR_CAPI_EXPORTED MlirTypeID mlirTransformOperationTypeGetTypeID(void);
60 MLIR_CAPI_EXPORTED MlirType
61 mlirTransformOperationTypeGet(MlirContext ctx, MlirStringRef operationName);
63 MLIR_CAPI_EXPORTED MlirStringRef
64 mlirTransformOperationTypeGetOperationName(MlirType type);
66 //===---------------------------------------------------------------------===//
67 // ParamType
68 //===---------------------------------------------------------------------===//
70 MLIR_CAPI_EXPORTED bool mlirTypeIsATransformParamType(MlirType type);
72 MLIR_CAPI_EXPORTED MlirTypeID mlirTransformParamTypeGetTypeID(void);
74 MLIR_CAPI_EXPORTED MlirType mlirTransformParamTypeGet(MlirContext ctx,
75 MlirType type);
77 MLIR_CAPI_EXPORTED MlirType mlirTransformParamTypeGetType(MlirType type);
79 #ifdef __cplusplus
81 #endif
83 #endif // MLIR_C_DIALECT_TRANSFORM_H