LLVM API Documentation

llvm::GEPOperator Class Reference

#include <Operator.h>

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

List of all members.

Public Member Functions

bool isInBounds () const
void setIsInBounds (bool B)
op_iterator idx_begin ()
const_op_iterator idx_begin () const
op_iterator idx_end ()
const_op_iterator idx_end () const
Value * getPointerOperand ()
const Value * getPointerOperand () const
const PointerType * getPointerOperandType () const
unsigned getNumIndices () const
bool hasIndices () const
bool hasAllZeroIndices () const

Static Public Member Functions

static unsigned getPointerOperandIndex ()
static bool classof (const GEPOperator *)
static bool classof (const GetElementPtrInst *)
static bool classof (const ConstantExpr *CE)
static bool classof (const Instruction *I)
static bool classof (const Value *V)


Detailed Description

Definition at line 189 of file Operator.h.


Member Function Documentation

bool llvm::GEPOperator::isInBounds (  )  const [inline]

isInBounds - Test whether this is an inbounds GEP, as defined by LangRef.html.

Definition at line 194 of file Operator.h.

References llvm::Value::SubclassOptionalData.

void llvm::GEPOperator::setIsInBounds ( bool  B  )  [inline]

Definition at line 197 of file Operator.h.

References llvm::Value::SubclassOptionalData.

op_iterator llvm::GEPOperator::idx_begin (  )  [inline]

Definition at line 201 of file Operator.h.

References llvm::User::op_begin().

Referenced by hasAllZeroIndices().

const_op_iterator llvm::GEPOperator::idx_begin (  )  const [inline]

Definition at line 202 of file Operator.h.

References llvm::User::op_begin().

op_iterator llvm::GEPOperator::idx_end (  )  [inline]

Definition at line 203 of file Operator.h.

References llvm::User::op_end().

Referenced by hasAllZeroIndices().

const_op_iterator llvm::GEPOperator::idx_end (  )  const [inline]

Definition at line 204 of file Operator.h.

References llvm::User::op_end().

Value* llvm::GEPOperator::getPointerOperand (  )  [inline]

Definition at line 206 of file Operator.h.

References llvm::User::getOperand().

Referenced by getPointerOperandType().

const Value* llvm::GEPOperator::getPointerOperand (  )  const [inline]

Definition at line 209 of file Operator.h.

References llvm::User::getOperand().

static unsigned llvm::GEPOperator::getPointerOperandIndex (  )  [inline, static]

Definition at line 212 of file Operator.h.

const PointerType* llvm::GEPOperator::getPointerOperandType (  )  const [inline]

getPointerOperandType - Method to return the pointer operand as a PointerType.

Definition at line 218 of file Operator.h.

References getPointerOperand(), and llvm::Value::getType().

unsigned llvm::GEPOperator::getNumIndices (  )  const [inline]

Definition at line 222 of file Operator.h.

References llvm::User::getNumOperands().

bool llvm::GEPOperator::hasIndices (  )  const [inline]

Definition at line 226 of file Operator.h.

References llvm::User::getNumOperands().

bool llvm::GEPOperator::hasAllZeroIndices (  )  const [inline]

hasAllZeroIndices - Return true if all of the indices of this GEP are zeros. If so, the result pointer and the first operand have the same value, just potentially different types.

Definition at line 233 of file Operator.h.

References llvm::CallingConv::C, E, idx_begin(), and idx_end().

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

Definition at line 244 of file Operator.h.

Referenced by classof().

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

Definition at line 245 of file Operator.h.

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

Reimplemented from llvm::Operator.

Definition at line 246 of file Operator.h.

References llvm::ConstantExpr::getOpcode().

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

Reimplemented from llvm::Operator.

Definition at line 249 of file Operator.h.

References llvm::Instruction::getOpcode().

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

Reimplemented from llvm::Operator.

Definition at line 252 of file Operator.h.

References classof().


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