9 #ifndef CIRCT_DIALECT_HW_ATTRIBUTES_H
10 #define CIRCT_DIALECT_HW_ATTRIBUTES_H
12 #include "mlir/IR/Attributes.h"
13 #include "mlir/IR/BuiltinAttributeInterfaces.h"
14 #include "mlir/IR/BuiltinAttributes.h"
20 enum class PEO : uint32_t;
25 mlir::ArrayAttr parameters,
27 bool emitErrors = true);
31 mlir::FailureOr<mlir::TypedAttr>
33 mlir::Attribute paramAttr, bool emitErrors = true);
41 #define GET_ATTRDEF_CLASSES
42 #include "circt/Dialect/HW/HWAttributes.h.inc"
mlir::FailureOr< mlir::TypedAttr > evaluateParametricAttr(mlir::Location loc, mlir::ArrayAttr parameters, mlir::Attribute paramAttr, bool emitErrors=true)
Evaluates a parametric attribute (param.decl.ref/param.expr) based on a set of provided parameter val...
enum PEO uint32_t mlir::FailureOr< mlir::Type > evaluateParametricType(mlir::Location loc, mlir::ArrayAttr parameters, mlir::Type type, bool emitErrors=true)
Returns a resolved version of 'type' wherein any parameter reference has been evaluated based on the ...
bool isParametricType(mlir::Type t)
Returns true if any part of t is parametric.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.