Check if DstReg can be replaced with SrcReg depending on the register constraints.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
bool
canReplaceReg(
Register DstReg,
Register SrcReg,
MachineRegisterInfo& MRI);
Return Value
True if DstReg can be replaced with SrcReg.
Parameters
Name |
Description |
DstReg |
Destination register that would be replaced. |
SrcReg |
Source register proposed as the replacement. |
MRI |
Register information for the function. |
Created with MrDocs