MLIR 22.0.0git
Transform.h
Go to the documentation of this file.
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//===----------------------------------------------------------------------===//
9
10#ifndef MLIR_C_DIALECT_TRANSFORM_H
11#define MLIR_C_DIALECT_TRANSFORM_H
12
13#include "mlir-c/IR.h"
14#include "mlir-c/Support.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
21
22//===---------------------------------------------------------------------===//
23// AnyOpType
24//===---------------------------------------------------------------------===//
25
27
29
30MLIR_CAPI_EXPORTED MlirType mlirTransformAnyOpTypeGet(MlirContext ctx);
31
33
34//===---------------------------------------------------------------------===//
35// AnyParamType
36//===---------------------------------------------------------------------===//
37
39
41
42MLIR_CAPI_EXPORTED MlirType mlirTransformAnyParamTypeGet(MlirContext ctx);
43
45
46//===---------------------------------------------------------------------===//
47// AnyValueType
48//===---------------------------------------------------------------------===//
49
51
53
54MLIR_CAPI_EXPORTED MlirType mlirTransformAnyValueTypeGet(MlirContext ctx);
55
57
58//===---------------------------------------------------------------------===//
59// OperationType
60//===---------------------------------------------------------------------===//
61
63
65
66MLIR_CAPI_EXPORTED MlirType
67mlirTransformOperationTypeGet(MlirContext ctx, MlirStringRef operationName);
68
70
73
74//===---------------------------------------------------------------------===//
75// ParamType
76//===---------------------------------------------------------------------===//
77
79
81
82MLIR_CAPI_EXPORTED MlirType mlirTransformParamTypeGet(MlirContext ctx,
83 MlirType type);
84
86
88
89#ifdef __cplusplus
90}
91#endif
92
93#include "mlir/Dialect/Transform/Transforms/Passes.capi.h.inc"
94
95#endif // MLIR_C_DIALECT_TRANSFORM_H
MLIR_CAPI_EXPORTED MlirType mlirTransformAnyOpTypeGet(MlirContext ctx)
Definition Transform.cpp:32
MLIR_CAPI_EXPORTED MlirTypeID mlirTransformAnyParamTypeGetTypeID(void)
Definition Transform.cpp:48
MLIR_CAPI_EXPORTED MlirStringRef mlirTransformParamTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyValueType(MlirType type)
Definition Transform.cpp:64
MLIR_CAPI_EXPORTED bool mlirTypeIsATransformOperationType(MlirType type)
Definition Transform.cpp:84
MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyParamType(MlirType type)
Definition Transform.cpp:44
MLIR_CAPI_EXPORTED MlirTypeID mlirTransformAnyValueTypeGetTypeID(void)
Definition Transform.cpp:68
MLIR_CAPI_EXPORTED MlirTypeID mlirTransformParamTypeGetTypeID(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyOpType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirTransformOperationTypeGet(MlirContext ctx, MlirStringRef operationName)
Definition Transform.cpp:92
MLIR_CAPI_EXPORTED MlirStringRef mlirTransformOperationTypeGetName(void)
Definition Transform.cpp:98
MLIR_CAPI_EXPORTED bool mlirTypeIsATransformParamType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirTransformParamTypeGet(MlirContext ctx, MlirType type)
MLIR_CAPI_EXPORTED MlirTypeID mlirTransformOperationTypeGetTypeID(void)
Definition Transform.cpp:88
MLIR_CAPI_EXPORTED MlirStringRef mlirTransformAnyValueTypeGetName(void)
Definition Transform.cpp:76
MLIR_CAPI_EXPORTED MlirType mlirTransformAnyValueTypeGet(MlirContext ctx)
Definition Transform.cpp:72
MLIR_CAPI_EXPORTED MlirType mlirTransformAnyParamTypeGet(MlirContext ctx)
Definition Transform.cpp:52
MLIR_CAPI_EXPORTED MlirType mlirTransformParamTypeGetType(MlirType type)
MLIR_CAPI_EXPORTED MlirStringRef mlirTransformOperationTypeGetOperationName(MlirType type)
MLIR_CAPI_EXPORTED MlirStringRef mlirTransformAnyOpTypeGetName(void)
Definition Transform.cpp:36
MLIR_CAPI_EXPORTED MlirStringRef mlirTransformAnyParamTypeGetName(void)
Definition Transform.cpp:56
MLIR_CAPI_EXPORTED MlirTypeID mlirTransformAnyOpTypeGetTypeID(void)
Definition Transform.cpp:28
#define MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Name, Namespace)
Definition IR.h:215
#define MLIR_CAPI_EXPORTED
Definition Support.h:46
A pointer to a sized fragment of a string, not necessarily null-terminated.
Definition Support.h:75