[llvm] 7a18933 - [NFC] Add doxygen comment for hasFp in RISCVFrameLowering.cpp

Shivam Gupta via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 6 10:04:40 PDT 2021


Author: Shivam Gupta
Date: 2021-10-06T22:35:28+05:30
New Revision: 7a189333ed652e1120c739ac21b6dd78b9e80ed4

URL: https://github.com/llvm/llvm-project/commit/7a189333ed652e1120c739ac21b6dd78b9e80ed4
DIFF: https://github.com/llvm/llvm-project/commit/7a189333ed652e1120c739ac21b6dd78b9e80ed4.diff

LOG: [NFC] Add doxygen comment for hasFp in RISCVFrameLowering.cpp

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVFrameLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
index 78d77e4278cc..9ab16c33d6a4 100644
--- a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -220,6 +220,10 @@ getRestoreLibCallName(const MachineFunction &MF,
   return RestoreLibCalls[LibCallID];
 }
 
+// Return true if the specified function should have a dedicated frame
+// pointer register.  This is true if frame pointer elimination is
+// disabled, if it needs dynamic stack realignment, if the function has
+// variable sized allocas, or if the frame address is taken.
 bool RISCVFrameLowering::hasFP(const MachineFunction &MF) const {
   const TargetRegisterInfo *RegInfo = MF.getSubtarget().getRegisterInfo();
 


        


More information about the llvm-commits mailing list