LLVM API Documentation

llvm::OverflowingBinaryOperator Class Reference

#include <Operator.h>

Inheritance diagram for llvm::OverflowingBinaryOperator:
[legend]
Collaboration diagram for llvm::OverflowingBinaryOperator:
[legend]

List of all members.

Public Member Functions

bool hasNoUnsignedWrap () const
void setHasNoUnsignedWrap (bool B)
bool hasNoSignedWrap () const
void setHasNoSignedWrap (bool B)

Static Public Member Functions

static bool classof (const OverflowingBinaryOperator *)
static bool classof (const Instruction *I)
static bool classof (const ConstantExpr *CE)
static bool classof (const Value *V)


Detailed Description

OverflowingBinaryOperator - Utility class for integer arithmetic operators which may exhibit overflow - Add, Sub, and Mul. It does not include SDiv, despite that operator having the potential for overflow.

Definition at line 69 of file Operator.h.


Member Function Documentation

bool llvm::OverflowingBinaryOperator::hasNoUnsignedWrap (  )  const [inline]

hasNoUnsignedWrap - Test whether this operation is known to never undergo unsigned overflow, aka the nuw property.

Definition at line 74 of file Operator.h.

References llvm::Value::SubclassOptionalData.

void llvm::OverflowingBinaryOperator::setHasNoUnsignedWrap ( bool  B  )  [inline]

Definition at line 77 of file Operator.h.

References llvm::Value::SubclassOptionalData.

bool llvm::OverflowingBinaryOperator::hasNoSignedWrap (  )  const [inline]

hasNoSignedWrap - Test whether this operation is known to never undergo signed overflow, aka the nsw property.

Definition at line 83 of file Operator.h.

References llvm::Value::SubclassOptionalData.

void llvm::OverflowingBinaryOperator::setHasNoSignedWrap ( bool  B  )  [inline]

Definition at line 86 of file Operator.h.

References llvm::Value::SubclassOptionalData.

static bool llvm::OverflowingBinaryOperator::classof ( const OverflowingBinaryOperator *   )  [inline, static]

Definition at line 90 of file Operator.h.

Referenced by classof().

static bool llvm::OverflowingBinaryOperator::classof ( const Instruction *  I  )  [inline, static]

Reimplemented from llvm::Operator.

Reimplemented in llvm::AddOperator, llvm::SubOperator, and llvm::MulOperator.

Definition at line 91 of file Operator.h.

References llvm::Instruction::getOpcode().

static bool llvm::OverflowingBinaryOperator::classof ( const ConstantExpr *  CE  )  [inline, static]

Reimplemented from llvm::Operator.

Reimplemented in llvm::AddOperator, llvm::SubOperator, and llvm::MulOperator.

Definition at line 96 of file Operator.h.

References llvm::ConstantExpr::getOpcode().

static bool llvm::OverflowingBinaryOperator::classof ( const Value *  V  )  [inline, static]

Reimplemented from llvm::Operator.

Reimplemented in llvm::AddOperator, llvm::SubOperator, and llvm::MulOperator.

Definition at line 101 of file Operator.h.

References classof().


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