LLVM 20.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 |
unsigned | getSourceAlignment () const |
FIXME: Remove this function once transition to Align is over. | |
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 1034 of file IntrinsicInst.h.
|
inline |
Return the arguments to the instruction.
Definition at line 1040 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 1046 of file IntrinsicInst.h.
|
inline |
Definition at line 1043 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 1051 of file IntrinsicInst.h.
References llvm::MemTransferBase< BaseCL >::getRawSource(), and llvm::Value::stripPointerCasts().
Referenced by llvm::VNCoercion::analyzeLoadFromClobberingMemInst(), llvm::VNCoercion::getConstantMemInstValueForLoad(), and llvm::VNCoercion::getMemInstValueForLoad().
|
inline |
Definition at line 1053 of file IntrinsicInst.h.
References llvm::MemTransferBase< BaseCL >::getRawSource(), and getType().
|
inline |
Definition at line 1066 of file IntrinsicInst.h.
Referenced by llvm::expandAtomicMemCpyAsLoop(), llvm::expandMemCpyAsLoop(), and llvm::expandMemMoveAsLoop().
|
inline |
FIXME: Remove this function once transition to Align is over.
Use getSourceAlign() instead.
Definition at line 1060 of file IntrinsicInst.h.
|
inline |
Definition at line 1070 of file IntrinsicInst.h.
References assert(), llvm::MemTransferBase< BaseCL >::getRawSource(), getType(), and Ptr.
|
inline |
Definition at line 1083 of file IntrinsicInst.h.
References llvm::Attribute::getWithAlignment().
|
inline |
Definition at line 1076 of file IntrinsicInst.h.
References llvm::Attribute::getWithAlignment().