Commit 106eb46
authored
[AArch64] Break up
`emitPrologue` was almost 1k SLOC, with a large portion not actually
related to emitting the vast majority of prologues.
This patch creates a new class `AArch64PrologueEmitter` for emitting the
prologue, which keeps common state/target classes as members. This makes
adding methods that handle niche cases easy, and allows methods to be
marked "const" when they don't redefine flags/state.
With this change, the core "emitPrologue" is around 275 LOC, with cases
like Windows stack probes or Swift frame pointers split into routines.
This makes following the logic much easier.AArch64FrameLowering::emitPrologue (NFCI) (#157485)1 parent b7e31e7 commit 106eb46
File tree
5 files changed
+1037
-822
lines changed- llvm/lib/Target/AArch64
5 files changed
+1037
-822
lines changed
0 commit comments