This refactors getArgumentPopSize() to prepare for D76570
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
| llvm/lib/Target/AArch64/AArch64FrameLowering.cpp | ||
|---|---|---|
| 190 | I think this could be a nicer refactoring, for a future NFC, but ignore this for now (in interest of straight forward NFC reviewing): const bool IsTailCallReturn = (MBB.end() != MBBI) &&
[](unsigned RetOpcode) {
return (RetOpcode == AArch64::TCRETURNdi ||
RetOpcode == AArch64::TCRETURNri ||
RetOpcode == AArch64::TCRETURNriBTI);
} (MBBI->getOpcode()); | |
I think this could be a nicer refactoring, for a future NFC, but ignore this for now (in interest of straight forward NFC reviewing):
const bool IsTailCallReturn = (MBB.end() != MBBI) && [](unsigned RetOpcode) { return (RetOpcode == AArch64::TCRETURNdi || RetOpcode == AArch64::TCRETURNri || RetOpcode == AArch64::TCRETURNriBTI); } (MBBI->getOpcode());