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.
References Condition, OriginalOp, and Type.
|
inlinestatic |
Definition at line 98 of file PredicateInfo.h.
References PB(), PredicateBase(), 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 llvm::cast(), Condition, llvm::dyn_cast(), llvm::ConstantInt::getFalse(), llvm::CmpInst::getInversePredicate(), llvm::Constant::getNullValue(), llvm::ConstantInt::getTrue(), 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, RenamedOp, and Type.
|
delete |
References PredicateBase().
Value* llvm::PredicateBase::Condition |
Definition at line 93 of file PredicateInfo.h.
Referenced by getConstraint(), llvm::PredicateAssume::PredicateAssume(), PredicateBase(), and llvm::PredicateBranch::PredicateBranch().
Value* llvm::PredicateBase::OriginalOp |
Definition at line 87 of file PredicateInfo.h.
Referenced by PredicateBase().
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.
Referenced by getConstraint(), and PredicateBase().