Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
include/llvm/Target/TargetFrameLowering.h
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | if (!F->hasLocalLinkage() || F->hasAddressTaken() || | ||||
return false; | return false; | ||||
// Function should not be optimized as tail call. | // Function should not be optimized as tail call. | ||||
for (const User *U : F->users()) | for (const User *U : F->users()) | ||||
if (auto CS = ImmutableCallSite(U)) | if (auto CS = ImmutableCallSite(U)) | ||||
if (CS.isTailCall()) | if (CS.isTailCall()) | ||||
return false; | return false; | ||||
return true; | return true; | ||||
} | } | ||||
/// Return initial CFA offset value i.e. the one valid at the beginning of the | |||||
/// function (before any stack operations). | |||||
aprantl: `///` please | |||||
virtual int getInitialCFAOffset(const MachineFunction &MF) const; | |||||
MatzeB: - Use doxygen `///` comments.
- I guess `const MachineFunction &MF` should work as well? | |||||
/// Return initial CFA register value i.e. the one valid at the beginning of | |||||
/// the function (before any stack operations). | |||||
virtual unsigned getInitialCFARegister(const MachineFunction &MF) const; | |||||
ditto MatzeB: ditto | |||||
}; | }; | ||||
} // End llvm namespace | } // End llvm namespace | ||||
#endif | #endif |
/// please