MLIR  20.0.0git
Public Member Functions | Protected Attributes | Friends | List of all members
mlir::tblgen::Pred Class Reference

#include "mlir/TableGen/Predicate.h"

+ Inheritance diagram for mlir::tblgen::Pred:

Public Member Functions

 Pred ()
 
 Pred (const llvm::Record *record)
 
 Pred (const llvm::Init *init)
 
bool isNull () const
 
std::string getCondition () const
 
bool isCombined () const
 
ArrayRef< SMLoc > getLoc () const
 
bool operator== (const Pred &other) const
 
 operator bool () const
 
const llvm::Record & getDef () const
 Return the underlying def. More...
 

Protected Attributes

const llvm::Record * def {nullptr}
 

Friends

llvm::hash_code hash_value (Pred pred)
 

Detailed Description

Definition at line 34 of file Predicate.h.

Constructor & Destructor Documentation

◆ Pred() [1/3]

mlir::tblgen::Pred::Pred ( )
inlineexplicit

Definition at line 37 of file Predicate.h.

◆ Pred() [2/3]

mlir::tblgen::Pred::Pred ( const llvm::Record *  record)
explicit

◆ Pred() [3/3]

mlir::tblgen::Pred::Pred ( const llvm::Init *  init)
explicit

Member Function Documentation

◆ getCondition()

std::string Pred::getCondition ( ) const

◆ getDef()

const llvm::Record& mlir::tblgen::Pred::getDef ( ) const
inline

Return the underlying def.

Definition at line 71 of file Predicate.h.

References def.

◆ getLoc()

ArrayRef< SMLoc > Pred::getLoc ( ) const

Definition at line 52 of file Predicate.cpp.

References def.

◆ isCombined()

bool Pred::isCombined ( ) const

Definition at line 48 of file Predicate.cpp.

References def.

Referenced by buildPredicateTree(), and getPredCombinerKind().

◆ isNull()

bool mlir::tblgen::Pred::isNull ( ) const
inline

◆ operator bool()

mlir::tblgen::Pred::operator bool ( ) const
inline

Definition at line 63 of file Predicate.h.

References def.

◆ operator==()

bool mlir::tblgen::Pred::operator== ( const Pred other) const
inline

Definition at line 60 of file Predicate.h.

References def.

Friends And Related Function Documentation

◆ hash_value

llvm::hash_code hash_value ( Pred  pred)
friend

Definition at line 66 of file Predicate.h.

Member Data Documentation

◆ def

const llvm::Record* mlir::tblgen::Pred::def {nullptr}
protected

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