|
MLIR 22.0.0git
|
#include "mlir/Interfaces/FunctionInterfaces.h"#include "mlir/Interfaces/FunctionInterfaces.cpp.inc"Go to the source code of this file.
Functions | |
| static bool | isEmptyAttrDict (Attribute attr) |
| template<bool isArg> | |
| static ArrayAttr | getArgResAttrs (FunctionOpInterface op) |
| Get either the argument or result attributes array. | |
| template<bool isArg> | |
| static void | setArgResAttrs (FunctionOpInterface op, ArrayAttr attrs) |
| Set either the argument or result attributes array. | |
| template<bool isArg> | |
| static void | removeArgResAttrs (FunctionOpInterface op) |
| Erase either the argument or result attributes array. | |
| template<bool isArg> | |
| static void | setAllArgResAttrDicts (FunctionOpInterface op, ArrayRef< Attribute > attrs) |
| Set all of the argument or result attribute dictionaries for a function. | |
| template<bool isArg> | |
| static void | setArgResAttrDict (FunctionOpInterface op, unsigned numTotalIndices, unsigned index, DictionaryAttr attrs) |
| Update the given index into an argument or result attribute dictionary. | |
Get either the argument or result attributes array.
Definition at line 59 of file FunctionInterfaces.cpp.
References ArrayAttr().
Referenced by setArgResAttrDict(), and mlir::function_interface_impl::setFunctionType().
Definition at line 23 of file FunctionInterfaces.cpp.
Referenced by setAllArgResAttrDicts(), and setArgResAttrDict().
Erase either the argument or result attributes array.
Definition at line 77 of file FunctionInterfaces.cpp.
Referenced by setAllArgResAttrDicts(), setArgResAttrDict(), and mlir::function_interface_impl::setFunctionType().
|
static |
Set all of the argument or result attribute dictionaries for a function.
Definition at line 86 of file FunctionInterfaces.cpp.
References isEmptyAttrDict(), removeArgResAttrs(), and setArgResAttrs().
Referenced by mlir::function_interface_impl::setAllArgAttrDicts(), mlir::function_interface_impl::setAllResultAttrDicts(), and mlir::function_interface_impl::setFunctionType().
|
static |
Update the given index into an argument or result attribute dictionary.
Definition at line 122 of file FunctionInterfaces.cpp.
References ArrayAttr(), getArgResAttrs(), isEmptyAttrDict(), removeArgResAttrs(), and setArgResAttrs().
Referenced by mlir::function_interface_impl::setArgAttrs(), mlir::function_interface_impl::setArgAttrs(), mlir::function_interface_impl::setResultAttrs(), and mlir::function_interface_impl::setResultAttrs().
Set either the argument or result attributes array.
Definition at line 68 of file FunctionInterfaces.cpp.
References ArrayAttr().
Referenced by setAllArgResAttrDicts(), and setArgResAttrDict().