LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::MemIntrinsic Class Reference

#include <IntrinsicInst.h>

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

List of all members.

Public Member Functions

ValuegetRawDest () const
ValuegetLength () const
ConstantIntgetAlignmentCst () const
unsigned getAlignment () const
ConstantIntgetVolatileCst () const
bool isVolatile () const
unsigned getDestAddressSpace () const
ValuegetDest () const
void setDest (Value *Ptr)
void setLength (Value *L)
void setAlignment (Constant *A)
void setVolatile (Constant *V)
TypegetAlignmentType () const

Static Public Member Functions

static bool classof (const IntrinsicInst *I)
static bool classof (const Value *V)
 Methods for support type inquiry through isa, cast, and dyn_cast:

Detailed Description

MemIntrinsic - This is the common base class for memset/memcpy/memmove.

Definition at line 118 of file IntrinsicInst.h.


Member Function Documentation

static bool llvm::MemIntrinsic::classof ( const IntrinsicInst I) [inline, static]
static bool llvm::MemIntrinsic::classof ( const Value V) [inline, static]

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

Reimplemented from llvm::IntrinsicInst.

Reimplemented in llvm::MemMoveInst, llvm::MemCpyInst, llvm::MemTransferInst, and llvm::MemSetInst.

Definition at line 183 of file IntrinsicInst.h.

References classof().

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

Definition at line 127 of file IntrinsicInst.h.

References getAlignmentCst(), and llvm::ConstantInt::getZExtValue().

ConstantInt* llvm::MemIntrinsic::getAlignmentCst ( ) const [inline]

Definition at line 123 of file IntrinsicInst.h.

References llvm::CallInst::getArgOperand().

Referenced by getAlignment().

Type* llvm::MemIntrinsic::getAlignmentType ( ) const [inline]

Definition at line 169 of file IntrinsicInst.h.

References llvm::CallInst::getArgOperand(), and llvm::Value::getType().

Value* llvm::MemIntrinsic::getDest ( ) const [inline]

getDest - This is just like getRawDest, but it strips off any cast instructions that feed it, giving the original input. The returned value is guaranteed to be a pointer.

Definition at line 145 of file IntrinsicInst.h.

References getRawDest(), and llvm::Value::stripPointerCasts().

Referenced by AnalyzeLoadFromClobberingMemInst(), and llvm::NVPTXLowerAggrCopies::runOnFunction().

unsigned llvm::MemIntrinsic::getDestAddressSpace ( ) const [inline]

Definition at line 138 of file IntrinsicInst.h.

References getRawDest(), and llvm::Value::getType().

Value* llvm::MemIntrinsic::getLength ( ) const [inline]
Value* llvm::MemIntrinsic::getRawDest ( ) const [inline]
ConstantInt* llvm::MemIntrinsic::getVolatileCst ( ) const [inline]

Definition at line 131 of file IntrinsicInst.h.

References llvm::CallInst::getArgOperand().

Referenced by isVolatile().

bool llvm::MemIntrinsic::isVolatile ( ) const [inline]
void llvm::MemIntrinsic::setAlignment ( Constant A) [inline]

Definition at line 161 of file IntrinsicInst.h.

References llvm::CallInst::setArgOperand().

void llvm::MemIntrinsic::setDest ( Value Ptr) [inline]

set* - Set the specified arguments of the instruction.

Definition at line 149 of file IntrinsicInst.h.

References getRawDest(), llvm::Value::getType(), and llvm::CallInst::setArgOperand().

void llvm::MemIntrinsic::setLength ( Value L) [inline]
void llvm::MemIntrinsic::setVolatile ( Constant V) [inline]

Definition at line 165 of file IntrinsicInst.h.

References llvm::CallInst::setArgOperand().


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