LLVM API Documentation

llvm::SIToFPInst Class Reference

This class represents a cast from signed integer to floating point. More...

#include <Instructions.h>

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

List of all members.

Public Member Functions

 SIToFPInst (Value *S, const Type *Ty, const Twine &NameStr="", Instruction *InsertBefore=0)
 Constructor with insert-before-instruction semantics.
 SIToFPInst (Value *S, const Type *Ty, const Twine &NameStr, BasicBlock *InsertAtEnd)
 Constructor with insert-at-end-of-block semantics.
virtual CastInst * clone (LLVMContext &Context) const
 Clone an identical SIToFPInst.

Static Public Member Functions

static bool classof (const SIToFPInst *)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
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 signed integer to floating point.

Definition at line 2838 of file Instructions.h.


Constructor & Destructor Documentation

SIToFPInst::SIToFPInst ( Value *  S,
const Type *  Ty,
const Twine &  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 2406 of file Instructions.cpp.

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

Referenced by clone().

SIToFPInst::SIToFPInst ( Value *  S,
const Type *  Ty,
const Twine &  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 2412 of file Instructions.cpp.

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


Member Function Documentation

CastInst * SIToFPInst::clone ( LLVMContext &  Context  )  const [virtual]

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

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

Definition at line 2860 of file Instructions.h.

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

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

Reimplemented from llvm::CastInst.

Definition at line 2861 of file Instructions.h.

References llvm::Instruction::getOpcode().

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

Reimplemented from llvm::CastInst.

Definition at line 2864 of file Instructions.h.


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