MLIR  19.0.0git
Public Member Functions | List of all members
mlir::pdl_to_pdl_interp::ForEachPosition Struct Reference

A position describing an iterative choice of an operation. More...

#include "Conversion/PDLToPDLInterp/Predicate.h"

+ Inheritance diagram for mlir::pdl_to_pdl_interp::ForEachPosition:

Public Member Functions

 ForEachPosition (const KeyTy &key)
 
unsigned getID () const
 Returns the ID, for differentiating various loops. More...
 
- Public Member Functions inherited from mlir::pdl_to_pdl_interp::PredicateBase< ForEachPosition, Position, std::pair< Position *, unsigned >, Predicates::ForEachPos >
 PredicateBase (KeyT &&key)
 
bool operator== (const KeyTy &key) const
 Utility methods required by the storage allocator. More...
 
const KeyTygetValue () const
 Return the key value of this predicate. More...
 
- Public Member Functions inherited from mlir::pdl_to_pdl_interp::Position
 Position (Predicates::Kind kind)
 
virtual ~Position ()
 
unsigned getOperationDepth () const
 Returns the depth of the first ancestor operation position. More...
 
PositiongetParent () const
 Returns the parent position. The root operation position has no parent. More...
 
Predicates::Kind getKind () const
 Returns the kind of this position. More...
 

Additional Inherited Members

- Public Types inherited from mlir::pdl_to_pdl_interp::PredicateBase< ForEachPosition, Position, std::pair< Position *, unsigned >, Predicates::ForEachPos >
using KeyTy = std::pair< Position *, unsigned >
 
using Base = PredicateBase< ForEachPosition, Position, std::pair< Position *, unsigned >, Kind >
 
- Static Public Member Functions inherited from mlir::pdl_to_pdl_interp::PredicateBase< ForEachPosition, Position, std::pair< Position *, unsigned >, Predicates::ForEachPos >
static ForEachPositionget (StorageUniquer &uniquer, Args &&...args)
 Get an instance of this position. More...
 
static ForEachPositionconstruct (StorageUniquer::StorageAllocator &alloc, KeyT &&key)
 Construct an instance with the given storage allocator. More...
 
static bool classof (const Position *pred)
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()=default
 
- Protected Attributes inherited from mlir::pdl_to_pdl_interp::PredicateBase< ForEachPosition, Position, std::pair< Position *, unsigned >, Predicates::ForEachPos >
KeyTy key
 
- Protected Attributes inherited from mlir::pdl_to_pdl_interp::Position
Positionparent = nullptr
 Link to the parent position. More...
 

Detailed Description

A position describing an iterative choice of an operation.

Definition at line 195 of file Predicate.h.

Constructor & Destructor Documentation

◆ ForEachPosition()

mlir::pdl_to_pdl_interp::ForEachPosition::ForEachPosition ( const KeyTy key)
inlineexplicit

Member Function Documentation

◆ getID()

unsigned mlir::pdl_to_pdl_interp::ForEachPosition::getID ( ) const
inline

Returns the ID, for differentiating various loops.

For upward traversals, this is the index of the root.

Definition at line 202 of file Predicate.h.

References mlir::pdl_to_pdl_interp::PredicateBase< ForEachPosition, Position, std::pair< Position *, unsigned >, Predicates::ForEachPos >::key.


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