MLIR  16.0.0git
Classes | Namespaces | Typedefs | Functions | Variables
SubElementInterfaces.h File Reference
#include "mlir/IR/Attributes.h"
#include "mlir/IR/Types.h"
#include "mlir/IR/Visitors.h"
#include "mlir/IR/SubElementAttrInterfaces.h.inc"
#include "mlir/IR/SubElementTypeInterfaces.h.inc"
+ Include dependency graph for SubElementInterfaces.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mlir::AttrTypeReplacer
 AttrTypeReplacer. More...
 
class  mlir::AttrTypeSubElementWalker
 AttrTypeSubElementHandler. More...
 
class  mlir::AttrTypeSubElementReplacements< T >
 This class is used by AttrTypeSubElementHandler instances to process sub element replacements. More...
 
struct  mlir::AttrTypeSubElementHandler< T, Enable >
 This class provides support for interacting with the SubElementInterfaces for different types of parameters. More...
 
struct  mlir::AttrTypeSubElementHandler< T, std::enable_if_t< std::is_base_of_v< Attribute, T >||std::is_base_of_v< Type, T > > >
 Implementation for derived Attributes and Types. More...
 
struct  mlir::AttrTypeSubElementHandler< NamedAttribute >
 
struct  mlir::AttrTypeSubElementHandler< ArrayRef< T >, std::enable_if_t< has_sub_attr_or_type_v< T > > >
 Implementation for derived ArrayRef. More...
 
struct  mlir::AttrTypeSubElementHandler< std::tuple< Ts... >, std::enable_if_t< has_sub_attr_or_type_v< Ts... > > >
 Implementation for Tuple. More...
 
struct  mlir::detail::is_tuple< T >
 
struct  mlir::detail::is_tuple< std::tuple< Ts... > >
 

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::detail
 Detect if any of the given parameter types has a sub-element handler.
 

Typedefs

using mlir::AttrSubElementReplacements = AttrTypeSubElementReplacements< Attribute >
 
using mlir::TypeSubElementReplacements = AttrTypeSubElementReplacements< Type >
 
template<typename T >
using mlir::detail::has_default_sub_element_handler_t = decltype(T::DefaultHandlerTag)
 
template<typename T , typename... Ts>
using mlir::detail::has_get_method = decltype(T::get(std::declval< Ts >()...))
 

Functions

template<typename T >
void mlir::detail::walkImmediateSubElementsImpl (T derived, function_ref< void(Attribute)> walkAttrsFn, function_ref< void(Type)> walkTypesFn)
 This function provides the underlying implementation for the SubElementInterface walk method, using the key type of the derived attribute/type to interact with the individual parameters. More...
 
template<typename T , typename... Ts>
mlir::detail::constructSubElementReplacement (MLIRContext *ctx, Ts &&...params)
 This function invokes the proper get method for a type T with the given values. More...
 
template<typename T >
mlir::detail::replaceImmediateSubElementsImpl (T derived, ArrayRef< Attribute > &replAttrs, ArrayRef< Type > &replTypes)
 This function provides the underlying implementation for the SubElementInterface replace method, using the key type of the derived attribute/type to interact with the individual parameters. More...
 

Variables

template<typename... Ts>
constexpr bool mlir::has_sub_attr_or_type_v