LLVM API Documentation
#include <Operator.h>
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) |
Definition at line 189 of file Operator.h.
| 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] |
| 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] |
| 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] |
| 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] |
| 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] |
| bool llvm::GEPOperator::hasIndices | ( | ) | const [inline] |
| 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] |
| 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().