Commit 61d73a6
committed
[AArch64] Break up
`emitPrologue` was almost 1k SLOC, with a large portion of that 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 off into their
own routines.AArch64FrameLowering::emitPrologue (NFCI)1 parent 7506900 commit 61d73a6
File tree
5 files changed
+1037
-822
lines changed- llvm/lib/Target/AArch64
5 files changed
+1037
-822
lines changed
0 commit comments