We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae3111 commit 34284ddCopy full SHA for 34284dd
llvm/lib/Target/SBF/SBFISelLowering.cpp
@@ -400,7 +400,8 @@ SDValue SBFTargetLowering::LowerFormalArguments(
400
int64_t Offset = static_cast<int64_t>(VA.getLocMemOffset() + Size);
401
// Since the stack grows to the opposite direction in V3, the offset
402
// is inverted.
403
- if (!Subtarget->getHasDynamicFramesV3())
+ if (Subtarget->getFrameLowering()->getStackGrowthDirection() ==
404
+ TargetFrameLowering::StackGrowsDown)
405
Offset = -Offset;
406
407
const int FrameIndex =
@@ -527,7 +528,8 @@ SDValue SBFTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
527
528
529
530
- if (Subtarget->getHasDynamicFramesV3())
531
532
+ TargetFrameLowering::StackGrowsUp)
533
534
535
int FrameIndex = MF.getFrameInfo().CreateFixedObject(
llvm/lib/Target/SBF/SBFSubtarget.cpp
@@ -66,11 +66,11 @@ void SBFSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) {
66
67
SBFSubtarget::SBFSubtarget(const Triple &TT, const std::string &CPU,
68
const std::string &FS, const TargetMachine &TM)
69
-: SBFGenSubtargetInfo(TT, cpuFromSubArch(TT, CPU),
70
- /*TuneCPU*/ cpuFromSubArch(TT, CPU), FS),
71
- InstrInfo(), FrameLowering(initializeSubtargetDependencies(
72
- TT, cpuFromSubArch(TT, CPU), FS)
73
- .getHasDynamicFramesV3()),
+ : SBFGenSubtargetInfo(TT, cpuFromSubArch(TT, CPU),
+ /*TuneCPU*/ cpuFromSubArch(TT, CPU), FS),
+ InstrInfo(), FrameLowering(initializeSubtargetDependencies(
+ TT, cpuFromSubArch(TT, CPU), FS)
+ .getHasDynamicFramesV3()),
74
TLInfo(TM, *this) {
75
assert(TT.getArch() == Triple::sbf && "expected Triple::sbf");
76
0 commit comments