CIRCT  20.0.0git
SVTypes.h
Go to the documentation of this file.
1 //===- SVTypes.h - Declare SV dialect types ----------------------*- 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 // This file declares the types for the SV dialect.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef CIRCT_DIALECT_SV_TYPES_H
14 #define CIRCT_DIALECT_SV_TYPES_H
15 
17 #include "mlir/IR/Attributes.h"
18 #include "mlir/IR/BuiltinAttributes.h"
19 
20 #define GET_TYPEDEF_CLASSES
21 #include "circt/Dialect/SV/SVTypes.h.inc"
22 
23 namespace circt {
24 namespace sv {
26 
27 /// Return the element type of an InOutType or null if the operand isn't an
28 /// InOut type.
29 mlir::Type getInOutElementType(mlir::Type type);
30 
31 /// Return the element type of an ArrayType or UnpackedArrayType, or null if the
32 /// operand isn't an array.
33 mlir::Type getAnyHWArrayElementType(mlir::Type type);
34 } // end namespace sv
35 } // end namespace circt
36 
37 #endif // CIRCT_DIALECT_SV_TYPES_H
mlir::Type getAnyHWArrayElementType(mlir::Type type)
Return the element type of an ArrayType or UnpackedArrayType, or null if the operand isn't an array.
circt::hw::InOutType InOutType
Definition: SVTypes.h:25
mlir::Type getInOutElementType(mlir::Type type)
Return the element type of an InOutType or null if the operand isn't an InOut type.
Definition: SVTypes.cpp:42
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition: DebugAnalysis.h:21
Definition: sv.py:1