LLVM API Documentation
#include <Instructions.h>
Public Member Functions | |
| TruncInst (Value *S, const Type *Ty, const std::string &NameStr="", Instruction *InsertBefore=0) | |
| Constructor with insert-before-instruction semantics. | |
| TruncInst (Value *S, const Type *Ty, const std::string &NameStr, BasicBlock *InsertAtEnd) | |
| Constructor with insert-at-end-of-block semantics. | |
| virtual CastInst * | clone () const |
| Clone an identical TruncInst. | |
Static Public Member Functions | |
| static bool | classof (const TruncInst *) |
| 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) |
Definition at line 2693 of file Instructions.h.
| TruncInst::TruncInst | ( | Value * | S, | |
| const Type * | Ty, | |||
| const std::string & | NameStr = "", |
|||
| Instruction * | InsertBefore = 0 | |||
| ) |
Constructor with insert-before-instruction semantics.
| S | The value to be truncated |
| Ty | The (smaller) type to truncate to |
| NameStr | A name for the new instruction |
| InsertBefore | Where to insert the new instruction |
Definition at line 2322 of file Instructions.cpp.
References llvm::CastInst::castIsValid(), and llvm::CastInst::getOpcode().
| TruncInst::TruncInst | ( | Value * | S, | |
| const Type * | Ty, | |||
| const std::string & | NameStr, | |||
| BasicBlock * | InsertAtEnd | |||
| ) |
Constructor with insert-at-end-of-block semantics.
| S | The value to be truncated |
| Ty | The (smaller) type to truncate to |
| NameStr | A name for the new instruction |
| InsertAtEnd | The block to insert the instruction into |
Definition at line 2328 of file Instructions.cpp.
References llvm::CastInst::castIsValid(), and llvm::CastInst::getOpcode().
| CastInst * TruncInst::clone | ( | ) | const [virtual] |
Clone an identical TruncInst.
Implements llvm::Instruction.
Definition at line 2890 of file Instructions.cpp.
| static bool llvm::TruncInst::classof | ( | const TruncInst * | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 2719 of file Instructions.h.
| static bool llvm::TruncInst::classof | ( | const Instruction * | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::CastInst.
Definition at line 2720 of file Instructions.h.
References llvm::Instruction::getOpcode().
| static bool llvm::TruncInst::classof | ( | const Value * | V | ) | [inline, static] |