LLVM API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions
llvm::FPTruncInst Class Reference

This class represents a truncation of floating point types. More...

#include <Instructions.h>

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

List of all members.

Public Member Functions

 FPTruncInst (Value *S, Type *Ty, const Twine &NameStr="", Instruction *InsertBefore=nullptr)
 Constructor with insert-before-instruction semantics.
 FPTruncInst (Value *S, Type *Ty, const Twine &NameStr, BasicBlock *InsertAtEnd)
 Constructor with insert-before-instruction semantics.

Static Public Member Functions

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

Protected Member Functions

FPTruncInstclone_impl () const override
 Clone an identical FPTruncInst.

Detailed Description

This class represents a truncation of floating point types.

Definition at line 3439 of file Instructions.h.


Constructor & Destructor Documentation

FPTruncInst::FPTruncInst ( Value S,
Type Ty,
const Twine NameStr = "",
Instruction InsertBefore = nullptr 
)

Constructor with insert-before-instruction semantics.

Parameters:
SThe value to be truncated
TyThe type to truncate to
NameStrA name for the new instruction
InsertBeforeWhere to insert the new instruction

Definition at line 2984 of file Instructions.cpp.

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

Referenced by clone_impl().

FPTruncInst::FPTruncInst ( Value S,
Type Ty,
const Twine NameStr,
BasicBlock InsertAtEnd 
)

Constructor with insert-before-instruction semantics.

Parameters:
SThe value to be truncated
TyThe type to truncate to
NameStrA name for the new instruction
InsertAtEndThe block to insert the instruction into

Definition at line 2990 of file Instructions.cpp.

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


Member Function Documentation

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

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

Reimplemented from llvm::CastInst.

Definition at line 3462 of file Instructions.h.

References llvm::Instruction::getOpcode().

Referenced by classof().

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

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

Reimplemented from llvm::CastInst.

Definition at line 3465 of file Instructions.h.

References classof().

FPTruncInst * FPTruncInst::clone_impl ( ) const [override, protected, virtual]

Clone an identical FPTruncInst.

Implements llvm::Instruction.

Definition at line 3689 of file Instructions.cpp.

References FPTruncInst(), llvm::User::getOperand(), and llvm::Value::getType().


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