MLIR 22.0.0git
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.

Function Documentation

◆ replaceElementImpl()

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

◆ replaceSubElements()

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

Definition at line 169 of file AttrTypeSubElements.cpp.

References mlir::changed, result, and updateSubElementImpl().

Referenced by replaceElementImpl().

◆ updateSubElementImpl()

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

Definition at line 145 of file AttrTypeSubElements.cpp.

Referenced by replaceSubElements().