16 #ifndef LLVM_CODEGEN_MACHINEMEMOPERAND_H
17 #define LLVM_CODEGEN_MACHINEMEMOPERAND_H
19 #include "llvm/Support/DataTypes.h"
24 class FoldingSetNodeID;
112 unsigned base_alignment,
const MDNode *TBAAInfo = 0,
113 const MDNode *Ranges = 0);
185 raw_ostream &
operator<<(raw_ostream &OS,
const MachineMemOperand &MRO);
The memory access reads data.
The memory access writes data.
static MachinePointerInfo getJumpTable()
MDNode - a tuple of other values.
static MachinePointerInfo getConstantPool()
const MachinePointerInfo & getPointerInfo() const
static MachinePointerInfo getFixedStack(int FI, int64_t offset=0)
MachinePointerInfo getWithOffset(int64_t O) const
The memory access is volatile.
ID
LLVM Calling Convention Representation.
const MDNode * getTBAAInfo() const
getTBAAInfo - Return the TBAA tag for the memory reference.
void setFlags(unsigned f)
Bitwise OR the current flags with the given flags.
uint64_t getAlignment() const
The memory access is non-temporal.
unsigned int getFlags() const
getFlags - Return the raw flags of the source value,
int64_t Offset
Offset - This is an offset from the base Value*.
void Profile(FoldingSetNodeID &ID) const
void setOffset(int64_t NewOffset)
The memory access is invariant.
void refineAlignment(const MachineMemOperand *MMO)
void setValue(const Value *NewSV)
unsigned getAddrSpace() const
MemOperandFlags
Flags values. These may be or'd together.
static MachinePointerInfo getStack(int64_t Offset)
getStack - stack pointer relative access.
const Value * getValue() const
bool isNonTemporal() const
static MachinePointerInfo getGOT()
raw_ostream & operator<<(raw_ostream &OS, const APInt &I)
MachinePointerInfo(const Value *v=0, int64_t offset=0)
const MDNode * getRanges() const
getRanges - Return the range tag for the memory reference.
LLVM Value Representation.
MachineMemOperand(MachinePointerInfo PtrInfo, unsigned flags, uint64_t s, unsigned base_alignment, const MDNode *TBAAInfo=0, const MDNode *Ranges=0)
int64_t getOffset() const
uint64_t getSize() const
getSize - Return the size in bytes of the memory reference.
uint64_t getBaseAlignment() const