CIRCT  20.0.0git
RTGTest.h
Go to the documentation of this file.
1 //===- RTGTest.h - C interface for the for RTGTest 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 CIRCT_C_DIALECT_RTGTEST_H
10 #define CIRCT_C_DIALECT_RTGTEST_H
11 
12 #include "mlir-c/IR.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 //===----------------------------------------------------------------------===//
19 // Dialect API.
20 //===----------------------------------------------------------------------===//
21 
23 
24 //===----------------------------------------------------------------------===//
25 // Type API.
26 //===----------------------------------------------------------------------===//
27 
28 /// If the type is an RTGTest CPUType.
29 MLIR_CAPI_EXPORTED bool rtgtestTypeIsACPU(MlirType type);
30 
31 /// Creates an RTGTest CPU type in the context.
32 MLIR_CAPI_EXPORTED MlirType rtgtestCPUTypeGet(MlirContext ctxt);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif // CIRCT_C_DIALECT_RTGTEST_H
MLIR_CAPI_EXPORTED MlirType rtgtestCPUTypeGet(MlirContext ctxt)
Creates an RTGTest CPU type in the context.
Definition: RTGTest.cpp:30
MLIR_CAPI_EXPORTED bool rtgtestTypeIsACPU(MlirType type)
If the type is an RTGTest CPUType.
Definition: RTGTest.cpp:28
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(RTGTest, rtgtest)