MLIR  16.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"

+ Collaboration diagram for mlir::PDLResultList:

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 726 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 780 of file PatternMatch.h.

Member Function Documentation

◆ push_back() [1/10]

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

◆ push_back() [2/10]

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

Push a new Operation onto the result list.

Definition at line 732 of file PatternMatch.h.

◆ push_back() [3/10]

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

Push a new Type onto the result list.

Definition at line 735 of file PatternMatch.h.

◆ push_back() [4/10]

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

Push a new TypeRange onto the result list.

Definition at line 738 of file PatternMatch.h.

References copy().

◆ push_back() [5/10]

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

Definition at line 747 of file PatternMatch.h.

◆ push_back() [6/10]

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

Definition at line 751 of file PatternMatch.h.

◆ push_back() [7/10]

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

Push a new Value onto the result list.

Definition at line 757 of file PatternMatch.h.

◆ push_back() [8/10]

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

Push a new ValueRange onto the result list.

Definition at line 760 of file PatternMatch.h.

References copy().

◆ push_back() [9/10]

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

Definition at line 769 of file PatternMatch.h.

◆ push_back() [10/10]

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

Definition at line 773 of file PatternMatch.h.

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 795 of file PatternMatch.h.

◆ allocatedValueRanges

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

Definition at line 796 of file PatternMatch.h.

◆ results

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

The PDL results held by this list.

Definition at line 789 of file PatternMatch.h.

◆ typeRanges

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

Memory used to store ranges held by the list.

Definition at line 791 of file PatternMatch.h.

◆ valueRanges

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

Definition at line 792 of file PatternMatch.h.


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