LLVM 18.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
llvm::PredicateBase Class Reference

#include "llvm/Transforms/Utils/PredicateInfo.h"

Inheritance diagram for llvm::PredicateBase:
Inheritance graph

Public Member Functions

 PredicateBase (const PredicateBase &)=delete
PredicateBaseoperator= (const PredicateBase &)=delete
 PredicateBase ()=delete
virtual ~PredicateBase ()=default
std::optional< PredicateConstraintgetConstraint () const
 Fetch condition in the form of PredicateConstraint, if possible.
- Public Member Functions inherited from llvm::ilist_node_impl< OptionsT >
self_iterator getIterator ()
const_self_iterator getIterator () const
reverse_self_iterator getReverseIterator ()
const_reverse_self_iterator getReverseIterator () const
bool isSentinel () const
 Check whether this is the sentinel node.

Static Public Member Functions

static bool classof (const PredicateBase *PB)

Public Attributes

PredicateType Type

Protected Member Functions

 PredicateBase (PredicateType PT, Value *Op, Value *Condition)
- Protected Member Functions inherited from llvm::ilist_node_impl< OptionsT >
 ilist_node_impl ()=default

Additional Inherited Members

- Protected Types inherited from llvm::ilist_node_impl< OptionsT >
using self_iterator = ilist_iterator< OptionsT, false, false >
using const_self_iterator = ilist_iterator< OptionsT, false, true >
using reverse_self_iterator = ilist_iterator< OptionsT, true, false >
using const_reverse_self_iterator = ilist_iterator< OptionsT, true, true >

Detailed Description

Definition at line 82 of file PredicateInfo.h.

Constructor & Destructor Documentation

◆ PredicateBase() [1/3]

llvm::PredicateBase::PredicateBase ( const PredicateBase )

◆ PredicateBase() [2/3]

llvm::PredicateBase::PredicateBase ( )

◆ ~PredicateBase()

virtual llvm::PredicateBase::~PredicateBase ( )

◆ PredicateBase() [3/3]

llvm::PredicateBase::PredicateBase ( PredicateType  PT,
Value Op,
Value Condition 

Definition at line 109 of file PredicateInfo.h.

Member Function Documentation

◆ classof()

static bool llvm::PredicateBase::classof ( const PredicateBase PB)

Definition at line 100 of file PredicateInfo.h.

References PB(), llvm::PT_Assume, llvm::PT_Branch, and llvm::PT_Switch.

◆ getConstraint()

std::optional< PredicateConstraint > llvm::PredicateBase::getConstraint ( ) const

◆ operator=()

PredicateBase & llvm::PredicateBase::operator= ( const PredicateBase )

Member Data Documentation

◆ Condition

Value* llvm::PredicateBase::Condition

Definition at line 94 of file PredicateInfo.h.

Referenced by getConstraint().

◆ OriginalOp

Value* llvm::PredicateBase::OriginalOp

Definition at line 88 of file PredicateInfo.h.

◆ RenamedOp

Value* llvm::PredicateBase::RenamedOp

Definition at line 92 of file PredicateInfo.h.

Referenced by getConstraint().

◆ Type

PredicateType llvm::PredicateBase::Type

Definition at line 84 of file PredicateInfo.h.

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