114c92070SAlex Zinenko //===- PythonTestCAPI.h - C API for the PythonTest dialect ------*- C++ -*-===//
214c92070SAlex Zinenko //
314c92070SAlex Zinenko // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
414c92070SAlex Zinenko // See https://llvm.org/LICENSE.txt for license information.
514c92070SAlex Zinenko // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
614c92070SAlex Zinenko //
714c92070SAlex Zinenko //===----------------------------------------------------------------------===//
814c92070SAlex Zinenko 
914c92070SAlex Zinenko #ifndef MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H
1014c92070SAlex Zinenko #define MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H
1114c92070SAlex Zinenko 
1214c92070SAlex Zinenko #include "mlir-c/Registration.h"
1314c92070SAlex Zinenko 
1414c92070SAlex Zinenko #ifdef __cplusplus
1514c92070SAlex Zinenko extern "C" {
1614c92070SAlex Zinenko #endif
1714c92070SAlex Zinenko 
1814c92070SAlex Zinenko MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(PythonTest, python_test);
1914c92070SAlex Zinenko 
20*89a92fb3SAlex Zinenko MLIR_CAPI_EXPORTED bool
21*89a92fb3SAlex Zinenko mlirAttributeIsAPythonTestTestAttribute(MlirAttribute attr);
22*89a92fb3SAlex Zinenko 
23*89a92fb3SAlex Zinenko MLIR_CAPI_EXPORTED MlirAttribute
24*89a92fb3SAlex Zinenko mlirPythonTestTestAttributeGet(MlirContext context);
25*89a92fb3SAlex Zinenko 
26*89a92fb3SAlex Zinenko MLIR_CAPI_EXPORTED bool mlirTypeIsAPythonTestTestType(MlirType type);
27*89a92fb3SAlex Zinenko 
28*89a92fb3SAlex Zinenko MLIR_CAPI_EXPORTED MlirType mlirPythonTestTestTypeGet(MlirContext context);
29*89a92fb3SAlex Zinenko 
3014c92070SAlex Zinenko #ifdef __cplusplus
3114c92070SAlex Zinenko }
3214c92070SAlex Zinenko #endif
3314c92070SAlex Zinenko 
3414c92070SAlex Zinenko #endif // MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H
35