LLVM 22.0.0git
|
Common base class for all memory transfer intrinsics. More...
#include "llvm/IR/IntrinsicInst.h"
Public Member Functions | |
Value * | getRawSource () const |
Return the arguments to the instruction. | |
const Use & | getRawSourceUse () const |
Use & | getRawSourceUse () |
Value * | getSource () const |
This is just like getRawSource, but it strips off any cast instructions that feed it, giving the original input. | |
unsigned | getSourceAddressSpace () const |
MaybeAlign | getSourceAlign () const |
void | setSource (Value *Ptr) |
void | setSourceAlignment (MaybeAlign Alignment) |
void | setSourceAlignment (Align Alignment) |
Common base class for all memory transfer intrinsics.
Simply provides common methods.
Definition at line 1040 of file IntrinsicInst.h.
|
inline |
Return the arguments to the instruction.
Definition at line 1046 of file IntrinsicInst.h.
Referenced by canOverlap(), llvm::expandAtomicMemCpyAsLoop(), llvm::expandMemCpyAsLoop(), llvm::expandMemMoveAsLoop(), llvm::MemoryLocation::getForSource(), llvm::MemTransferBase< BaseCL >::getSource(), llvm::MemTransferBase< BaseCL >::getSourceAddressSpace(), and llvm::MemTransferBase< BaseCL >::setSource().
|
inline |
Definition at line 1052 of file IntrinsicInst.h.
|
inline |
Definition at line 1049 of file IntrinsicInst.h.
|
inline |
This is just like getRawSource, 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 1057 of file IntrinsicInst.h.
References llvm::MemTransferBase< BaseCL >::getRawSource(), and llvm::Value::stripPointerCasts().
Referenced by llvm::VNCoercion::analyzeLoadFromClobberingMemInst(), copyArrayElemsForMemCpy(), llvm::VNCoercion::getConstantMemInstValueForLoad(), llvm::VNCoercion::getMemInstValueForLoad(), overreadUndefContents(), and replaceMemCpy().
|
inline |
Definition at line 1059 of file IntrinsicInst.h.
References llvm::MemTransferBase< BaseCL >::getRawSource(), and getType().
|
inline |
Definition at line 1063 of file IntrinsicInst.h.
Referenced by llvm::expandAtomicMemCpyAsLoop(), llvm::expandMemCpyAsLoop(), and llvm::expandMemMoveAsLoop().
|
inline |
Definition at line 1067 of file IntrinsicInst.h.
References assert(), llvm::MemTransferBase< BaseCL >::getRawSource(), getType(), and Ptr.
|
inline |
Definition at line 1080 of file IntrinsicInst.h.
References llvm::Attribute::getWithAlignment().
|
inline |
Definition at line 1073 of file IntrinsicInst.h.
References llvm::Attribute::getWithAlignment().