CIRCT  20.0.0git
SV.h
Go to the documentation of this file.
1 //===- SV.h - C interface for the SV 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_SV_H
10 #define CIRCT_C_DIALECT_SV_H
11 
12 #include "mlir-c/IR.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
19 MLIR_CAPI_EXPORTED void registerSVPasses(void);
20 
21 //===----------------------------------------------------------------------===//
22 // Attribute API.
23 //===----------------------------------------------------------------------===//
24 
25 MLIR_CAPI_EXPORTED bool svAttrIsASVAttributeAttr(MlirAttribute);
26 MLIR_CAPI_EXPORTED MlirAttribute svSVAttributeAttrGet(MlirContext,
27  MlirStringRef name,
28  MlirStringRef expression,
29  bool emitAsComment);
30 MLIR_CAPI_EXPORTED MlirStringRef svSVAttributeAttrGetName(MlirAttribute);
31 MLIR_CAPI_EXPORTED MlirStringRef svSVAttributeAttrGetExpression(MlirAttribute);
32 MLIR_CAPI_EXPORTED bool svSVAttributeAttrGetEmitAsComment(MlirAttribute);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif // CIRCT_C_DIALECT_SV_H
MLIR_CAPI_EXPORTED MlirAttribute svSVAttributeAttrGet(MlirContext, MlirStringRef name, MlirStringRef expression, bool emitAsComment)
Definition: SV.cpp:26
MLIR_CAPI_EXPORTED MlirStringRef svSVAttributeAttrGetExpression(MlirAttribute)
Definition: SV.cpp:42
MLIR_CAPI_EXPORTED bool svSVAttributeAttrGetEmitAsComment(MlirAttribute)
Definition: SV.cpp:49
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(SystemVerilog, sv)
MLIR_CAPI_EXPORTED bool svAttrIsASVAttributeAttr(MlirAttribute)
Definition: SV.cpp:22
MLIR_CAPI_EXPORTED void registerSVPasses(void)
Definition: SV.cpp:19
MLIR_CAPI_EXPORTED MlirStringRef svSVAttributeAttrGetName(MlirAttribute)
Definition: SV.cpp:38
Definition: sv.py:1