LLVM 22.0.0git
|
#include "llvm/Transforms/Utils/PredicateInfo.h"
Public Member Functions | |
PredicateBase (const PredicateBase &)=delete | |
PredicateBase & | operator= (const PredicateBase &)=delete |
PredicateBase ()=delete | |
LLVM_ABI std::optional< PredicateConstraint > | getConstraint () const |
Fetch condition in the form of PredicateConstraint, if possible. | |
Static Public Member Functions | |
static bool | classof (const PredicateBase *PB) |
Public Attributes | |
PredicateType | Type |
Value * | OriginalOp |
Value * | RenamedOp |
Value * | Condition |
Protected Member Functions | |
PredicateBase (PredicateType PT, Value *Op, Value *Condition) | |
Definition at line 81 of file PredicateInfo.h.
|
delete |
|
delete |
|
inlineprotected |
Definition at line 107 of file PredicateInfo.h.
|
inlinestatic |
Definition at line 98 of file PredicateInfo.h.
References PB(), llvm::PT_Assume, llvm::PT_Branch, and llvm::PT_Switch.
std::optional< PredicateConstraint > llvm::PredicateBase::getConstraint | ( | ) | const |
Fetch condition in the form of PredicateConstraint, if possible.
Definition at line 706 of file PredicateInfo.cpp.
References Condition, llvm::ConstantInt::getFalse(), llvm::CmpInst::getInversePredicate(), llvm::Constant::getNullValue(), llvm::ConstantInt::getTrue(), llvm::Value::getType(), llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, llvm_unreachable, llvm::PatternMatch::m_NUWTrunc(), llvm::PatternMatch::m_Specific(), llvm::PatternMatch::match(), llvm::PT_Assume, llvm::PT_Branch, llvm::PT_Switch, and RenamedOp.
|
delete |
Value* llvm::PredicateBase::Condition |
Definition at line 93 of file PredicateInfo.h.
Referenced by getConstraint().
Value* llvm::PredicateBase::OriginalOp |
Definition at line 87 of file PredicateInfo.h.
Value* llvm::PredicateBase::RenamedOp |
Definition at line 91 of file PredicateInfo.h.
Referenced by getConstraint().
PredicateType llvm::PredicateBase::Type |
Definition at line 83 of file PredicateInfo.h.