84 lines · c
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 LLVM4// Exceptions.5// See https://llvm.org/LICENSE.txt for license information.6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef MLIR_C_DIALECT_TRANSFORM_H11#define MLIR_C_DIALECT_TRANSFORM_H12 13#include "mlir-c/IR.h"14#include "mlir-c/Support.h"15 16#ifdef __cplusplus17extern "C" {18#endif19 20MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Transform, transform);21 22//===---------------------------------------------------------------------===//23// AnyOpType24//===---------------------------------------------------------------------===//25 26MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyOpType(MlirType type);27 28MLIR_CAPI_EXPORTED MlirTypeID mlirTransformAnyOpTypeGetTypeID(void);29 30MLIR_CAPI_EXPORTED MlirType mlirTransformAnyOpTypeGet(MlirContext ctx);31 32//===---------------------------------------------------------------------===//33// AnyParamType34//===---------------------------------------------------------------------===//35 36MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyParamType(MlirType type);37 38MLIR_CAPI_EXPORTED MlirTypeID mlirTransformAnyParamTypeGetTypeID(void);39 40MLIR_CAPI_EXPORTED MlirType mlirTransformAnyParamTypeGet(MlirContext ctx);41 42//===---------------------------------------------------------------------===//43// AnyValueType44//===---------------------------------------------------------------------===//45 46MLIR_CAPI_EXPORTED bool mlirTypeIsATransformAnyValueType(MlirType type);47 48MLIR_CAPI_EXPORTED MlirTypeID mlirTransformAnyValueTypeGetTypeID(void);49 50MLIR_CAPI_EXPORTED MlirType mlirTransformAnyValueTypeGet(MlirContext ctx);51 52//===---------------------------------------------------------------------===//53// OperationType54//===---------------------------------------------------------------------===//55 56MLIR_CAPI_EXPORTED bool mlirTypeIsATransformOperationType(MlirType type);57 58MLIR_CAPI_EXPORTED MlirTypeID mlirTransformOperationTypeGetTypeID(void);59 60MLIR_CAPI_EXPORTED MlirType61mlirTransformOperationTypeGet(MlirContext ctx, MlirStringRef operationName);62 63MLIR_CAPI_EXPORTED MlirStringRef64mlirTransformOperationTypeGetOperationName(MlirType type);65 66//===---------------------------------------------------------------------===//67// ParamType68//===---------------------------------------------------------------------===//69 70MLIR_CAPI_EXPORTED bool mlirTypeIsATransformParamType(MlirType type);71 72MLIR_CAPI_EXPORTED MlirTypeID mlirTransformParamTypeGetTypeID(void);73 74MLIR_CAPI_EXPORTED MlirType mlirTransformParamTypeGet(MlirContext ctx,75 MlirType type);76 77MLIR_CAPI_EXPORTED MlirType mlirTransformParamTypeGetType(MlirType type);78 79#ifdef __cplusplus80}81#endif82 83#endif // MLIR_C_DIALECT_TRANSFORM_H84