|
CIRCT 22.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. | |
| void | printModuleSignature (OpAsmPrinter &p, Operation *op, ArrayRef< Type > argTypes, bool isVariadic, ArrayRef< Type > resultTypes, bool &needArgNamesAttr) |
| Print a module signature with named results. | |
| ParseResult | parseModuleSignature (OpAsmParser &parser, SmallVectorImpl< PortParse > &args, TypeAttr &modType) |
| New Style parsing. | |
| void | printModuleSignatureNew (OpAsmPrinter &p, Region &body, hw::ModuleType modType, ArrayRef< Attribute > portAttrs, ArrayRef< Location > locAttrs) |
| void | printModuleSignatureNew (OpAsmPrinter &p, HWModuleLike op) |
| void | getAsmBlockArgumentNamesImpl (mlir::Region ®ion, OpAsmSetValueNameFn setNameFn) |
| Get a special name to use when printing the entry block arguments of the region contained by an operation in this dialect. | |
| SmallVector< Location > | getAllPortLocsImpl (hw::ModuleType modType) |
| SmallVector< Location > circt::hw::module_like_impl::getAllPortLocsImpl | ( | hw::ModuleType | modType | ) |
| void circt::hw::module_like_impl::getAsmBlockArgumentNamesImpl | ( | mlir::Region & | region, |
| OpAsmSetValueNameFn | setNameFn | ||
| ) |
Get a special name to use when printing the entry block arguments of the region contained by an operation in this dialect.
Definition at line 456 of file ModuleImplementation.cpp.
| 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::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::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, |
| HWModuleLike | op | ||
| ) |
| void circt::hw::module_like_impl::printModuleSignatureNew | ( | OpAsmPrinter & | p, |
| Region & | body, | ||
| hw::ModuleType | modType, | ||
| ArrayRef< Attribute > | portAttrs, | ||
| ArrayRef< Location > | locAttrs | ||
| ) |
Definition at line 401 of file ModuleImplementation.cpp.
References directionAsString().
Referenced by printModuleOp().