MLIR 22.0.0git
FunctionImplementation.h File Reference

Go to the source code of this file.

Classes

class  mlir::function_interface_impl::VariadicFlag
 A named class for passing around the variadic flag. More...

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::function_interface_impl

Typedefs

using mlir::function_interface_impl::FuncTypeBuilder
 Callback type for parseFunctionOp, the callback should produce the type that will be associated with a function-like operation from lists of function arguments and results, VariadicFlag indicates whether the function should have variadic arguments; in case of error, it may populate the last argument with a message.

Functions

ParseResult mlir::function_interface_impl::parseFunctionSignatureWithArguments (OpAsmParser &parser, bool allowVariadic, SmallVectorImpl< OpAsmParser::Argument > &arguments, bool &isVariadic, SmallVectorImpl< Type > &resultTypes, SmallVectorImpl< DictionaryAttr > &resultAttrs)
 Parses a function signature using parser.
ParseResult mlir::function_interface_impl::parseFunctionOp (OpAsmParser &parser, OperationState &result, bool allowVariadic, StringAttr typeAttrName, FuncTypeBuilder funcTypeBuilder, StringAttr argAttrsName, StringAttr resAttrsName)
 Parser implementation for function-like operations.
void mlir::function_interface_impl::printFunctionOp (OpAsmPrinter &p, FunctionOpInterface op, bool isVariadic, StringRef typeAttrName, StringAttr argAttrsName, StringAttr resAttrsName)
 Printer implementation for function-like operations.
void mlir::function_interface_impl::printFunctionSignature (OpAsmPrinter &p, FunctionOpInterface op, ArrayRef< Type > argTypes, bool isVariadic, ArrayRef< Type > resultTypes)
 Prints the signature of the function-like operation op.
void mlir::function_interface_impl::printFunctionAttributes (OpAsmPrinter &p, Operation *op, ArrayRef< StringRef > elided={})
 Prints the list of function prefixed with the "attributes" keyword.