[llvm][AArch64ISelDAGToDAG] support -{start|stop}-{before|after}=aarch64-isel
authorNick Desaulniers <ndesaulniers@google.com>
Wed, 21 Dec 2022 20:28:37 +0000 (12:28 -0800)
committerNick Desaulniers <ndesaulniers@google.com>
Wed, 21 Dec 2022 21:06:12 +0000 (13:06 -0800)
commitf35d482ffdaf6cf540fa619596ffcb3af17f6c88
treef49bbe4487e37bb1fa3249bc756571d471d666ef
parenteb9cc253cb048b6dbf2fcd73ac55b5eda0184ed3
[llvm][AArch64ISelDAGToDAG] support -{start|stop}-{before|after}=aarch64-isel

Follow a similar pattern as AMDGPUDAGToDAGISel's constructor so that we
can use INITIALIZE_PASS to register a pass. This allows for more fine
grain testability of SelectionDAGISel via:

   llc -stop-{before,after}=aarch64-isel

Link: https://github.com/llvm/llvm-project/issues/59538
See also: https://reviews.llvm.org/D140323

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D140331
llvm/lib/Target/AArch64/AArch64.h
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp