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

Apply a parameterized constraint to multiple position values and possibly produce results. More...

#include "Conversion/PDLToPDLInterp/Predicate.h"

+ Inheritance diagram for mlir::pdl_to_pdl_interp::ConstraintQuestion:

Public Member Functions

StringRef getName () const
 Return the name of the constraint. More...
 
ArrayRef< Position * > getArgs () const
 Return the arguments of the constraint. More...
 
ArrayRef< TypegetResultTypes () const
 Return the result types of the constraint. More...
 
bool getIsNegated () const
 Return the negation status of the constraint. More...
 
- Public Member Functions inherited from mlir::pdl_to_pdl_interp::PredicateBase< ConstraintQuestion, Qualifier, std::tuple< StringRef, ArrayRef< Position * >, ArrayRef< Type >, bool >, Predicates::ConstraintQuestion >
 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::Qualifier
 Qualifier (Predicates::Kind kind)
 
Predicates::Kind getKind () const
 Returns the kind of this qualifier. More...
 

Static Public Member Functions

static ConstraintQuestionconstruct (StorageUniquer::StorageAllocator &alloc, KeyTy key)
 Construct an instance with the given storage allocator. More...
 
static llvm::hash_code hashKey (const KeyTy &key)
 Returns a hash suitable for the given keytype. More...
 
- Static Public Member Functions inherited from mlir::pdl_to_pdl_interp::PredicateBase< ConstraintQuestion, Qualifier, std::tuple< StringRef, ArrayRef< Position * >, ArrayRef< Type >, bool >, Predicates::ConstraintQuestion >
static ConstraintQuestionget (StorageUniquer &uniquer, Args &&...args)
 Get an instance of this position. More...
 
static ConstraintQuestionconstruct (StorageUniquer::StorageAllocator &alloc, KeyT &&key)
 Construct an instance with the given storage allocator. More...
 
static bool classof (const Qualifier *pred)
 

Additional Inherited Members

- Public Types inherited from mlir::pdl_to_pdl_interp::PredicateBase< ConstraintQuestion, Qualifier, std::tuple< StringRef, ArrayRef< Position * >, ArrayRef< Type >, bool >, Predicates::ConstraintQuestion >
using KeyTy = std::tuple< StringRef, ArrayRef< Position * >, ArrayRef< Type >, bool >
 
using Base = PredicateBase< ConstraintQuestion, Qualifier, std::tuple< StringRef, ArrayRef< Position * >, ArrayRef< Type >, bool >, Kind >
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()=default
 
- Protected Attributes inherited from mlir::pdl_to_pdl_interp::PredicateBase< ConstraintQuestion, Qualifier, std::tuple< StringRef, ArrayRef< Position * >, ArrayRef< Type >, bool >, Predicates::ConstraintQuestion >
KeyTy key
 

Detailed Description

Apply a parameterized constraint to multiple position values and possibly produce results.

Definition at line 475 of file Predicate.h.

Member Function Documentation

◆ construct()

static ConstraintQuestion* mlir::pdl_to_pdl_interp::ConstraintQuestion::construct ( StorageUniquer::StorageAllocator alloc,
KeyTy  key 
)
inlinestatic

◆ getArgs()

ArrayRef<Position *> mlir::pdl_to_pdl_interp::ConstraintQuestion::getArgs ( ) const
inline

◆ getIsNegated()

bool mlir::pdl_to_pdl_interp::ConstraintQuestion::getIsNegated ( ) const
inline

◆ getName()

StringRef mlir::pdl_to_pdl_interp::ConstraintQuestion::getName ( ) const
inline

◆ getResultTypes()

ArrayRef<Type> mlir::pdl_to_pdl_interp::ConstraintQuestion::getResultTypes ( ) const
inline

◆ hashKey()

static llvm::hash_code mlir::pdl_to_pdl_interp::ConstraintQuestion::hashKey ( const KeyTy key)
inlinestatic

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