brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 6ad2e2d Raw
74 lines · c
1//===-- mlir-c/Dialect/PDL.h - C API for PDL 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_PDL_H11#define MLIR_C_DIALECT_PDL_H12 13#include "mlir-c/IR.h"14 15#ifdef __cplusplus16extern "C" {17#endif18 19MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(PDL, pdl);20 21//===---------------------------------------------------------------------===//22// PDLType23//===---------------------------------------------------------------------===//24 25MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLType(MlirType type);26 27//===---------------------------------------------------------------------===//28// AttributeType29//===---------------------------------------------------------------------===//30 31MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLAttributeType(MlirType type);32 33MLIR_CAPI_EXPORTED MlirType mlirPDLAttributeTypeGet(MlirContext ctx);34 35//===---------------------------------------------------------------------===//36// OperationType37//===---------------------------------------------------------------------===//38 39MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLOperationType(MlirType type);40 41MLIR_CAPI_EXPORTED MlirType mlirPDLOperationTypeGet(MlirContext ctx);42 43//===---------------------------------------------------------------------===//44// RangeType45//===---------------------------------------------------------------------===//46 47MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLRangeType(MlirType type);48 49MLIR_CAPI_EXPORTED MlirType mlirPDLRangeTypeGet(MlirType elementType);50 51MLIR_CAPI_EXPORTED MlirType mlirPDLRangeTypeGetElementType(MlirType type);52 53//===---------------------------------------------------------------------===//54// TypeType55//===---------------------------------------------------------------------===//56 57MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLTypeType(MlirType type);58 59MLIR_CAPI_EXPORTED MlirType mlirPDLTypeTypeGet(MlirContext ctx);60 61//===---------------------------------------------------------------------===//62// ValueType63//===---------------------------------------------------------------------===//64 65MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLValueType(MlirType type);66 67MLIR_CAPI_EXPORTED MlirType mlirPDLValueTypeGet(MlirContext ctx);68 69#ifdef __cplusplus70}71#endif72 73#endif // MLIR_C_DIALECT_PDL_H74