CIRCT
18.0.0git
|
Classes | |
struct | PortParse |
Functions | |
ParseResult | parseModuleFunctionSignature (OpAsmParser &parser, bool &isVariadic, SmallVectorImpl< OpAsmParser::Argument > &args, SmallVectorImpl< Attribute > &argNames, SmallVectorImpl< Attribute > &argLocs, SmallVectorImpl< Attribute > &resultNames, SmallVectorImpl< DictionaryAttr > &resultAttrs, SmallVectorImpl< Attribute > &resultLocs, TypeAttr &type) |
This is a variant of mlir::parseFunctionSignature that allows names on result arguments. More... | |
void | printModuleSignature (OpAsmPrinter &p, Operation *op, ArrayRef< Type > argTypes, bool isVariadic, ArrayRef< Type > resultTypes, bool &needArgNamesAttr) |
Print a module signature with named results. More... | |
ParseResult | parseModuleSignature (OpAsmParser &parser, SmallVectorImpl< PortParse > &args, TypeAttr &modType) |
New Style parsing. More... | |
void | printModuleSignatureNew (OpAsmPrinter &p, Operation *op) |
ParseResult circt::hw::module_like_impl::parseModuleFunctionSignature | ( | OpAsmParser & | parser, |
bool & | isVariadic, | ||
SmallVectorImpl< OpAsmParser::Argument > & | args, | ||
SmallVectorImpl< Attribute > & | argNames, | ||
SmallVectorImpl< Attribute > & | argLocs, | ||
SmallVectorImpl< Attribute > & | resultNames, | ||
SmallVectorImpl< DictionaryAttr > & | resultAttrs, | ||
SmallVectorImpl< Attribute > & | resultLocs, | ||
TypeAttr & | type | ||
) |
This is a variant of mlir::parseFunctionSignature that allows names on result arguments.
Definition at line 202 of file ModuleImplementation.cpp.
References circt::calyx::direction::get(), circt::parsing_util::getNameFromSSA(), and parseFunctionResultList().
ParseResult circt::hw::module_like_impl::parseModuleSignature | ( | OpAsmParser & | parser, |
SmallVectorImpl< PortParse > & | args, | ||
TypeAttr & | modType | ||
) |
New Style parsing.
Definition at line 358 of file ModuleImplementation.cpp.
References circt::calyx::direction::get(), circt::hw::ModulePort::InOut, and parsePortList().
Referenced by parseHWModuleOp().
void circt::hw::module_like_impl::printModuleSignature | ( | OpAsmPrinter & | p, |
Operation * | op, | ||
ArrayRef< Type > | argTypes, | ||
bool | isVariadic, | ||
ArrayRef< Type > | resultTypes, | ||
bool & | needArgNamesAttr | ||
) |
Print a module signature with named results.
Definition at line 98 of file ModuleImplementation.cpp.
References getModuleArgumentName(), and getModuleResultName().
void circt::hw::module_like_impl::printModuleSignatureNew | ( | OpAsmPrinter & | p, |
Operation * | op | ||
) |
Definition at line 395 of file ModuleImplementation.cpp.
References directionAsString(), and Output.
Referenced by printModuleOp().