MLIR
20.0.0git
|
#include "mlir/TableGen/Predicate.h"
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) |
Definition at line 34 of file Predicate.h.
|
inlineexplicit |
Definition at line 37 of file Predicate.h.
|
explicit |
Definition at line 25 of file Predicate.cpp.
References def.
|
explicit |
Definition at line 31 of file Predicate.cpp.
References def.
std::string Pred::getCondition | ( | ) | const |
Definition at line 36 of file Predicate.cpp.
References def, and mlir::tblgen::CPred::getConditionImpl().
Referenced by buildPredicateTree(), and mlir::tblgen::Constraint::getConditionTemplate().
|
inline |
ArrayRef< SMLoc > Pred::getLoc | ( | ) | const |
Definition at line 49 of file Predicate.cpp.
References def.
bool Pred::isCombined | ( | ) | const |
Definition at line 45 of file Predicate.cpp.
References def.
Referenced by buildPredicateTree(), and getPredCombinerKind().
|
inline |
Definition at line 46 of file Predicate.h.
References def.
Referenced by mlir::tblgen::CPred::getConditionImpl(), and mlir::tblgen::NamedTypeConstraint::hasPredicate().
|
inline |
Definition at line 63 of file Predicate.h.
References def.
|
inline |
Definition at line 60 of file Predicate.h.
References def.
|
friend |
Definition at line 66 of file Predicate.h.
|
protected |
Definition at line 75 of file Predicate.h.
Referenced by mlir::tblgen::CombinedPred::CombinedPred(), mlir::tblgen::CPred::CPred(), mlir::tblgen::CombinedPred::getChildren(), mlir::tblgen::CombinedPred::getCombinerDef(), getCondition(), mlir::tblgen::CPred::getConditionImpl(), getDef(), getLoc(), mlir::tblgen::SubstLeavesPred::getPattern(), mlir::tblgen::ConcatPred::getPrefix(), mlir::tblgen::SubstLeavesPred::getReplacement(), mlir::tblgen::ConcatPred::getSuffix(), isCombined(), isNull(), operator bool(), operator==(), and Pred().