LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::StoreInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::StoreInst:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StoreInst (Value *Val, Value *Ptr, Instruction *InsertBefore)
 StoreInst (Value *Val, Value *Ptr, BasicBlock *InsertAtEnd)
 StoreInst (Value *Val, Value *Ptr, bool isVolatile=false, Instruction *InsertBefore=0)
 StoreInst (Value *Val, Value *Ptr, bool isVolatile, BasicBlock *InsertAtEnd)
bool isVolatile () const
void setVolatile (bool V)
virtual StoreInst * clone () const
virtual bool mayWriteToMemory () const
Value * getPointerOperand ()
const Value * getPointerOperand () const

Static Public Member Functions

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

Detailed Description

StoreInst - an instruction for storing to memory

Definition at line 223 of file Instructions.h.


Constructor & Destructor Documentation

StoreInst::StoreInst (  Value *  Val,
Value *  Ptr,
Instruction *  InsertBefore
) 
 

Definition at line 383 of file Instructions.cpp.

References llvm::cl::init().

StoreInst::StoreInst (  Value *  Val,
Value *  Ptr,
BasicBlock *  InsertAtEnd
) 
 

Definition at line 388 of file Instructions.cpp.

References llvm::cl::init().

StoreInst::StoreInst (  Value *  Val,
Value *  Ptr,
bool  isVolatile = false,
Instruction *  InsertBefore = 0
) 
 

Definition at line 393 of file Instructions.cpp.

References llvm::cl::init().

StoreInst::StoreInst (  Value *  Val,
Value *  Ptr,
bool  isVolatile,
BasicBlock *  InsertAtEnd
) 
 

Definition at line 399 of file Instructions.cpp.

References llvm::cl::init().


Member Function Documentation

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

Reimplemented from llvm::Instruction.

Definition at line 260 of file Instructions.h.

References classof().

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

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

Reimplemented from llvm::Instruction.

Definition at line 257 of file Instructions.h.

References llvm::Instruction::getOpcode(), and llvm::ISD::Store.

static bool llvm::StoreInst::classof (  const StoreInst *   )  [inline, static]
 

Definition at line 256 of file Instructions.h.

Referenced by classof().

StoreInst * StoreInst::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 809 of file Instructions.cpp.

const Value* llvm::StoreInst::getPointerOperand (   )  const [inline]
 

Definition at line 252 of file Instructions.h.

References llvm::User::getOperand().

Value* llvm::StoreInst::getPointerOperand (   )  [inline]
 

Definition at line 251 of file Instructions.h.

References llvm::User::getOperand().

Referenced by llvm::ModRefInfoBuilder::visitStoreInst(), and llvm::Interpreter::visitStoreInst().

static unsigned llvm::StoreInst::getPointerOperandIndex (   )  [inline, static]
 

Definition at line 253 of file Instructions.h.

References U.

bool llvm::StoreInst::isVolatile (   )  const [inline]
 

isVolatile - Return true if this is a load from a volatile memory location.

Definition at line 241 of file Instructions.h.

Referenced by llvm::AliasSetTracker::add().

virtual bool llvm::StoreInst::mayWriteToMemory (   )  const [inline, virtual]
 

mayWriteToMemory - Return true if this instruction may modify memory.

Reimplemented from llvm::Instruction.

Definition at line 249 of file Instructions.h.

void llvm::StoreInst::setVolatile (  bool  V  )  [inline]
 

setVolatile - Specify whether this is a volatile load or not.

Definition at line 245 of file Instructions.h.


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