LLVM API Documentation

llvm::StoreInst Class Reference

#include <Instructions.h>

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

List of all members.

Public Member Functions

void * operator new (size_t s)
 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, unsigned Align, Instruction *InsertBefore=0)
 StoreInst (Value *Val, Value *Ptr, bool isVolatile, BasicBlock *InsertAtEnd)
 StoreInst (Value *Val, Value *Ptr, bool isVolatile, unsigned Align, BasicBlock *InsertAtEnd)
bool isVolatile () const
void setVolatile (bool V)
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Transparently provide more efficient getOperand methods.
unsigned getAlignment () const
void setAlignment (unsigned Align)
virtual StoreInst * clone () 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 293 of file Instructions.h.


Constructor & Destructor Documentation

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

Definition at line 899 of file Instructions.cpp.

References setAlignment(), and setVolatile().

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

Definition at line 911 of file Instructions.cpp.

References setAlignment(), and setVolatile().

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

Definition at line 923 of file Instructions.cpp.

References setAlignment(), and setVolatile().

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

Definition at line 936 of file Instructions.cpp.

References setAlignment(), and setVolatile().

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

Definition at line 962 of file Instructions.cpp.

References setAlignment(), and setVolatile().

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

Definition at line 949 of file Instructions.cpp.

References setAlignment(), and setVolatile().


Member Function Documentation

void* llvm::StoreInst::operator new ( size_t  s  )  [inline]

Reimplemented from llvm::User.

Definition at line 310 of file Instructions.h.

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

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

Definition at line 327 of file Instructions.h.

References llvm::Value::SubclassData.

Referenced by llvm::AliasSetTracker::add(), and llvm::Interpreter::visitStoreInst().

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

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

Definition at line 331 of file Instructions.h.

References llvm::Value::SubclassData.

Referenced by StoreInst().

llvm::StoreInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS ( Value   ) 

Transparently provide more efficient getOperand methods.

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

getAlignment - Return the alignment of the access that is being performed

Definition at line 340 of file Instructions.h.

References llvm::Value::SubclassData.

void StoreInst::setAlignment ( unsigned  Align  ) 

Definition at line 975 of file Instructions.cpp.

References llvm::Log2_32().

Referenced by StoreInst().

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

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

Definition at line 348 of file Instructions.h.

References llvm::User::getOperand().

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

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

Definition at line 349 of file Instructions.h.

References llvm::User::getOperand().

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

Definition at line 350 of file Instructions.h.

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

Definition at line 353 of file Instructions.h.

Referenced by classof().

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

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

Reimplemented from llvm::Instruction.

Definition at line 354 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 357 of file Instructions.h.

References classof().


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