Compute the size in bytes and offset within a stack slot of a spilled register or subregister.
Synopsis
Declared in <llvm/CodeGen/TargetInstrInfo.h>
virtual
bool
getStackSlotRange(
TargetRegisterClass const* RC,
unsigned int SubIdx,
unsigned int& Size,
unsigned int& Offset,
MachineFunction const& MF) const;
Description
Not all subregisters have computable spill slots. For example, subregisters registers may not be byte‐sized, and a pair of discontiguous subregisters has no single offset.
Targets with nontrivial bigendian implementations may need to override this, particularly to support spilled vector registers.
Return Value
true if both Size and Offset are successfully computed.
Parameters
Name |
Description |
Size [out] |
in bytes of the spilled value. |
Offset [out] |
in bytes within the stack slot. |
Created with MrDocs