LLVM API Documentation

llvm::ShiftInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::ShiftInst:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ShiftInst (OtherOps Opcode, Value *S, Value *SA, const std::string &Name="", Instruction *InsertBefore=0)
 ShiftInst (OtherOps Opcode, Value *S, Value *SA, const std::string &Name, BasicBlock *InsertAtEnd)
OtherOps getOpcode () const
ValuegetOperand (unsigned i) const
 Transparently provide more efficient getOperand methods.
void setOperand (unsigned i, Value *Val)
unsigned getNumOperands () const
virtual ShiftInstclone () const

Static Public Member Functions

static bool classof (const ShiftInst *)
static bool classof (const Instruction *I)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
static bool classof (const Value *V)

Detailed Description

ShiftInst - This class represents left and right shift instructions.

Definition at line 570 of file Instructions.h.


Constructor & Destructor Documentation

llvm::ShiftInst::ShiftInst ( OtherOps  Opcode,
Value S,
Value SA,
const std::string &  Name = "",
Instruction InsertBefore = 0 
) [inline]

Definition at line 584 of file Instructions.h.

References llvm::cl::init(), and Name.

llvm::ShiftInst::ShiftInst ( OtherOps  Opcode,
Value S,
Value SA,
const std::string &  Name,
BasicBlock InsertAtEnd 
) [inline]

Definition at line 589 of file Instructions.h.

References llvm::cl::init().


Member Function Documentation

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

Reimplemented from llvm::Instruction.

Definition at line 618 of file Instructions.h.

References llvm::CastInst::classof(), and V.

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

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

Reimplemented from llvm::Instruction.

Definition at line 614 of file Instructions.h.

References llvm::Instruction::getOpcode(), and llvm::Instruction::Shl.

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

Definition at line 613 of file Instructions.h.

ShiftInst * ShiftInst::clone (  )  const [virtual]

clone() - Create a copy of 'this' instruction that is identical in all ways except the following: The instruction has no parent The instruction has no name

Implements llvm::Instruction.

Definition at line 1277 of file Instructions.cpp.

unsigned llvm::ShiftInst::getNumOperands (  )  const [inline]

Reimplemented from llvm::User.

Definition at line 608 of file Instructions.h.

OtherOps llvm::ShiftInst::getOpcode (  )  const [inline]

Subclass classification... getOpcode() returns a member of one of the enums that is coming soon (down below)...

Reimplemented from llvm::Instruction.

Definition at line 595 of file Instructions.h.

References llvm::Instruction::getOpcode().

Value* llvm::ShiftInst::getOperand ( unsigned  i  )  const [inline]

Transparently provide more efficient getOperand methods.

Reimplemented from llvm::User.

Definition at line 600 of file Instructions.h.

Referenced by llvm::Interpreter::visitShl(), and llvm::Interpreter::visitShr().

void llvm::ShiftInst::setOperand ( unsigned  i,
Value Val 
) [inline]

Reimplemented from llvm::User.

Definition at line 604 of file Instructions.h.

References Val.


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