class MachineMemOperand
Declaration
class MachineMemOperand { /* full declaration omitted */ };
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:126
Method Overview
- public MachineMemOperand(llvm::MachinePointerInfo PtrInfo, llvm::MachineMemOperand::Flags flags, uint64_t s, uint64_t a, const llvm::AAMDNodes & AAInfo = llvm::AAMDNodes(), const llvm::MDNode * Ranges = nullptr, SyncScope::ID SSID = SyncScope::System, llvm::AtomicOrdering Ordering = AtomicOrdering::NotAtomic, llvm::AtomicOrdering FailureOrdering = AtomicOrdering::NotAtomic)
- public void Profile(llvm::FoldingSetNodeID & ID) const
- public llvm::AAMDNodes getAAInfo() const
- public unsigned int getAddrSpace() const
- public uint64_t getAlignment() const
- public uint64_t getBaseAlignment() const
- public llvm::AtomicOrdering getFailureOrdering() const
- public llvm::MachineMemOperand::Flags getFlags() const
- public int64_t getOffset() const
- public const void * getOpaqueValue() const
- public llvm::AtomicOrdering getOrdering() const
- public const llvm::MachinePointerInfo & getPointerInfo() const
- public const llvm::PseudoSourceValue * getPseudoValue() const
- public const llvm::MDNode * getRanges() const
- public uint64_t getSize() const
- public uint64_t getSizeInBits() const
- public SyncScope::ID getSyncScopeID() const
- public const llvm::Value * getValue() const
- public bool isAtomic() const
- public bool isDereferenceable() const
- public bool isInvariant() const
- public bool isLoad() const
- public bool isNonTemporal() const
- public bool isStore() const
- public bool isUnordered() const
- public bool isVolatile() const
- public void print(llvm::raw_ostream & OS, llvm::ModuleSlotTracker & MST, SmallVectorImpl<llvm::StringRef> & SSNs, const llvm::LLVMContext & Context, const llvm::MachineFrameInfo * MFI, const llvm::TargetInstrInfo * TII) const
- public void refineAlignment(const llvm::MachineMemOperand * MMO)
- public void setFlags(llvm::MachineMemOperand::Flags f)
- public void setOffset(int64_t NewOffset)
- public void setValue(const llvm::Value * NewSV)
- public void setValue(const llvm::PseudoSourceValue * NewSV)
Methods
¶MachineMemOperand(
llvm::MachinePointerInfo PtrInfo,
llvm::MachineMemOperand::Flags flags,
uint64_t s,
uint64_t a,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes(),
const llvm::MDNode* Ranges = nullptr,
SyncScope::ID SSID = SyncScope::System,
llvm::AtomicOrdering Ordering =
AtomicOrdering::NotAtomic,
llvm::AtomicOrdering FailureOrdering =
AtomicOrdering::NotAtomic)
MachineMemOperand(
llvm::MachinePointerInfo PtrInfo,
llvm::MachineMemOperand::Flags flags,
uint64_t s,
uint64_t a,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes(),
const llvm::MDNode* Ranges = nullptr,
SyncScope::ID SSID = SyncScope::System,
llvm::AtomicOrdering Ordering =
AtomicOrdering::NotAtomic,
llvm::AtomicOrdering FailureOrdering =
AtomicOrdering::NotAtomic)
Description
Construct a MachineMemOperand object with the specified PtrInfo, flags, size, and base alignment. For atomic operations the synchronization scope and atomic ordering requirements must also be specified. For cmpxchg atomic operations the atomic ordering requirements when store does not occur must also be specified.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:183
Parameters
- llvm::MachinePointerInfo PtrInfo
- llvm::MachineMemOperand::Flags flags
- uint64_t s
- uint64_t a
- const llvm::AAMDNodes& AAInfo = llvm::AAMDNodes()
- const llvm::MDNode* Ranges = nullptr
- SyncScope::ID SSID = SyncScope::System
- llvm::AtomicOrdering Ordering = AtomicOrdering::NotAtomic
- llvm::AtomicOrdering FailureOrdering = AtomicOrdering::NotAtomic
¶void Profile(llvm::FoldingSetNodeID& ID) const
void Profile(llvm::FoldingSetNodeID& ID) const
Description
Profile - Gather unique data for the object.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:292
Parameters
¶llvm::AAMDNodes getAAInfo() const
llvm::AAMDNodes getAAInfo() const
Description
Return the AA tags for the memory reference.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:235
¶unsigned int getAddrSpace() const
unsigned int getAddrSpace() const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:218
¶uint64_t getAlignment() const
uint64_t getAlignment() const
Description
Return the minimum known alignment in bytes of the actual memory reference.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:228
¶uint64_t getBaseAlignment() const
uint64_t getBaseAlignment() const
Description
Return the minimum known alignment in bytes of the base address, without the offset.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:232
¶llvm::AtomicOrdering getFailureOrdering() const
llvm::AtomicOrdering getFailureOrdering() const
Description
For cmpxchg atomic operations, return the atomic ordering requirements when store does not occur.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:254
¶llvm::MachineMemOperand::Flags getFlags() const
llvm::MachineMemOperand::Flags getFlags() const
Description
Return the raw flags of the source value,
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:209
¶int64_t getOffset() const
int64_t getOffset() const
Description
For normal values, this is a byte offset added to the base address. For PseudoSourceValue::FPRel values, this is the FrameIndex number.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:216
¶const void* getOpaqueValue() const
const void* getOpaqueValue() const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:206
¶llvm::AtomicOrdering getOrdering() const
llvm::AtomicOrdering getOrdering() const
Description
Return the atomic ordering requirements for this memory operation. For cmpxchg atomic operations, return the atomic ordering requirements when store occurs.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:248
¶const llvm::MachinePointerInfo& getPointerInfo()
const
const llvm::MachinePointerInfo& getPointerInfo()
const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:191
¶const llvm::PseudoSourceValue* getPseudoValue()
const
const llvm::PseudoSourceValue* getPseudoValue()
const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:202
¶const llvm::MDNode* getRanges() const
const llvm::MDNode* getRanges() const
Description
Return the range tag for the memory reference.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:238
¶uint64_t getSize() const
uint64_t getSize() const
Description
Return the size in bytes of the memory reference.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:221
¶uint64_t getSizeInBits() const
uint64_t getSizeInBits() const
Description
Return the size in bits of the memory reference.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:224
¶SyncScope::ID getSyncScopeID() const
SyncScope::ID getSyncScopeID() const
Description
Returns the synchronization scope ID for this memory operation.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:241
¶const llvm::Value* getValue() const
const llvm::Value* getValue() const
Description
Return the base address of the memory access. This may either be a normal LLVM IR Value, or one of the special values used in CodeGen. Special values are those obtained via PseudoSourceValue::getFixedStack(int), PseudoSourceValue::getStack, and other PseudoSourceValue member functions which return objects which stand for frame/stack pointer relative references and other special references which are not representable in the high-level IR.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:200
¶bool isAtomic() const
bool isAtomic() const
Description
Returns true if this operation has an atomic ordering requirement of unordered or higher, false otherwise.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:267
¶bool isDereferenceable() const
bool isDereferenceable() const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:262
¶bool isInvariant() const
bool isInvariant() const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:263
¶bool isLoad() const
bool isLoad() const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:258
¶bool isNonTemporal() const
bool isNonTemporal() const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:261
¶bool isStore() const
bool isStore() const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:259
¶bool isUnordered() const
bool isUnordered() const
Description
Returns true if this memory operation doesn't have any ordering constraints other than normal aliasing. Volatile and (ordered) atomic memory operations can't be reordered.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:272
¶bool isVolatile() const
bool isVolatile() const
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:260
¶void print(llvm::raw_ostream& OS,
llvm::ModuleSlotTracker& MST,
SmallVectorImpl<llvm::StringRef>& SSNs,
const llvm::LLVMContext& Context,
const llvm::MachineFrameInfo* MFI,
const llvm::TargetInstrInfo* TII) const
void print(llvm::raw_ostream& OS,
llvm::ModuleSlotTracker& MST,
SmallVectorImpl<llvm::StringRef>& SSNs,
const llvm::LLVMContext& Context,
const llvm::MachineFrameInfo* MFI,
const llvm::TargetInstrInfo* TII) const
Description
Support for operator < < . @ {
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:296
Parameters
- llvm::raw_ostream& OS
- llvm::ModuleSlotTracker& MST
- SmallVectorImpl<llvm::StringRef>& SSNs
- const llvm::LLVMContext& Context
- const llvm::MachineFrameInfo* MFI
- const llvm::TargetInstrInfo* TII
¶void refineAlignment(
const llvm::MachineMemOperand* MMO)
void refineAlignment(
const llvm::MachineMemOperand* MMO)
Description
Update this MachineMemOperand to reflect the alignment of MMO, if it has a greater alignment. This must only be used when the new alignment applies to all users of this MachineMemOperand.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:281
Parameters
- const llvm::MachineMemOperand* MMO
¶void setFlags(llvm::MachineMemOperand::Flags f)
void setFlags(llvm::MachineMemOperand::Flags f)
Description
Bitwise OR the current flags with the given flags.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:212
Parameters
- llvm::MachineMemOperand::Flags f
¶void setOffset(int64_t NewOffset)
void setOffset(int64_t NewOffset)
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:288
Parameters
- int64_t NewOffset
¶void setValue(const llvm::Value* NewSV)
void setValue(const llvm::Value* NewSV)
Description
Change the SourceValue for this MachineMemOperand. This should only be used when an object is being relocated and all references to it are being updated.
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:286
Parameters
- const llvm::Value* NewSV
¶void setValue(
const llvm::PseudoSourceValue* NewSV)
void setValue(
const llvm::PseudoSourceValue* NewSV)
Declared at: llvm/include/llvm/CodeGen/MachineMemOperand.h:287
Parameters
- const llvm::PseudoSourceValue* NewSV