MLIR 23.0.0git
mlir::transform::ApplyToEachResultList Class Reference

A list of results of applying a transform op with ApplyEachOpTrait to a single payload operation, co-indexed with the results of the transform op. More...

#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"

Public Member Functions

 ApplyToEachResultList ()=default
 ApplyToEachResultList (unsigned size)
void assign (unsigned size, std::nullptr_t)
 Sets the list of results to size null pointers.
template<typename Range>
void assign (Range &&range)
 Sets the list of results to the given range of values.
void push_back (Operation *op)
 Appends an element to the list.
void push_back (Attribute attr)
void push_back (ApplyToEachResult r)
void reserve (unsigned size)
 Reserves space for size elements in the list.
auto begin ()
 Iterators over the list.
auto end ()
auto begin () const
auto end () const
size_t size () const
 Returns the number of elements in the list.
ApplyToEachResultoperator[] (size_t index)
 Element access. Expects the index to be in bounds.
const ApplyToEachResultoperator[] (size_t index) const

Detailed Description

A list of results of applying a transform op with ApplyEachOpTrait to a single payload operation, co-indexed with the results of the transform op.

Definition at line 1428 of file TransformInterfaces.h.

Constructor & Destructor Documentation

◆ ApplyToEachResultList() [1/2]

mlir::transform::ApplyToEachResultList::ApplyToEachResultList ( )
default

◆ ApplyToEachResultList() [2/2]

mlir::transform::ApplyToEachResultList::ApplyToEachResultList ( unsigned size)
inlineexplicit

Definition at line 1431 of file TransformInterfaces.h.

References size().

Member Function Documentation

◆ assign() [1/2]

template<typename Range>
void mlir::transform::ApplyToEachResultList::assign ( Range && range)
inline

Sets the list of results to the given range of values.

Definition at line 1438 of file TransformInterfaces.h.

References mlir::get().

◆ assign() [2/2]

void mlir::transform::ApplyToEachResultList::assign ( unsigned size,
std::nullptr_t  )
inline

Sets the list of results to size null pointers.

Definition at line 1434 of file TransformInterfaces.h.

References size().

◆ begin() [1/2]

auto mlir::transform::ApplyToEachResultList::begin ( )
inline

Iterators over the list.

Definition at line 1469 of file TransformInterfaces.h.

◆ begin() [2/2]

auto mlir::transform::ApplyToEachResultList::begin ( ) const
inline

Definition at line 1471 of file TransformInterfaces.h.

◆ end() [1/2]

auto mlir::transform::ApplyToEachResultList::end ( )
inline

Definition at line 1470 of file TransformInterfaces.h.

◆ end() [2/2]

auto mlir::transform::ApplyToEachResultList::end ( ) const
inline

Definition at line 1472 of file TransformInterfaces.h.

◆ operator[]() [1/2]

ApplyToEachResult & mlir::transform::ApplyToEachResultList::operator[] ( size_t index)
inline

Element access. Expects the index to be in bounds.

Definition at line 1478 of file TransformInterfaces.h.

◆ operator[]() [2/2]

const ApplyToEachResult & mlir::transform::ApplyToEachResultList::operator[] ( size_t index) const
inline

Definition at line 1479 of file TransformInterfaces.h.

◆ push_back() [1/3]

void mlir::transform::ApplyToEachResultList::push_back ( ApplyToEachResult r)
inline

Definition at line 1463 of file TransformInterfaces.h.

◆ push_back() [2/3]

void mlir::transform::ApplyToEachResultList::push_back ( Attribute attr)
inline

Definition at line 1462 of file TransformInterfaces.h.

◆ push_back() [3/3]

void mlir::transform::ApplyToEachResultList::push_back ( Operation * op)
inline

Appends an element to the list.

Definition at line 1461 of file TransformInterfaces.h.

Referenced by doit().

◆ reserve()

void mlir::transform::ApplyToEachResultList::reserve ( unsigned size)
inline

Reserves space for size elements in the list.

Definition at line 1466 of file TransformInterfaces.h.

References size().

Referenced by mlir::transform::detail::applyTransformToEach().

◆ size()

size_t mlir::transform::ApplyToEachResultList::size ( ) const
inline

Returns the number of elements in the list.

Definition at line 1475 of file TransformInterfaces.h.

Referenced by ApplyToEachResultList(), assign(), mlir::transform::detail::checkApplyToOne(), and reserve().


The documentation for this class was generated from the following file: