llvm::MachineOperand::CreateRegMask

Create a register mask operand referencing Mask.

Synopsis

Declared in <llvm/CodeGen/MachineOperand.h>

static
MachineOperand
CreateRegMask(uint32_t const* Mask);

Description

The operand does not take ownership of the memory referenced by Mask; it must remain valid for the lifetime of the operand.

A RegMask operand represents a set of non-clobbered physical registers on an instruction that clobbers many registers, typically a call. The bit mask has a bit set for each physreg that is preserved by this instruction, as described in the documentation for TargetRegisterInfo::getCallPreservedMask().

Any physreg with a 0 bit in the mask is clobbered by the instruction.

Return Value

A new MO_RegisterMask MachineOperand.

Parameters

NameDescription
MaskBit mask of preserved physical registers.