[LoopVectorizer] Propagate underlying instruction to the cloned instances of VPPartia...
[llvm-project.git] / mlir / test / python / lib / PythonTestCAPI.h
blob43f8fdcbfae12567740f6017970534d11df7c06a
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 //===----------------------------------------------------------------------===//
9 #ifndef MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H
10 #define MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H
12 #include "mlir-c/IR.h"
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
18 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(PythonTest, python_test);
20 MLIR_CAPI_EXPORTED bool
21 mlirAttributeIsAPythonTestTestAttribute(MlirAttribute attr);
23 MLIR_CAPI_EXPORTED MlirAttribute
24 mlirPythonTestTestAttributeGet(MlirContext context);
26 MLIR_CAPI_EXPORTED MlirTypeID mlirPythonTestTestAttributeGetTypeID(void);
28 MLIR_CAPI_EXPORTED bool mlirTypeIsAPythonTestTestType(MlirType type);
30 MLIR_CAPI_EXPORTED MlirType mlirPythonTestTestTypeGet(MlirContext context);
32 MLIR_CAPI_EXPORTED MlirTypeID mlirPythonTestTestTypeGetTypeID(void);
34 MLIR_CAPI_EXPORTED bool mlirTypeIsAPythonTestTestTensorValue(MlirValue value);
36 #ifdef __cplusplus
38 #endif
40 #endif // MLIR_TEST_PYTHON_LIB_PYTHONTESTCAPI_H