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 125e83a5b4SStella Laurenzo #include "mlir-c/IR.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 2089a92fb3SAlex Zinenko MLIR_CAPI_EXPORTED bool 2189a92fb3SAlex Zinenko mlirAttributeIsAPythonTestTestAttribute(MlirAttribute attr); 2289a92fb3SAlex Zinenko 2389a92fb3SAlex Zinenko MLIR_CAPI_EXPORTED MlirAttribute 2489a92fb3SAlex Zinenko mlirPythonTestTestAttributeGet(MlirContext context); 2589a92fb3SAlex Zinenko 26*93156458SMaksim Levental MLIR_CAPI_EXPORTED MlirTypeID mlirPythonTestTestAttributeGetTypeID(void); 27*93156458SMaksim Levental 2889a92fb3SAlex Zinenko MLIR_CAPI_EXPORTED bool mlirTypeIsAPythonTestTestType(MlirType type); 2989a92fb3SAlex Zinenko 3089a92fb3SAlex Zinenko MLIR_CAPI_EXPORTED MlirType mlirPythonTestTestTypeGet(MlirContext context); 3189a92fb3SAlex Zinenko 32bfb1ba75Smax MLIR_CAPI_EXPORTED MlirTypeID mlirPythonTestTestTypeGetTypeID(void); 33bfb1ba75Smax 3469cc3cfbSmax MLIR_CAPI_EXPORTED bool mlirTypeIsAPythonTestTestTensorValue(MlirValue value); 3569cc3cfbSmax 3614c92070SAlex Zinenko #ifdef __cplusplus 3714c92070SAlex Zinenko } 3814c92070SAlex Zinenko #endif 3914c92070SAlex Zinenko 4014c92070SAlex Zinenko #endif // MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H 41