MLIR  20.0.0git
Namespaces | Functions
FunctionInterfaces.h File Reference
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/OpDefinition.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/Interfaces/CallInterfaces.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/SmallString.h"
#include "mlir/Interfaces/FunctionInterfaces.h.inc"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::function_interface_impl
 

Functions

DictionaryAttr mlir::function_interface_impl::getArgAttrDict (FunctionOpInterface op, unsigned index)
 Returns the dictionary attribute corresponding to the argument at 'index'. More...
 
DictionaryAttr mlir::function_interface_impl::getResultAttrDict (FunctionOpInterface op, unsigned index)
 Returns the dictionary attribute corresponding to the result at 'index'. More...
 
ArrayRef< NamedAttributemlir::function_interface_impl::getArgAttrs (FunctionOpInterface op, unsigned index)
 Return all of the attributes for the argument at 'index'. More...
 
ArrayRef< NamedAttributemlir::function_interface_impl::getResultAttrs (FunctionOpInterface op, unsigned index)
 Return all of the attributes for the result at 'index'. More...
 
void mlir::function_interface_impl::setAllArgAttrDicts (FunctionOpInterface op, ArrayRef< DictionaryAttr > attrs)
 Set all of the argument or result attribute dictionaries for a function. More...
 
void mlir::function_interface_impl::setAllArgAttrDicts (FunctionOpInterface op, ArrayRef< Attribute > attrs)
 
void mlir::function_interface_impl::setAllResultAttrDicts (FunctionOpInterface op, ArrayRef< DictionaryAttr > attrs)
 
void mlir::function_interface_impl::setAllResultAttrDicts (FunctionOpInterface op, ArrayRef< Attribute > attrs)
 
void mlir::function_interface_impl::insertFunctionArguments (FunctionOpInterface op, ArrayRef< unsigned > argIndices, TypeRange argTypes, ArrayRef< DictionaryAttr > argAttrs, ArrayRef< Location > argLocs, unsigned originalNumArgs, Type newType)
 Insert the specified arguments and update the function type attribute. More...
 
void mlir::function_interface_impl::insertFunctionResults (FunctionOpInterface op, ArrayRef< unsigned > resultIndices, TypeRange resultTypes, ArrayRef< DictionaryAttr > resultAttrs, unsigned originalNumResults, Type newType)
 Insert the specified results and update the function type attribute. More...
 
void mlir::function_interface_impl::eraseFunctionArguments (FunctionOpInterface op, const BitVector &argIndices, Type newType)
 Erase the specified arguments and update the function type attribute. More...
 
void mlir::function_interface_impl::eraseFunctionResults (FunctionOpInterface op, const BitVector &resultIndices, Type newType)
 Erase the specified results and update the function type attribute. More...
 
void mlir::function_interface_impl::setFunctionType (FunctionOpInterface op, Type newType)
 Set a FunctionOpInterface operation's type signature. More...
 
void mlir::function_interface_impl::setArgAttrs (FunctionOpInterface op, unsigned index, ArrayRef< NamedAttribute > attributes)
 Set the attributes held by the argument at 'index'. More...
 
void mlir::function_interface_impl::setArgAttrs (FunctionOpInterface op, unsigned index, DictionaryAttr attributes)
 
template<typename ConcreteType >
void mlir::function_interface_impl::setArgAttr (ConcreteType op, unsigned index, StringAttr name, Attribute value)
 If the an attribute exists with the specified name, change it to the new value. More...
 
template<typename ConcreteType >
Attribute mlir::function_interface_impl::removeArgAttr (ConcreteType op, unsigned index, StringAttr name)
 Remove the attribute 'name' from the argument at 'index'. More...
 
void mlir::function_interface_impl::setResultAttrs (FunctionOpInterface op, unsigned index, ArrayRef< NamedAttribute > attributes)
 Set the attributes held by the result at 'index'. More...
 
void mlir::function_interface_impl::setResultAttrs (FunctionOpInterface op, unsigned index, DictionaryAttr attributes)
 
template<typename ConcreteType >
void mlir::function_interface_impl::setResultAttr (ConcreteType op, unsigned index, StringAttr name, Attribute value)
 If the an attribute exists with the specified name, change it to the new value. More...
 
template<typename ConcreteType >
Attribute mlir::function_interface_impl::removeResultAttr (ConcreteType op, unsigned index, StringAttr name)
 Remove the attribute 'name' from the result at 'index'. More...
 
template<typename ConcreteOp >
LogicalResult mlir::function_interface_impl::verifyTrait (ConcreteOp op)
 This function defines the internal implementation of the verifyTrait method on FunctionOpInterface::Trait. More...