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#include "mlir-c/Support.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(PythonTest, python_test);
20
21MLIR_CAPI_EXPORTED bool
22mlirAttributeIsAPythonTestTestAttribute(MlirAttribute attr);
23
24MLIR_CAPI_EXPORTED MlirAttribute
25mlirPythonTestTestAttributeGet(MlirContext context);
26
27MLIR_CAPI_EXPORTED MlirTypeID mlirPythonTestTestAttributeGetTypeID(void);
28
29MLIR_CAPI_EXPORTED bool mlirTypeIsAPythonTestTestType(MlirType type);
30
31MLIR_CAPI_EXPORTED MlirType mlirPythonTestTestTypeGet(MlirContext context);
32
33MLIR_CAPI_EXPORTED MlirTypeID mlirPythonTestTestTypeGetTypeID(void);
34
35MLIR_CAPI_EXPORTED bool mlirTypeIsAPythonTestTestTensorValue(MlirValue value);
36
37MLIR_CAPI_EXPORTED void mlirPythonTestEmitDiagnosticWithNote(MlirContext ctx);
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif // MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H
44

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

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