MLIR  17.0.0git
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mlir::PDLResultList Class Reference

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< PDLValueresults
 The PDL results held by this list. More...
 
SmallVector< TypeRangetypeRanges
 Memory used to store ranges held by the list. More...
 
SmallVector< ValueRangevalueRanges
 
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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PDLResultList()

mlir::PDLResultList::PDLResultList ( unsigned  maxNumResults)
inlineprotected

Create a new result list with the expected number of results.

Definition at line 886 of file PatternMatch.h.

References typeRanges, and valueRanges.

Member Function Documentation

◆ push_back() [1/10]

void mlir::PDLResultList::push_back ( Attribute  value)
inline

◆ push_back() [2/10]

void mlir::PDLResultList::push_back ( OperandRange  value)
inline

Definition at line 875 of file PatternMatch.h.

References results, and valueRanges.

◆ push_back() [3/10]

void mlir::PDLResultList::push_back ( Operation value)
inline

Push a new Operation onto the result list.

Definition at line 838 of file PatternMatch.h.

References results.

◆ push_back() [4/10]

void mlir::PDLResultList::push_back ( ResultRange  value)
inline

Definition at line 879 of file PatternMatch.h.

References results, and valueRanges.

◆ push_back() [5/10]

void mlir::PDLResultList::push_back ( Type  value)
inline

Push a new Type onto the result list.

Definition at line 841 of file PatternMatch.h.

References results.

◆ push_back() [6/10]

void mlir::PDLResultList::push_back ( TypeRange  value)
inline

Push a new TypeRange onto the result list.

Definition at line 844 of file PatternMatch.h.

References allocatedTypeRanges, copy(), results, and typeRanges.

◆ push_back() [7/10]

void mlir::PDLResultList::push_back ( Value  value)
inline

Push a new Value onto the result list.

Definition at line 863 of file PatternMatch.h.

References results.

◆ push_back() [8/10]

void mlir::PDLResultList::push_back ( ValueRange  value)
inline

Push a new ValueRange onto the result list.

Definition at line 866 of file PatternMatch.h.

References allocatedValueRanges, copy(), results, and valueRanges.

◆ push_back() [9/10]

void mlir::PDLResultList::push_back ( ValueTypeRange< OperandRange value)
inline

Definition at line 853 of file PatternMatch.h.

References results, and typeRanges.

◆ push_back() [10/10]

void mlir::PDLResultList::push_back ( ValueTypeRange< ResultRange value)
inline

Definition at line 857 of file PatternMatch.h.

References results, and typeRanges.

Member Data Documentation

◆ allocatedTypeRanges

SmallVector<llvm::OwningArrayRef<Type> > mlir::PDLResultList::allocatedTypeRanges
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().

◆ allocatedValueRanges

SmallVector<llvm::OwningArrayRef<Value> > mlir::PDLResultList::allocatedValueRanges
protected

Definition at line 902 of file PatternMatch.h.

Referenced by push_back().

◆ results

SmallVector<PDLValue> mlir::PDLResultList::results
protected

The PDL results held by this list.

Definition at line 895 of file PatternMatch.h.

Referenced by push_back().

◆ typeRanges

SmallVector<TypeRange> mlir::PDLResultList::typeRanges
protected

Memory used to store ranges held by the list.

Definition at line 897 of file PatternMatch.h.

Referenced by PDLResultList(), and push_back().

◆ valueRanges

SmallVector<ValueRange> mlir::PDLResultList::valueRanges
protected

Definition at line 898 of file PatternMatch.h.

Referenced by PDLResultList(), and push_back().


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