Skip to content

Commit 293c6d3

Browse files
committed
Fix buildbots after aa1eb51.
1 parent 56926ae commit 293c6d3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -3337,9 +3337,9 @@ class VarArgsLoweringHelper {
33373337
SelectionDAG &DAG, const X86Subtarget &Subtarget,
33383338
CallingConv::ID CallConv, CCState &CCInfo)
33393339
: 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()),
33433343
FrameLowering(*Subtarget.getFrameLowering()),
33443344
TargLowering(DAG.getTargetLoweringInfo()), CallConv(CallConv),
33453345
CCInfo(CCInfo) {}
@@ -3359,7 +3359,7 @@ class VarArgsLoweringHelper {
33593359
const SDLoc &DL;
33603360
SelectionDAG &DAG;
33613361
const X86Subtarget &Subtarget;
3362-
MachineFunction &MachineFunction;
3362+
MachineFunction &TheMachineFunction;
33633363
const Function &Function;
33643364
MachineFrameInfo &FrameInfo;
33653365
const TargetFrameLowering &FrameLowering;
@@ -3390,7 +3390,7 @@ void VarArgsLoweringHelper::createVarArgAreaAndStoreRegisters(
33903390
// Find the first unallocated argument registers.
33913391
ArrayRef<MCPhysReg> ArgGPRs = get64BitArgumentGPRs(CallConv, Subtarget);
33923392
ArrayRef<MCPhysReg> ArgXMMs =
3393-
get64BitArgumentXMMs(MachineFunction, CallConv, Subtarget);
3393+
get64BitArgumentXMMs(TheMachineFunction, CallConv, Subtarget);
33943394
unsigned NumIntRegs = CCInfo.getFirstUnallocated(ArgGPRs);
33953395
unsigned NumXMMRegs = CCInfo.getFirstUnallocated(ArgXMMs);
33963396

@@ -3424,15 +3424,15 @@ void VarArgsLoweringHelper::createVarArgAreaAndStoreRegisters(
34243424

34253425
// Gather all the live in physical registers.
34263426
for (MCPhysReg Reg : ArgGPRs.slice(NumIntRegs)) {
3427-
unsigned GPR = MachineFunction.addLiveIn(Reg, &X86::GR64RegClass);
3427+
unsigned GPR = TheMachineFunction.addLiveIn(Reg, &X86::GR64RegClass);
34283428
LiveGPRs.push_back(DAG.getCopyFromReg(Chain, DL, GPR, MVT::i64));
34293429
}
34303430
const auto &AvailableXmms = ArgXMMs.slice(NumXMMRegs);
34313431
if (!AvailableXmms.empty()) {
3432-
unsigned AL = MachineFunction.addLiveIn(X86::AL, &X86::GR8RegClass);
3432+
unsigned AL = TheMachineFunction.addLiveIn(X86::AL, &X86::GR8RegClass);
34333433
ALVal = DAG.getCopyFromReg(Chain, DL, AL, MVT::i8);
34343434
for (MCPhysReg Reg : AvailableXmms) {
3435-
unsigned XMMReg = MachineFunction.addLiveIn(Reg, &X86::VR128RegClass);
3435+
unsigned XMMReg = TheMachineFunction.addLiveIn(Reg, &X86::VR128RegClass);
34363436
LiveXMMRegs.push_back(
34373437
DAG.getCopyFromReg(Chain, DL, XMMReg, MVT::v4f32));
34383438
}
@@ -3504,15 +3504,15 @@ void VarArgsLoweringHelper::forwardMustTailParameters(SDValue &Chain) {
35043504

35053505
// Forward AL for SysV x86_64 targets, since it is used for varargs.
35063506
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);
35083508
Forwards.push_back(ForwardedRegister(ALVReg, X86::AL, MVT::i8));
35093509
}
35103510

35113511
// Copy all forwards from physical to virtual registers.
35123512
for (ForwardedRegister &FR : Forwards) {
35133513
// FIXME: Can we use a less constrained schedule?
35143514
SDValue RegVal = DAG.getCopyFromReg(Chain, DL, FR.VReg, FR.VT);
3515-
FR.VReg = MachineFunction.getRegInfo().createVirtualRegister(
3515+
FR.VReg = TheMachineFunction.getRegInfo().createVirtualRegister(
35163516
TargLowering.getRegClassFor(FR.VT));
35173517
Chain = DAG.getCopyToReg(Chain, DL, FR.VReg, RegVal);
35183518
}

0 commit comments

Comments
 (0)