llvm::MachineInstr::getSpillSize

Return a valid size if the instruction is a spill instruction.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

std::optional<LocationSize>
getSpillSize(TargetInstrInfo const* TII) const;

Return Value

Spill/restore size when applicable; otherwise std::nullopt.

Parameters

NameDescription
TIITarget instruction info used to classify the instruction.