LLVM API Documentation

llvm::PtrToIntInst Class Reference

This class represents a cast from a pointer to an integer. More...

#include <Instructions.h>

Inheritance diagram for llvm::PtrToIntInst:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PtrToIntInst (Value *S, const Type *Ty, const std::string &NameStr="", Instruction *InsertBefore=0)
 Constructor with insert-before-instruction semantics.
 PtrToIntInst (Value *S, const Type *Ty, const std::string &NameStr, BasicBlock *InsertAtEnd)
 Constructor with insert-at-end-of-block semantics.
virtual CastInstclone () const
 Clone an identical PtrToIntInst.

Static Public Member Functions

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

This class represents a cast from a pointer to an integer.

Definition at line 3071 of file Instructions.h.


Constructor & Destructor Documentation

PtrToIntInst::PtrToIntInst ( Value S,
const Type Ty,
const std::string &  NameStr = "",
Instruction InsertBefore = 0 
)

Constructor with insert-before-instruction semantics.

Parameters:
S  The value to be converted
Ty  The type to convert to
NameStr  A name for the new instruction
InsertBefore  Where to insert the new instruction

Definition at line 2455 of file Instructions.cpp.

References llvm::CastInst::castIsValid(), and llvm::CastInst::getOpcode().

PtrToIntInst::PtrToIntInst ( Value S,
const Type Ty,
const std::string &  NameStr,
BasicBlock InsertAtEnd 
)

Constructor with insert-at-end-of-block semantics.

Parameters:
S  The value to be converted
Ty  The type to convert to
NameStr  A name for the new instruction
InsertAtEnd  The block to insert the instruction into

Definition at line 2461 of file Instructions.cpp.

References llvm::CastInst::castIsValid(), and llvm::CastInst::getOpcode().


Member Function Documentation

CastInst * PtrToIntInst::clone (  )  const [virtual]

Clone an identical PtrToIntInst.

Implements llvm::Instruction.

Definition at line 2925 of file Instructions.cpp.

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

Definition at line 3096 of file Instructions.h.

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

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

Reimplemented from llvm::CastInst.

Definition at line 3097 of file Instructions.h.

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

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

Reimplemented from llvm::CastInst.

Definition at line 3100 of file Instructions.h.


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.