LLVM API Documentation
#include <MachineMemOperand.h>

Public Types | |
| enum | MemOperandFlags { MOLoad = 1, MOStore = 2, MOVolatile = 4 } |
| Flags values. These may be or'd together. More... | |
Public Member Functions | |
| MachineMemOperand (const Value *v, unsigned int f, int64_t o, uint64_t s, unsigned int a) | |
| const Value * | getValue () const |
| unsigned int | getFlags () const |
| getFlags - Return the raw flags of the source value, | |
| int64_t | getOffset () const |
| uint64_t | getSize () const |
| getSize - Return the size in bytes of the memory reference. | |
| unsigned int | getAlignment () const |
| bool | isLoad () const |
| bool | isStore () const |
| bool | isVolatile () const |
| void | Profile (FoldingSetNodeID &ID) const |
Definition at line 32 of file MachineMemOperand.h.
Flags values. These may be or'd together.
| MOLoad | The memory access reads data. |
| MOStore | The memory access writes data. |
| MOVolatile | The memory access is volatile. |
Definition at line 40 of file MachineMemOperand.h.
| MachineMemOperand::MachineMemOperand | ( | const Value * | v, | |
| unsigned int | f, | |||
| int64_t | o, | |||
| uint64_t | s, | |||
| unsigned int | a | |||
| ) |
MachineMemOperand - Construct an MachineMemOperand object with the specified address Value, flags, offset, size, and alignment.
Definition at line 262 of file MachineInstr.cpp.
References isLoad(), llvm::isPowerOf2_32(), and isStore().
| const Value* llvm::MachineMemOperand::getValue | ( | ) | const [inline] |
getValue - Return the base address of the memory access. Special values are PseudoSourceValue::FPRel, PseudoSourceValue::SPRel, and the other PseudoSourceValue members which indicate references to frame/stack pointer relative references and other special references.
Definition at line 58 of file MachineMemOperand.h.
Referenced by llvm::SelectionDAG::getMemOperand(), and llvm::MachineInstr::print().
| unsigned int llvm::MachineMemOperand::getFlags | ( | ) | const [inline] |
getFlags - Return the raw flags of the source value,
Definition at line 61 of file MachineMemOperand.h.
| int64_t llvm::MachineMemOperand::getOffset | ( | ) | const [inline] |
getOffset - For normal values, this is a byte offset added to the base address. For PseudoSourceValue::FPRel values, this is the FrameIndex number.
Definition at line 66 of file MachineMemOperand.h.
Referenced by llvm::MachineInstr::print().
| uint64_t llvm::MachineMemOperand::getSize | ( | ) | const [inline] |
getSize - Return the size in bytes of the memory reference.
Definition at line 69 of file MachineMemOperand.h.
Referenced by llvm::MachineInstr::print().
| unsigned int llvm::MachineMemOperand::getAlignment | ( | ) | const [inline] |
getAlignment - Return the minimum known alignment in bytes of the memory reference.
Definition at line 73 of file MachineMemOperand.h.
Referenced by llvm::MachineInstr::print().
| bool llvm::MachineMemOperand::isLoad | ( | ) | const [inline] |
Definition at line 75 of file MachineMemOperand.h.
References MOLoad.
Referenced by MachineMemOperand(), and llvm::MachineInstr::print().
| bool llvm::MachineMemOperand::isStore | ( | ) | const [inline] |
Definition at line 76 of file MachineMemOperand.h.
References MOStore.
Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), MachineMemOperand(), and llvm::MachineInstr::print().
| bool llvm::MachineMemOperand::isVolatile | ( | ) | const [inline] |
Definition at line 77 of file MachineMemOperand.h.
References MOVolatile.
Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), and llvm::MachineInstr::print().
| void MachineMemOperand::Profile | ( | FoldingSetNodeID & | ID | ) | const |
Profile - Gather unique data for the object.
Definition at line 272 of file MachineInstr.cpp.
References llvm::FoldingSetNodeID::AddInteger(), and llvm::FoldingSetNodeID::AddPointer().
Referenced by AddNodeIDCustom(), and llvm::SelectionDAG::getMemOperand().
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.