Constrain selected‐instruction operands to the instruction register classes.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
void
constrainSelectedInstRegOperands(
MachineInstr& I,
TargetInstrInfo const& TII,
TargetRegisterInfo const& TRI,
RegisterBankInfo const& RBI);
Description
Mutate the newly‐selected instruction I to constrain its (possibly generic) virtual register operands to the instruction's register class. This could involve inserting COPYs before (for uses) or after (for defs). This requires the number of operands to match the instruction description.
Parameters
Name |
Description |
I |
Newly selected instruction whose operands are constrained. |
TII |
Target instruction info. |
TRI |
Target register info. |
RBI |
Register bank info. |
Created with MrDocs