LLVM API Documentation
#include <Instructions.h>
Inheritance diagram for llvm::LoadInst:
Public Member Functions | |
LoadInst (Value *Ptr, const std::string &Name, Instruction *InsertBefore) | |
LoadInst (Value *Ptr, const std::string &Name, BasicBlock *InsertAtEnd) | |
LoadInst (Value *Ptr, const std::string &Name="", bool isVolatile=false, Instruction *InsertBefore=0) | |
LoadInst (Value *Ptr, const std::string &Name, bool isVolatile, BasicBlock *InsertAtEnd) | |
bool | isVolatile () const |
void | setVolatile (bool V) |
virtual LoadInst * | clone () const |
virtual bool | mayWriteToMemory () const |
Value * | getPointerOperand () |
const Value * | getPointerOperand () const |
Static Public Member Functions | |
static unsigned | getPointerOperandIndex () |
static bool | classof (const LoadInst *) |
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 213 of file Instructions.h.
LoadInst::LoadInst | ( | Value * | Ptr, | |
const std::string & | Name, | |||
Instruction * | InsertBefore | |||
) |
LoadInst::LoadInst | ( | Value * | Ptr, | |
const std::string & | Name, | |||
BasicBlock * | InsertAtEnd | |||
) |
LoadInst::LoadInst | ( | Value * | Ptr, | |
const std::string & | Name = "" , |
|||
bool | isVolatile = false , |
|||
Instruction * | InsertBefore = 0 | |||
) |
LoadInst::LoadInst | ( | Value * | Ptr, | |
const std::string & | Name, | |||
bool | isVolatile, | |||
BasicBlock * | InsertAtEnd | |||
) |
bool llvm::LoadInst::isVolatile | ( | ) | const [inline] |
isVolatile - Return true if this is a load from a volatile memory location.
Definition at line 234 of file Instructions.h.
References llvm::Value::SubclassData.
Referenced by mayWriteToMemory(), and llvm::SelectionDAGLowering::visitLoad().
void llvm::LoadInst::setVolatile | ( | bool | V | ) | [inline] |
setVolatile - Specify whether this is a volatile load or not.
Definition at line 238 of file Instructions.h.
References llvm::Value::SubclassData.
Referenced by LoadInst().
LoadInst * LoadInst::clone | ( | ) | const [virtual] |
clone() - Create a copy of 'this' instruction that is identical in all ways except the following: The instruction has no parent The instruction has no name
Implements llvm::Instruction.
Definition at line 1320 of file Instructions.cpp.
virtual bool llvm::LoadInst::mayWriteToMemory | ( | ) | const [inline, virtual] |
mayWriteToMemory - Return true if this instruction may modify memory.
Reimplemented from llvm::Instruction.
Definition at line 242 of file Instructions.h.
References isVolatile().
Value* llvm::LoadInst::getPointerOperand | ( | ) | [inline] |
Definition at line 244 of file Instructions.h.
References llvm::UnaryInstruction::getOperand().
Referenced by llvm::Interpreter::visitLoadInst().
const Value* llvm::LoadInst::getPointerOperand | ( | ) | const [inline] |
static unsigned llvm::LoadInst::getPointerOperandIndex | ( | ) | [inline, static] |
static bool llvm::LoadInst::classof | ( | const LoadInst * | ) | [inline, static] |
static bool llvm::LoadInst::classof | ( | const Instruction * | I | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::Instruction.
Definition at line 250 of file Instructions.h.
References llvm::Instruction::getOpcode(), and llvm::Instruction::Load.
static bool llvm::LoadInst::classof | ( | const Value * | V | ) | [inline, static] |