LLVM API Documentation

llvm::CastInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::CastInst:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CastInst (Value *S, const Type *Ty, const std::string &Name="", Instruction *InsertBefore=0)
 CastInst (Value *S, const Type *Ty, const std::string &Name, BasicBlock *InsertAtEnd)
virtual CastInstclone () const

Static Public Member Functions

static bool classof (const CastInst *)
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

CastInst - This class represents a cast from Operand[0] to the type of the instruction (i->getType()).

Definition at line 477 of file Instructions.h.


Constructor & Destructor Documentation

llvm::CastInst::CastInst ( Value S,
const Type Ty,
const std::string &  Name = "",
Instruction InsertBefore = 0 
) [inline]

Definition at line 482 of file Instructions.h.

llvm::CastInst::CastInst ( Value S,
const Type Ty,
const std::string &  Name,
BasicBlock InsertAtEnd 
) [inline]

Definition at line 486 of file Instructions.h.


Member Function Documentation

CastInst * CastInst::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 1322 of file Instructions.cpp.

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

Definition at line 494 of file Instructions.h.

Referenced by llvm::UnreachableInst::classof(), llvm::UnwindInst::classof(), llvm::InvokeInst::classof(), llvm::SwitchInst::classof(), llvm::BranchInst::classof(), llvm::ReturnInst::classof(), llvm::PHINode::classof(), llvm::ShuffleVectorInst::classof(), llvm::InsertElementInst::classof(), llvm::ExtractElementInst::classof(), llvm::VAArgInst::classof(), llvm::SelectInst::classof(), llvm::ShiftInst::classof(), llvm::CallInst::classof(), and classof().

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

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

Reimplemented from llvm::Instruction.

Definition at line 495 of file Instructions.h.

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

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

Reimplemented from llvm::Instruction.

Definition at line 498 of file Instructions.h.

References classof(), and V.


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