|
LLVM
5.0.0
|
This class contains a discriminated union of information about pointers in memory operands, relating them back to LLVM IR or to virtual locations (such as frame indices) that are exposed during codegen. More...
#include "llvm/CodeGen/MachineMemOperand.h"
Public Member Functions | |
| MachinePointerInfo (const Value *v=nullptr, int64_t offset=0) | |
| MachinePointerInfo (const PseudoSourceValue *v, int64_t offset=0) | |
| MachinePointerInfo | getWithOffset (int64_t O) const |
| bool | isDereferenceable (unsigned Size, LLVMContext &C, const DataLayout &DL) const |
| Return true if memory region [V, V+Offset+Size) is known to be dereferenceable. More... | |
| unsigned | getAddrSpace () const |
| Return the LLVM IR address space number that this pointer points into. More... | |
Static Public Member Functions | |
| static MachinePointerInfo | getConstantPool (MachineFunction &MF) |
| Return a MachinePointerInfo record that refers to the constant pool. More... | |
| static MachinePointerInfo | getFixedStack (MachineFunction &MF, int FI, int64_t Offset=0) |
| Return a MachinePointerInfo record that refers to the specified FrameIndex. More... | |
| static MachinePointerInfo | getJumpTable (MachineFunction &MF) |
| Return a MachinePointerInfo record that refers to a jump table entry. More... | |
| static MachinePointerInfo | getGOT (MachineFunction &MF) |
| Return a MachinePointerInfo record that refers to a GOT entry. More... | |
| static MachinePointerInfo | getStack (MachineFunction &MF, int64_t Offset) |
| Stack pointer relative access. More... | |
Public Attributes | |
| PointerUnion< const Value *, const PseudoSourceValue * > | V |
| This is the IR pointer value for the access, or it is null if unknown. More... | |
| int64_t | Offset |
| Offset - This is an offset from the base Value*. More... | |
This class contains a discriminated union of information about pointers in memory operands, relating them back to LLVM IR or to virtual locations (such as frame indices) that are exposed during codegen.
Definition at line 39 of file MachineMemOperand.h.
|
inlineexplicit |
Definition at line 48 of file MachineMemOperand.h.
Referenced by getWithOffset().
|
inlineexplicit |
Definition at line 51 of file MachineMemOperand.h.
| unsigned MachinePointerInfo::getAddrSpace | ( | ) | const |
Return the LLVM IR address space number that this pointer points into.
getAddrSpace - Return the LLVM IR address space number that this pointer points into.
Definition at line 565 of file MachineInstr.cpp.
Referenced by AddNodeIDCustom(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::MemSDNode::getAddressSpace(), llvm::SelectionDAG::getAtomic(), llvm::SelectionDAG::getIndexedStore(), llvm::SelectionDAG::getLoad(), llvm::SelectionDAG::getMaskedGather(), llvm::SelectionDAG::getMaskedLoad(), llvm::SelectionDAG::getMaskedScatter(), llvm::SelectionDAG::getMaskedStore(), llvm::SelectionDAG::getMemcpy(), getMemcpyLoadsAndStores(), llvm::SelectionDAG::getMemIntrinsicNode(), llvm::SelectionDAG::getMemmove(), getMemmoveLoadsAndStores(), llvm::SelectionDAG::getMemset(), getMemsetStores(), llvm::SelectionDAG::getStore(), llvm::SelectionDAG::getTargetMemSDNode(), and llvm::SelectionDAG::getTruncStore().
|
static |
Return a MachinePointerInfo record that refers to the constant pool.
getConstantPool - Return a MachinePointerInfo record that refers to the constant pool.
Definition at line 587 of file MachineInstr.cpp.
Referenced by llvm::X86TargetLowering::BuildFILD(), and lowerBuildVectorAsBroadcast().
|
static |
Return a MachinePointerInfo record that refers to the specified FrameIndex.
getFixedStack - Return a MachinePointerInfo record that refers to the the specified FrameIndex.
Definition at line 593 of file MachineInstr.cpp.
Referenced by llvm::addFrameReference(), llvm::X86TargetLowering::BuildFILD(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::X86FrameLowering::emitPrologue(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), llvm::TargetInstrInfo::foldMemoryOperand(), getAddressForMemoryInput(), getFrameIndexMMO(), llvm::MipsInstrInfo::GetMemOperand(), IncomingArgHandler::getStackAddress(), InferPointerInfo(), llvm::Thumb1InstrInfo::loadRegFromStackSlot(), llvm::Thumb2InstrInfo::loadRegFromStackSlot(), llvm::MSP430InstrInfo::loadRegFromStackSlot(), llvm::XCoreInstrInfo::loadRegFromStackSlot(), llvm::AVRInstrInfo::loadRegFromStackSlot(), llvm::SparcInstrInfo::loadRegFromStackSlot(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::HexagonInstrInfo::loadRegFromStackSlot(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::ARMBaseInstrInfo::loadRegFromStackSlot(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), llvm::SystemZTargetLowering::LowerCall(), llvm::TargetLowering::LowerCallTo(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::AArch64FrameLowering::restoreCalleeSavedRegisters(), llvm::SIRegisterInfo::restoreSGPR(), llvm::AArch64FrameLowering::spillCalleeSavedRegisters(), spillIncomingStatepointValue(), llvm::SIRegisterInfo::spillSGPR(), llvm::Thumb1InstrInfo::storeRegToStackSlot(), llvm::Thumb2InstrInfo::storeRegToStackSlot(), llvm::MSP430InstrInfo::storeRegToStackSlot(), llvm::XCoreInstrInfo::storeRegToStackSlot(), llvm::AVRInstrInfo::storeRegToStackSlot(), llvm::SparcInstrInfo::storeRegToStackSlot(), llvm::SIInstrInfo::storeRegToStackSlot(), llvm::HexagonInstrInfo::storeRegToStackSlot(), llvm::PPCInstrInfo::storeRegToStackSlot(), llvm::ARMBaseInstrInfo::storeRegToStackSlot(), llvm::AArch64InstrInfo::storeRegToStackSlot(), StoreTailCallArgumentsToStackSlot(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().
|
static |
Return a MachinePointerInfo record that refers to a GOT entry.
Definition at line 602 of file MachineInstr.cpp.
Referenced by expandLoadStackGuard(), llvm::ARMBaseInstrInfo::expandLoadStackGuardBase(), llvm::MipsTargetLowering::getAddrLocal(), getTOCEntry(), LowerToTLSExecModel(), and llvm::SparcTargetLowering::makeAddress().
|
static |
Return a MachinePointerInfo record that refers to a jump table entry.
Definition at line 598 of file MachineInstr.cpp.
|
static |
Stack pointer relative access.
Definition at line 606 of file MachineInstr.cpp.
Referenced by OutgoingArgHandler::getStackAddress(), and llvm::HexagonTargetLowering::LowerCall().
|
inline |
Definition at line 55 of file MachineMemOperand.h.
References llvm::PointerUnion< PT1, PT2 >::get(), llvm::PointerUnion< PT1, PT2 >::is(), llvm::PointerUnion< PT1, PT2 >::isNull(), MachinePointerInfo(), Offset, and V.
Referenced by combineStore(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), llvm::PPCTargetLowering::PerformDAGCombine(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::TargetLowering::scalarizeVectorStore(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifySetCC(), and llvm::AMDGPUTargetLowering::SplitVectorStore().
| bool MachinePointerInfo::isDereferenceable | ( | unsigned | Size, |
| LLVMContext & | C, | ||
| const DataLayout & | DL | ||
| ) | const |
Return true if memory region [V, V+Offset+Size) is known to be dereferenceable.
isDereferenceable - Return true if V is always dereferenceable for Offset + Size byte.
Definition at line 572 of file MachineInstr.cpp.
Referenced by getMemcpyLoadsAndStores(), and getMemmoveLoadsAndStores().
| int64_t llvm::MachinePointerInfo::Offset |
Offset - This is an offset from the base Value*.
Definition at line 46 of file MachineMemOperand.h.
Referenced by getWithOffset().
| PointerUnion<const Value *, const PseudoSourceValue *> llvm::MachinePointerInfo::V |
This is the IR pointer value for the access, or it is null if unknown.
If this is null, then the access is to a pointer in the default address space.
Definition at line 43 of file MachineMemOperand.h.
Referenced by llvm::SelectionDAG::getLoad(), llvm::SelectionDAG::getStore(), llvm::SelectionDAG::getTruncStore(), getWithOffset(), isStackPtrRelative(), and Query().
1.8.6