1//===- PythonTestCAPI.h - C API for the PythonTest dialect ------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H
10#define MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H
11
12#include "mlir-c/IR.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(PythonTest, python_test);
19
20MLIR_CAPI_EXPORTED bool
21mlirAttributeIsAPythonTestTestAttribute(MlirAttribute attr);
22
23MLIR_CAPI_EXPORTED MlirAttribute
24mlirPythonTestTestAttributeGet(MlirContext context);
25
26MLIR_CAPI_EXPORTED bool mlirTypeIsAPythonTestTestType(MlirType type);
27
28MLIR_CAPI_EXPORTED MlirType mlirPythonTestTestTypeGet(MlirContext context);
29
30MLIR_CAPI_EXPORTED MlirTypeID mlirPythonTestTestTypeGetTypeID(void);
31
32MLIR_CAPI_EXPORTED bool mlirTypeIsAPythonTestTestTensorValue(MlirValue value);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif // MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H
39

source code of mlir/test/python/lib/PythonTestCAPI.h