MLIR
17.0.0git
|
The class represents a list of PDL results, returned by a native rewrite method. More...
#include "mlir/IR/PatternMatch.h"
Public Member Functions | |
void | push_back (Attribute value) |
Push a new Attribute value onto the result list. More... | |
void | push_back (Operation *value) |
Push a new Operation onto the result list. More... | |
void | push_back (Type value) |
Push a new Type onto the result list. More... | |
void | push_back (TypeRange value) |
Push a new TypeRange onto the result list. More... | |
void | push_back (ValueTypeRange< OperandRange > value) |
void | push_back (ValueTypeRange< ResultRange > value) |
void | push_back (Value value) |
Push a new Value onto the result list. More... | |
void | push_back (ValueRange value) |
Push a new ValueRange onto the result list. More... | |
void | push_back (OperandRange value) |
void | push_back (ResultRange value) |
Protected Member Functions | |
PDLResultList (unsigned maxNumResults) | |
Create a new result list with the expected number of results. More... | |
Protected Attributes | |
SmallVector< PDLValue > | results |
The PDL results held by this list. More... | |
SmallVector< TypeRange > | typeRanges |
Memory used to store ranges held by the list. More... | |
SmallVector< ValueRange > | valueRanges |
SmallVector< llvm::OwningArrayRef< Type > > | allocatedTypeRanges |
Memory allocated to store ranges in the result list whose lifetime was generated in the native function. More... | |
SmallVector< llvm::OwningArrayRef< Value > > | allocatedValueRanges |
The class represents a list of PDL results, returned by a native rewrite method.
It provides the mechanism with which to pass PDLValues back to the PDL bytecode.
Definition at line 832 of file PatternMatch.h.
|
inlineprotected |
Create a new result list with the expected number of results.
Definition at line 886 of file PatternMatch.h.
References typeRanges, and valueRanges.
|
inline |
Push a new Attribute value onto the result list.
Definition at line 835 of file PatternMatch.h.
References results.
Referenced by mlir::detail::pdl_function_builder::ProcessPDLValue< OperandRange >::processAsResult(), mlir::detail::pdl_function_builder::ProcessPDLValue< ResultRange >::processAsResult(), mlir::detail::pdl_function_builder::ProcessPDLValue< SmallVector< Type, N > >::processAsResult(), mlir::detail::pdl_function_builder::ProcessPDLValue< SmallVector< Value, N > >::processAsResult(), mlir::detail::pdl_function_builder::ProcessBuiltinPDLValue< T >::processAsResult(), mlir::detail::pdl_function_builder::ProcessDerivedPDLValue< T, BaseT >::processAsResult(), mlir::detail::pdl_function_builder::ProcessPDLValue< ValueTypeRange< OperandRange > >::processAsResult(), mlir::detail::pdl_function_builder::ProcessPDLValue< ValueTypeRange< ResultRange > >::processAsResult(), mlir::detail::pdl_function_builder::ProcessPDLValue< StringRef >::processAsResult(), and mlir::detail::pdl_function_builder::ProcessPDLValue< std::string >::processAsResult().
|
inline |
Definition at line 875 of file PatternMatch.h.
References results, and valueRanges.
|
inline |
Push a new Operation onto the result list.
Definition at line 838 of file PatternMatch.h.
References results.
|
inline |
Definition at line 879 of file PatternMatch.h.
References results, and valueRanges.
|
inline |
Push a new Type onto the result list.
Definition at line 841 of file PatternMatch.h.
References results.
|
inline |
Push a new TypeRange onto the result list.
Definition at line 844 of file PatternMatch.h.
References allocatedTypeRanges, copy(), results, and typeRanges.
|
inline |
Push a new Value onto the result list.
Definition at line 863 of file PatternMatch.h.
References results.
|
inline |
Push a new ValueRange onto the result list.
Definition at line 866 of file PatternMatch.h.
References allocatedValueRanges, copy(), results, and valueRanges.
|
inline |
Definition at line 853 of file PatternMatch.h.
References results, and typeRanges.
|
inline |
Definition at line 857 of file PatternMatch.h.
References results, and typeRanges.
|
protected |
Memory allocated to store ranges in the result list whose lifetime was generated in the native function.
Definition at line 901 of file PatternMatch.h.
Referenced by push_back().
|
protected |
Definition at line 902 of file PatternMatch.h.
Referenced by push_back().
|
protected |
The PDL results held by this list.
Definition at line 895 of file PatternMatch.h.
Referenced by push_back().
|
protected |
Memory used to store ranges held by the list.
Definition at line 897 of file PatternMatch.h.
Referenced by PDLResultList(), and push_back().
|
protected |
Definition at line 898 of file PatternMatch.h.
Referenced by PDLResultList(), and push_back().