13 #ifndef CIRCT_DIALECT_HW_CUSTOMDIRECTIVEIMPL_H
14 #define CIRCT_DIALECT_HW_CUSTOMDIRECTIVEIMPL_H
17 #include "mlir/IR/Builders.h"
18 #include "mlir/IR/OpImplementation.h"
31 SmallVectorImpl<OpAsmParser::UnresolvedOperand> &inputs,
32 SmallVectorImpl<Type> &inputTypes, ArrayAttr &inputNames);
36 TypeRange inputTypes, ArrayAttr inputNames);
46 SmallVectorImpl<Type> &resultTypes,
47 ArrayAttr &resultNames);
51 ArrayAttr resultNames);
62 ArrayAttr ¶meters);
66 ArrayAttr parameters);
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
ParseResult parseInputPortList(OpAsmParser &parser, SmallVectorImpl< OpAsmParser::UnresolvedOperand > &inputs, SmallVectorImpl< Type > &inputTypes, ArrayAttr &inputNames)
Parse a list of instance input ports.
void printOutputPortList(OpAsmPrinter &p, Operation *op, TypeRange resultTypes, ArrayAttr resultNames)
Print a list of instance output ports.
ParseResult parseOptionalParameterList(OpAsmParser &parser, ArrayAttr ¶meters)
Parse an parameter list if present.
void printOptionalParameterList(OpAsmPrinter &p, Operation *op, ArrayAttr parameters)
Print a parameter list for a module or instance.
void printInputPortList(OpAsmPrinter &p, Operation *op, OperandRange inputs, TypeRange inputTypes, ArrayAttr inputNames)
Print a list of instance input ports.
ParseResult parseOutputPortList(OpAsmParser &parser, SmallVectorImpl< Type > &resultTypes, ArrayAttr &resultNames)
Parse a list of instance output ports.