MLIR  20.0.0git
Functions
AttrTypeSubElements.cpp File Reference
#include "mlir/IR/Operation.h"
#include <optional>

Go to the source code of this file.

Functions

template<typename T , typename Replacer >
static void updateSubElementImpl (T element, Replacer &replacer, SmallVectorImpl< T > &newElements, FailureOr< bool > &changed)
 
template<typename T , typename Replacer >
static T replaceSubElements (T interface, Replacer &replacer)
 
template<typename T , typename ReplaceFns , typename Replacer >
static T replaceElementImpl (T element, ReplaceFns &replaceFns, Replacer &replacer)
 Shared implementation of replacing a given attribute or type element. More...
 

Function Documentation

◆ replaceElementImpl()

template<typename T , typename ReplaceFns , typename Replacer >
static T replaceElementImpl ( element,
ReplaceFns &  replaceFns,
Replacer &  replacer 
)
static

Shared implementation of replacing a given attribute or type element.

Definition at line 193 of file AttrTypeSubElements.cpp.

References mlir::WalkResult::advance(), replaceSubElements(), mlir::WalkResult::wasInterrupted(), and mlir::WalkResult::wasSkipped().

Referenced by mlir::detail::AttrTypeReplacerBase< Concrete >::replaceBase().

◆ replaceSubElements()

template<typename T , typename Replacer >
static T replaceSubElements ( interface,
Replacer &  replacer 
)
static

Definition at line 169 of file AttrTypeSubElements.cpp.

References mlir::changed, and updateSubElementImpl().

Referenced by replaceElementImpl().

◆ updateSubElementImpl()

template<typename T , typename Replacer >
static void updateSubElementImpl ( element,
Replacer &  replacer,
SmallVectorImpl< T > &  newElements,
FailureOr< bool > &  changed 
)
static

Definition at line 145 of file AttrTypeSubElements.cpp.

Referenced by replaceSubElements().