@@ -8642,13 +8642,13 @@ static void analyzeCallOperands(const AArch64TargetLowering &TLI,
8642
8642
}
8643
8643
8644
8644
static SMECallAttrs
8645
- getSMECallAttrs(const Function &Function ,
8645
+ getSMECallAttrs(const Function &Caller ,
8646
8646
const TargetLowering::CallLoweringInfo &CLI) {
8647
8647
if (CLI.CB)
8648
8648
return SMECallAttrs(*CLI.CB);
8649
8649
if (auto *ES = dyn_cast<ExternalSymbolSDNode>(CLI.Callee))
8650
- return SMECallAttrs(SMEAttrs(Function ), SMEAttrs(ES->getSymbol()));
8651
- return SMECallAttrs(SMEAttrs(Function ), SMEAttrs(SMEAttrs::Normal));
8650
+ return SMECallAttrs(SMEAttrs(Caller ), SMEAttrs(ES->getSymbol()));
8651
+ return SMECallAttrs(SMEAttrs(Caller ), SMEAttrs(SMEAttrs::Normal));
8652
8652
}
8653
8653
8654
8654
bool AArch64TargetLowering::isEligibleForTailCallOptimization(
@@ -8964,7 +8964,8 @@ static SDValue emitSMEStateSaveRestore(const AArch64TargetLowering &TLI,
8964
8964
return TLI.LowerCallTo(CLI).second;
8965
8965
}
8966
8966
8967
- static unsigned getSMCondition(const SMECallAttrs &CallAttrs) {
8967
+ static AArch64SME::ToggleCondition
8968
+ getSMToggleCondition(const SMECallAttrs &CallAttrs) {
8968
8969
if (!CallAttrs.caller().hasStreamingCompatibleInterface() ||
8969
8970
CallAttrs.caller().hasStreamingBody())
8970
8971
return AArch64SME::Always;
@@ -9473,9 +9474,9 @@ AArch64TargetLowering::LowerCall(CallLoweringInfo &CLI,
9473
9474
InGlue = Chain.getValue(1);
9474
9475
}
9475
9476
9476
- SDValue NewChain =
9477
- changeStreamingMode( DAG, DL, CallAttrs.callee().hasStreamingInterface(),
9478
- Chain, InGlue, getSMCondition (CallAttrs), PStateSM);
9477
+ SDValue NewChain = changeStreamingMode(
9478
+ DAG, DL, CallAttrs.callee().hasStreamingInterface(), Chain, InGlue ,
9479
+ getSMToggleCondition (CallAttrs), PStateSM);
9479
9480
Chain = NewChain.getValue(0);
9480
9481
InGlue = NewChain.getValue(1);
9481
9482
}
@@ -9662,7 +9663,7 @@ AArch64TargetLowering::LowerCall(CallLoweringInfo &CLI,
9662
9663
assert(PStateSM && "Expected a PStateSM to be set");
9663
9664
Result = changeStreamingMode(
9664
9665
DAG, DL, !CallAttrs.callee().hasStreamingInterface(), Result, InGlue,
9665
- getSMCondition (CallAttrs), PStateSM);
9666
+ getSMToggleCondition (CallAttrs), PStateSM);
9666
9667
9667
9668
if (!Subtarget->isTargetDarwin() || Subtarget->hasSVE()) {
9668
9669
InGlue = Result.getValue(1);
0 commit comments