LLVM API Documentation
#include <Constants.h>
Inheritance diagram for llvm::ConstantBool:
Public Member Functions | |
ConstantBool * | inverted () const |
inverted - Return the opposite value of the current value. | |
bool | getValue () const |
virtual bool | isNullValue () const |
virtual bool | isMaxValue () const |
virtual bool | isMinValue () const |
virtual bool | isAllOnesValue () const |
Static Public Member Functions | |
static ConstantBool * | get (bool Value) |
get() - Static factory methods - Return objects of the specified value | |
static ConstantBool * | get (const Type *Ty, bool Value) |
static bool | classof (const ConstantBool *) |
Methods for support type inquiry through isa, cast, and dyn_cast:. | |
static bool | classof (const Value *V) |
Static Public Attributes | |
static ConstantBool * | True = new ConstantBool(true) |
static ConstantBool * | False = new ConstantBool(false) |
Definition at line 110 of file Constants.h.
static bool llvm::ConstantBool::classof | ( | const Value * | V | ) | [inline, static] |
Reimplemented from llvm::ConstantIntegral.
Definition at line 136 of file Constants.h.
References llvm::Value::ConstantBoolVal, and V.
static bool llvm::ConstantBool::classof | ( | const ConstantBool * | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 135 of file Constants.h.
static ConstantBool* llvm::ConstantBool::get | ( | const Type * | Ty, | |
bool | Value | |||
) | [inline, static] |
static ConstantBool* llvm::ConstantBool::get | ( | bool | Value | ) | [inline, static] |
get() - Static factory methods - Return objects of the specified value
Definition at line 116 of file Constants.h.
Referenced by DISerializeVisitor::Apply(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCall(), get(), llvm::Constant::getNullValue(), llvm::BytecodeReader::ParseConstantPoolValue(), llvm::JIT::runFunction(), and llvm::SimplifyCFG().
bool llvm::ConstantBool::getValue | ( | ) | const [inline] |
getValue - return the boolean value of this constant.
Definition at line 124 of file Constants.h.
References llvm::ConstantIntegral::getRawValue().
Referenced by BoolRules::And(), EvaluateFunction(), BoolRules::LessThan(), BoolRules::Or(), and BoolRules::Xor().
ConstantBool* llvm::ConstantBool::inverted | ( | ) | const [inline] |
inverted - Return the opposite value of the current value.
Definition at line 120 of file Constants.h.
virtual bool llvm::ConstantBool::isAllOnesValue | ( | ) | const [inline, virtual] |
isAllOnesValue - Return true if every bit in this constant is set to true.
Implements llvm::ConstantIntegral.
Definition at line 132 of file Constants.h.
References True.
virtual bool llvm::ConstantBool::isMaxValue | ( | ) | const [inline, virtual] |
isMaxValue - Return true if this is the largest value that may be represented by this type.
Implements llvm::ConstantIntegral.
Definition at line 130 of file Constants.h.
References True.
virtual bool llvm::ConstantBool::isMinValue | ( | ) | const [inline, virtual] |
isMinValue - Return true if this is the smallest value that may be represented by this type.
Implements llvm::ConstantIntegral.
Definition at line 131 of file Constants.h.
References False.
virtual bool llvm::ConstantBool::isNullValue | ( | ) | const [inline, virtual] |
isNullValue - Return true if this is the value that would be returned by getNullValue.
Implements llvm::ConstantIntegral.
Definition at line 129 of file Constants.h.
References False.
ConstantBool * ConstantBool::False = new ConstantBool(false) [static] |
Definition at line 113 of file Constants.h.
Referenced by llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldSelectInstruction(), get(), llvm::ConstantIntegral::getMinValue(), llvm::ValID::getName(), inverted(), isMinValue(), and isNullValue().
ConstantBool * ConstantBool::True = new ConstantBool(true) [static] |
Definition at line 113 of file Constants.h.
Referenced by llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldSelectInstruction(), llvm::AsmPrinter::EmitConstantValueOnly(), get(), llvm::ConstantIntegral::getAllOnesValue(), llvm::ConstantIntegral::getMaxValue(), llvm::ValID::getName(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), llvm::ConstantExpr::getSignExtend(), inverted(), isAllOnesValue(), and isMaxValue().