LLVM API Documentation
This class represents a truncation of integer types. More...
#include <Instructions.h>


Public Member Functions | |
| TruncInst (Value *S, Type *Ty, const Twine &NameStr="", Instruction *InsertBefore=nullptr) | |
| Constructor with insert-before-instruction semantics. | |
| TruncInst (Value *S, Type *Ty, const Twine &NameStr, BasicBlock *InsertAtEnd) | |
| Constructor with insert-at-end-of-block 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 | |
| TruncInst * | clone_impl () const override |
| Clone an identical TruncInst. | |
This class represents a truncation of integer types.
Definition at line 3331 of file Instructions.h.
| TruncInst::TruncInst | ( | Value * | S, |
| Type * | Ty, | ||
| const Twine & | NameStr = "", |
||
| Instruction * | InsertBefore = nullptr |
||
| ) |
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 2949 of file Instructions.cpp.
References llvm::CastInst::castIsValid(), and llvm::CastInst::getOpcode().
Referenced by clone_impl().
| TruncInst::TruncInst | ( | Value * | S, |
| Type * | Ty, | ||
| const Twine & | 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 2955 of file Instructions.cpp.
References llvm::CastInst::castIsValid(), and llvm::CastInst::getOpcode().
| static bool llvm::TruncInst::classof | ( | const Instruction * | I | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:
Reimplemented from llvm::CastInst.
Definition at line 3354 of file Instructions.h.
References llvm::Instruction::getOpcode(), and llvm::Trunc.
Referenced by classof().
| static bool llvm::TruncInst::classof | ( | const Value * | V | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:
Reimplemented from llvm::CastInst.
Definition at line 3357 of file Instructions.h.
References classof().
| TruncInst * TruncInst::clone_impl | ( | ) | const [override, protected, virtual] |
Clone an identical TruncInst.
Implements llvm::Instruction.
Definition at line 3677 of file Instructions.cpp.
References llvm::User::getOperand(), llvm::Value::getType(), and TruncInst().