LLVM API Documentation

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)
ValuegetOperand (unsigned i) const
 Transparently provide more efficient getOperand methods.
void setOperand (unsigned i, Value *Val)
unsigned getNumOperands () const
virtual StoreInstclone () const
virtual bool mayWriteToMemory () const
ValuegetPointerOperand ()
const ValuegetPointerOperand () 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 265 of file Instructions.h.


Constructor & Destructor Documentation

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

Definition at line 641 of file Instructions.cpp.

References llvm::Use::init(), and setVolatile().

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

Definition at line 649 of file Instructions.cpp.

References llvm::Use::init(), and setVolatile().

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

Definition at line 657 of file Instructions.cpp.

References llvm::Use::init(), and setVolatile().

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

Definition at line 666 of file Instructions.cpp.

References llvm::Use::init(), and setVolatile().


Member Function Documentation

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

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

Definition at line 287 of file Instructions.h.

References llvm::Value::SubclassData.

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

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

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

Definition at line 291 of file Instructions.h.

References llvm::Value::SubclassData.

Referenced by StoreInst().

Value* llvm::StoreInst::getOperand ( unsigned  i  )  const [inline]

Transparently provide more efficient getOperand methods.

Reimplemented from llvm::User.

Definition at line 294 of file Instructions.h.

Referenced by llvm::AliasSetTracker::add(), llvm::AliasAnalysis::getModRefInfo(), getPointerOperand(), InstCombineStoreToCast(), llvm::AliasSetTracker::remove(), llvm::SelectionDAGLowering::visitStore(), and llvm::Interpreter::visitStoreInst().

void llvm::StoreInst::setOperand ( unsigned  i,
Value Val 
) [inline]

Reimplemented from llvm::User.

Definition at line 298 of file Instructions.h.

References Val.

unsigned llvm::StoreInst::getNumOperands (  )  const [inline]

Reimplemented from llvm::User.

Definition at line 302 of file Instructions.h.

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 1321 of file Instructions.cpp.

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

mayWriteToMemory - Return true if this instruction may modify memory.

Reimplemented from llvm::Instruction.

Definition at line 307 of file Instructions.h.

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

Definition at line 309 of file Instructions.h.

References getOperand().

Referenced by llvm::Interpreter::visitStoreInst().

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

Definition at line 310 of file Instructions.h.

References getOperand().

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

Definition at line 311 of file Instructions.h.

References U.

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

Definition at line 314 of file Instructions.h.

Referenced by 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 315 of file Instructions.h.

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

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

Reimplemented from llvm::Instruction.

Definition at line 318 of file Instructions.h.

References classof(), and V.


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