LLVM API Documentation
This class represents a cast from an integer to a pointer. More...
#include <Instructions.h>


Public Member Functions | |
| IntToPtrInst (Value *S, Type *Ty, const Twine &NameStr="", Instruction *InsertBefore=nullptr) | |
| Constructor with insert-before-instruction semantics. | |
| IntToPtrInst (Value *S, Type *Ty, const Twine &NameStr, BasicBlock *InsertAtEnd) | |
| Constructor with insert-at-end-of-block semantics. | |
| IntToPtrInst * | clone_impl () const override |
| Clone an identical IntToPtrInst. | |
| unsigned | getAddressSpace () const |
| Returns the address space of this instruction's pointer type. | |
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: | |
This class represents a cast from an integer to a pointer.
Definition at line 3655 of file Instructions.h.
| IntToPtrInst::IntToPtrInst | ( | Value * | S, |
| Type * | Ty, | ||
| const Twine & | NameStr = "", |
||
| Instruction * | InsertBefore = nullptr |
||
| ) |
Constructor with insert-before-instruction semantics.
| 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 3068 of file Instructions.cpp.
References llvm::CastInst::castIsValid(), and llvm::CastInst::getOpcode().
Referenced by clone_impl().
| IntToPtrInst::IntToPtrInst | ( | Value * | S, |
| Type * | Ty, | ||
| const Twine & | NameStr, | ||
| BasicBlock * | InsertAtEnd | ||
| ) |
Constructor with insert-at-end-of-block semantics.
| 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 3074 of file Instructions.cpp.
References llvm::CastInst::castIsValid(), and llvm::CastInst::getOpcode().
| static bool llvm::IntToPtrInst::classof | ( | const Instruction * | I | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:
Reimplemented from llvm::CastInst.
Definition at line 3682 of file Instructions.h.
References llvm::Instruction::getOpcode(), and llvm::IntToPtr.
Referenced by classof().
| static bool llvm::IntToPtrInst::classof | ( | const Value * | V | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:
Reimplemented from llvm::CastInst.
Definition at line 3685 of file Instructions.h.
References classof().
| IntToPtrInst * IntToPtrInst::clone_impl | ( | ) | const [override, virtual] |
Clone an identical IntToPtrInst.
Implements llvm::Instruction.
Definition at line 3717 of file Instructions.cpp.
References llvm::User::getOperand(), llvm::Value::getType(), and IntToPtrInst().
| unsigned llvm::IntToPtrInst::getAddressSpace | ( | ) | const [inline] |
Returns the address space of this instruction's pointer type.
Definition at line 3677 of file Instructions.h.
References llvm::Type::getPointerAddressSpace(), and llvm::Value::getType().
Referenced by llvm::InstCombiner::visitIntToPtr().