LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::ConstantBool Class Reference

#include <Constants.h>

Inheritance diagram for llvm::ConstantBool:

Inheritance graph
[legend]
Collaboration diagram for llvm::ConstantBool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

ConstantBoolinverted () 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 ConstantBoolget (bool Value)
 get() - Static factory methods - Return objects of the specified value
static ConstantBoolget (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 ConstantBoolTrue = new ConstantBool(true)
static ConstantBoolFalse = new ConstantBool(false)

Detailed Description

ConstantBool - Boolean Values

Definition at line 96 of file Constants.h.


Member Function Documentation

static bool llvm::ConstantBool::classof const Value V  )  [inline, static]
 

Reimplemented from llvm::ConstantIntegral.

Definition at line 122 of file Constants.h.

References False, and True.

static bool llvm::ConstantBool::classof const ConstantBool  )  [inline, static]
 

Methods for support type inquiry through isa, cast, and dyn_cast:.

Definition at line 121 of file Constants.h.

static ConstantBool* llvm::ConstantBool::get const Type Ty,
bool  Value
[inline, static]
 

Definition at line 103 of file Constants.h.

References get().

static ConstantBool* llvm::ConstantBool::get bool  Value  )  [inline, static]
 

get() - Static factory methods - Return objects of the specified value

Definition at line 102 of file Constants.h.

References False, and True.

Referenced by llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCall(), get(), llvm::Constant::getNullValue(), llvm::BytecodeReader::ParseConstantValue(), and llvm::JIT::runFunction().

bool llvm::ConstantBool::getValue  )  const [inline]
 

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().

ConstantBool* llvm::ConstantBool::inverted  )  const [inline]
 

inverted - Return the opposite value of the current value.

Definition at line 106 of file Constants.h.

References False, and True.

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 118 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 116 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 117 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 115 of file Constants.h.

References False.


Member Data Documentation

ConstantBool * ConstantBool::False = new ConstantBool(false) [static]
 

Definition at line 27 of file Constants.cpp.

Referenced by classof(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldSelectInstruction(), get(), llvm::ValID::getName(), inverted(), isMinValue(), and isNullValue().

ConstantBool * ConstantBool::True = new ConstantBool(true) [static]
 

Definition at line 26 of file Constants.cpp.

Referenced by classof(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldSelectInstruction(), llvm::AsmPrinter::emitConstantValueOnly(), get(), llvm::ValID::getName(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), inverted(), isAllOnesValue(), and isMaxValue().


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