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 96 of file Constants.h.
|
Reimplemented from llvm::ConstantIntegral. Definition at line 122 of file Constants.h. |
|
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 121 of file Constants.h. |
|
Definition at line 103 of file Constants.h. References get(). |
|
get() - Static factory methods - Return objects of the specified value
Definition at line 102 of file Constants.h. Referenced by llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCall(), get(), llvm::Constant::getNullValue(), llvm::BytecodeReader::ParseConstantValue(), and llvm::JIT::runFunction(). |
|
getValue - return the boolean value of this constant. Definition at line 110 of file Constants.h. References llvm::ConstantIntegral::getRawValue(). Referenced by BoolRules::And(), CheckCondition(), BoolRules::LessThan(), BoolRules::Or(), and BoolRules::Xor(). |
|
inverted - Return the opposite value of the current value.
Definition at line 106 of file Constants.h. |
|
isAllOnesValue - Return true if every bit in this constant is set to true. Implements llvm::ConstantIntegral. Definition at line 118 of file Constants.h. References True. |
|
isMaxValue - Return true if this is the largest value that may be represented by this type. Implements llvm::ConstantIntegral. Definition at line 116 of file Constants.h. References True. |
|
isMinValue - Return true if this is the smallest value that may be represented by this type. Implements llvm::ConstantIntegral. Definition at line 117 of file Constants.h. References False. |
|
isNullValue - Return true if this is the value that would be returned by getNullValue. Implements llvm::ConstantIntegral. Definition at line 115 of file Constants.h. References False. |
|
Definition at line 27 of file Constants.cpp. Referenced by classof(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldSelectInstruction(), get(), llvm::ValID::getName(), inverted(), isMinValue(), and isNullValue(). |
|