diff --git a/llvm/lib/Target/RISCV/RISCVFrameLowering.h b/llvm/lib/Target/RISCV/RISCVFrameLowering.h --- a/llvm/lib/Target/RISCV/RISCVFrameLowering.h +++ b/llvm/lib/Target/RISCV/RISCVFrameLowering.h @@ -57,19 +57,17 @@ MutableArrayRef CSI, const TargetRegisterInfo *TRI) const override; - /** - * Returns whether the stack pointer (SP) should be adjusted in two - * adjustments in the prologue and epilogue ("split"), or only adjusted once. - * - * Splitting the SP adjustment can result in better code size. - * - * The result will be `None` if the SP adjustment should not be split, or an - * Optional containing the first adjustment amount if the adjustment should be - * split. - * - * The first SP adjustment will never be more than the function's StackSize, - * so that the second SP adjustment is monotinic. - */ + /// Returns whether the stack pointer (SP) should be adjusted in two + /// adjustments in the prologue and epilogue ("split"), or only adjusted once. + /// + /// Splitting the SP adjustment can result in better code size. + /// + /// The result will be `None` if the SP adjustment should not be split, or an + /// Optional containing the first adjustment amount if the adjustment should be + /// split. + /// + /// The first SP adjustment will never be more than the function's StackSize, + /// so that the second SP adjustment is monotinic. Optional getFirstSPAdjustmentAmount(const MachineFunction &MF) const;