LLVM  8.0.1
Public Member Functions | List of all members
llvm::reassociate::XorOpnd Class Reference

Utility class representing a non-constant Xor-operand. More...

Public Member Functions

 XorOpnd (Value *V)
 
bool isInvalid () const
 
bool isOrExpr () const
 
ValuegetValue () const
 
ValuegetSymbolicPart () const
 
unsigned getSymbolicRank () const
 
const APIntgetConstPart () const
 
void Invalidate ()
 
void setSymbolicRank (unsigned R)
 

Detailed Description

Utility class representing a non-constant Xor-operand.

We classify non-constant Xor-Operands into two categories: C1) The operand is in the form "X & C", where C is a constant and C != ~0 C2) C2.1) The operand is in the form of "X | C", where C is a non-zero constant. C2.2) Any operand E which doesn't fall into C1 and C2.1, we view this operand as "E | 0"

Definition at line 96 of file Reassociate.cpp.

Constructor & Destructor Documentation

◆ XorOpnd()

XorOpnd::XorOpnd ( Value V)

Member Function Documentation

◆ getConstPart()

const APInt& llvm::reassociate::XorOpnd::getConstPart ( ) const
inline

Definition at line 105 of file Reassociate.cpp.

Referenced by createAndInstr().

◆ getSymbolicPart()

Value* llvm::reassociate::XorOpnd::getSymbolicPart ( ) const
inline

Definition at line 103 of file Reassociate.cpp.

Referenced by createAndInstr().

◆ getSymbolicRank()

unsigned llvm::reassociate::XorOpnd::getSymbolicRank ( ) const
inline

Definition at line 104 of file Reassociate.cpp.

Referenced by createAndInstr().

◆ getValue()

Value* llvm::reassociate::XorOpnd::getValue ( ) const
inline

Definition at line 102 of file Reassociate.cpp.

Referenced by createAndInstr().

◆ Invalidate()

void llvm::reassociate::XorOpnd::Invalidate ( )
inline

Definition at line 107 of file Reassociate.cpp.

Referenced by createAndInstr().

◆ isInvalid()

bool llvm::reassociate::XorOpnd::isInvalid ( ) const
inline

Definition at line 100 of file Reassociate.cpp.

Referenced by createAndInstr().

◆ isOrExpr()

bool llvm::reassociate::XorOpnd::isOrExpr ( ) const
inline

Definition at line 101 of file Reassociate.cpp.

Referenced by createAndInstr().

◆ setSymbolicRank()

void llvm::reassociate::XorOpnd::setSymbolicRank ( unsigned  R)
inline

Definition at line 108 of file Reassociate.cpp.

Referenced by createAndInstr().


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