LLVM API Documentation
#include <IntrinsicInst.h>
Public Member Functions | |
Value * | getRawDest () const |
const Use & | getRawDestUse () const |
Use & | getRawDestUse () |
Value * | getLength () const |
const Use & | getLengthUse () const |
Use & | getLengthUse () |
ConstantInt * | getAlignmentCst () const |
unsigned | getAlignment () const |
ConstantInt * | getVolatileCst () const |
bool | isVolatile () const |
unsigned | getDestAddressSpace () const |
Value * | getDest () const |
void | setDest (Value *Ptr) |
void | setLength (Value *L) |
void | setAlignment (Constant *A) |
void | setVolatile (Constant *V) |
Type * | getAlignmentType () 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: |
MemIntrinsic - This is the common base class for memset/memcpy/memmove.
Definition at line 118 of file IntrinsicInst.h.
static bool llvm::MemIntrinsic::classof | ( | const IntrinsicInst * | I | ) | [inline, static] |
Reimplemented in llvm::MemMoveInst, llvm::MemCpyInst, llvm::MemTransferInst, and llvm::MemSetInst.
Definition at line 179 of file IntrinsicInst.h.
References llvm::IntrinsicInst::getIntrinsicID(), llvm::LibFunc::memcpy, llvm::LibFunc::memmove, and llvm::LibFunc::memset.
Referenced by classof().
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 188 of file IntrinsicInst.h.
References classof().
unsigned llvm::MemIntrinsic::getAlignment | ( | ) | const [inline] |
Definition at line 132 of file IntrinsicInst.h.
References getAlignmentCst(), and llvm::ConstantInt::getZExtValue().
ConstantInt* llvm::MemIntrinsic::getAlignmentCst | ( | ) | const [inline] |
Definition at line 128 of file IntrinsicInst.h.
References llvm::CallInst::getArgOperand().
Referenced by getAlignment().
Type* llvm::MemIntrinsic::getAlignmentType | ( | ) | const [inline] |
Definition at line 174 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 150 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 143 of file IntrinsicInst.h.
References getRawDest(), and llvm::Value::getType().
Value* llvm::MemIntrinsic::getLength | ( | ) | const [inline] |
Definition at line 124 of file IntrinsicInst.h.
References llvm::CallInst::getArgOperand().
Referenced by AnalyzeLoadFromClobberingMemInst(), llvm::AliasAnalysis::getLocationForDest(), llvm::AliasAnalysis::getLocationForSource(), llvm::NVPTXLowerAggrCopies::runOnFunction(), and setLength().
const Use& llvm::MemIntrinsic::getLengthUse | ( | ) | const [inline] |
Definition at line 125 of file IntrinsicInst.h.
References llvm::CallInst::getArgOperandUse().
Use& llvm::MemIntrinsic::getLengthUse | ( | ) | [inline] |
Definition at line 126 of file IntrinsicInst.h.
References llvm::CallInst::getArgOperandUse().
Value* llvm::MemIntrinsic::getRawDest | ( | ) | const [inline] |
Definition at line 120 of file IntrinsicInst.h.
References llvm::CallInst::getArgOperand().
Referenced by getDest(), getDestAddressSpace(), llvm::AliasAnalysis::getLocationForDest(), isAllocSiteRemovable(), and setDest().
const Use& llvm::MemIntrinsic::getRawDestUse | ( | ) | const [inline] |
Definition at line 121 of file IntrinsicInst.h.
References llvm::CallInst::getArgOperandUse().
Use& llvm::MemIntrinsic::getRawDestUse | ( | ) | [inline] |
Definition at line 122 of file IntrinsicInst.h.
References llvm::CallInst::getArgOperandUse().
ConstantInt* llvm::MemIntrinsic::getVolatileCst | ( | ) | const [inline] |
Definition at line 136 of file IntrinsicInst.h.
References llvm::CallInst::getArgOperand().
Referenced by isVolatile().
bool llvm::MemIntrinsic::isVolatile | ( | ) | const [inline] |
Definition at line 139 of file IntrinsicInst.h.
References getVolatileCst(), and llvm::ConstantInt::isZero().
Referenced by isAllocSiteRemovable(), and isOnlyCopiedFromConstantGlobal().
void llvm::MemIntrinsic::setAlignment | ( | Constant * | A | ) | [inline] |
Definition at line 166 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 154 of file IntrinsicInst.h.
References getRawDest(), llvm::Value::getType(), and llvm::CallInst::setArgOperand().
void llvm::MemIntrinsic::setLength | ( | Value * | L | ) | [inline] |
Definition at line 160 of file IntrinsicInst.h.
References getLength(), llvm::Value::getType(), and llvm::CallInst::setArgOperand().
void llvm::MemIntrinsic::setVolatile | ( | Constant * | V | ) | [inline] |
Definition at line 170 of file IntrinsicInst.h.
References llvm::CallInst::setArgOperand().