@@ -3337,9 +3337,9 @@ class VarArgsLoweringHelper {
3337
3337
SelectionDAG &DAG, const X86Subtarget &Subtarget,
3338
3338
CallingConv::ID CallConv, CCState &CCInfo)
3339
3339
: FuncInfo(FuncInfo), DL(Loc), DAG(DAG), Subtarget(Subtarget),
3340
- MachineFunction (DAG.getMachineFunction()),
3341
- Function(MachineFunction .getFunction()),
3342
- FrameInfo(MachineFunction .getFrameInfo()),
3340
+ TheMachineFunction (DAG.getMachineFunction()),
3341
+ Function(TheMachineFunction .getFunction()),
3342
+ FrameInfo(TheMachineFunction .getFrameInfo()),
3343
3343
FrameLowering(*Subtarget.getFrameLowering()),
3344
3344
TargLowering(DAG.getTargetLoweringInfo()), CallConv(CallConv),
3345
3345
CCInfo(CCInfo) {}
@@ -3359,7 +3359,7 @@ class VarArgsLoweringHelper {
3359
3359
const SDLoc &DL;
3360
3360
SelectionDAG &DAG;
3361
3361
const X86Subtarget &Subtarget;
3362
- MachineFunction &MachineFunction ;
3362
+ MachineFunction &TheMachineFunction ;
3363
3363
const Function &Function;
3364
3364
MachineFrameInfo &FrameInfo;
3365
3365
const TargetFrameLowering &FrameLowering;
@@ -3390,7 +3390,7 @@ void VarArgsLoweringHelper::createVarArgAreaAndStoreRegisters(
3390
3390
// Find the first unallocated argument registers.
3391
3391
ArrayRef<MCPhysReg> ArgGPRs = get64BitArgumentGPRs(CallConv, Subtarget);
3392
3392
ArrayRef<MCPhysReg> ArgXMMs =
3393
- get64BitArgumentXMMs(MachineFunction , CallConv, Subtarget);
3393
+ get64BitArgumentXMMs(TheMachineFunction , CallConv, Subtarget);
3394
3394
unsigned NumIntRegs = CCInfo.getFirstUnallocated(ArgGPRs);
3395
3395
unsigned NumXMMRegs = CCInfo.getFirstUnallocated(ArgXMMs);
3396
3396
@@ -3424,15 +3424,15 @@ void VarArgsLoweringHelper::createVarArgAreaAndStoreRegisters(
3424
3424
3425
3425
// Gather all the live in physical registers.
3426
3426
for (MCPhysReg Reg : ArgGPRs.slice(NumIntRegs)) {
3427
- unsigned GPR = MachineFunction .addLiveIn(Reg, &X86::GR64RegClass);
3427
+ unsigned GPR = TheMachineFunction .addLiveIn(Reg, &X86::GR64RegClass);
3428
3428
LiveGPRs.push_back(DAG.getCopyFromReg(Chain, DL, GPR, MVT::i64));
3429
3429
}
3430
3430
const auto &AvailableXmms = ArgXMMs.slice(NumXMMRegs);
3431
3431
if (!AvailableXmms.empty()) {
3432
- unsigned AL = MachineFunction .addLiveIn(X86::AL, &X86::GR8RegClass);
3432
+ unsigned AL = TheMachineFunction .addLiveIn(X86::AL, &X86::GR8RegClass);
3433
3433
ALVal = DAG.getCopyFromReg(Chain, DL, AL, MVT::i8);
3434
3434
for (MCPhysReg Reg : AvailableXmms) {
3435
- unsigned XMMReg = MachineFunction .addLiveIn(Reg, &X86::VR128RegClass);
3435
+ unsigned XMMReg = TheMachineFunction .addLiveIn(Reg, &X86::VR128RegClass);
3436
3436
LiveXMMRegs.push_back(
3437
3437
DAG.getCopyFromReg(Chain, DL, XMMReg, MVT::v4f32));
3438
3438
}
@@ -3504,15 +3504,15 @@ void VarArgsLoweringHelper::forwardMustTailParameters(SDValue &Chain) {
3504
3504
3505
3505
// Forward AL for SysV x86_64 targets, since it is used for varargs.
3506
3506
if (is64Bit() && !isWin64() && !CCInfo.isAllocated(X86::AL)) {
3507
- unsigned ALVReg = MachineFunction .addLiveIn(X86::AL, &X86::GR8RegClass);
3507
+ unsigned ALVReg = TheMachineFunction .addLiveIn(X86::AL, &X86::GR8RegClass);
3508
3508
Forwards.push_back(ForwardedRegister(ALVReg, X86::AL, MVT::i8));
3509
3509
}
3510
3510
3511
3511
// Copy all forwards from physical to virtual registers.
3512
3512
for (ForwardedRegister &FR : Forwards) {
3513
3513
// FIXME: Can we use a less constrained schedule?
3514
3514
SDValue RegVal = DAG.getCopyFromReg(Chain, DL, FR.VReg, FR.VT);
3515
- FR.VReg = MachineFunction .getRegInfo().createVirtualRegister(
3515
+ FR.VReg = TheMachineFunction .getRegInfo().createVirtualRegister(
3516
3516
TargLowering.getRegClassFor(FR.VT));
3517
3517
Chain = DAG.getCopyToReg(Chain, DL, FR.VReg, RegVal);
3518
3518
}
0 commit comments