Return a virtual register for an incoming physical argument register.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/Utils.h>

Register
getFunctionLiveInPhysReg(
    MachineFunction& MF,
    TargetInstrInfo const& TII,
    MCRegister PhysReg,
    TargetRegisterClass const& RC,
    DebugLoc const& DL,
    LLT RegTy = LLT());

Description

Return a virtual register corresponding to the incoming argument register PhysReg. This register is expected to have class RC, and optional type RegTy. This assumes all references to the register will use the same type.

If there is an existing live‐in argument register, it will be returned. This will also ensure there is a valid copy.

Return Value

The virtual register for the live‐in physical register.

Parameters

Name

Description

MF

Machine function receiving the live‐in.

TII

Target instruction info used to build copies.

PhysReg

Incoming physical argument register.

RC

Register class expected for the virtual register.

DL

Debug location for any inserted copy.

RegTy

Optional LLT assigned to the virtual register.

Created with MrDocs