Apply operand OpIdx's constraints to register class CurRC.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

TargetRegisterClass const*
getRegClassConstraintEffect(
    unsigned int OpIdx,
    TargetRegisterClass const* CurRC,
    TargetInstrInfo const* TII,
    TargetRegisterInfo const* TRI) const;

Description

Returns the class satisfying both CurRC and the operand, or null.

Return Value

Constrained register class, or null if none exists.

Parameters

Name

Description

OpIdx

Index of the register operand applying constraints.

CurRC

Current candidate register class (non‐null).

TII

Target instruction info.

TRI

Target register info.

Preconditions

  • CurRC must not be NULL.

  • The operand at OpIdx must be a register.

Created with MrDocs