[llvm][X86ISelDAGToDAG] support -{start|stop}-{before|after}=x86-isel
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 20 Dec 2022 22:08:37 +0000 (14:08 -0800)
committerNick Desaulniers <ndesaulniers@google.com>
Tue, 20 Dec 2022 22:16:45 +0000 (14:16 -0800)
commitbe8fd64091f9bb2323fbc8e4afcc9188af7f9b46
tree302b8df0da44441cc5218a256a4c26bd7b4e477b
parent8ab032fbe5e4e27d44dc9da9c3289f741a3334c9
[llvm][X86ISelDAGToDAG] support -{start|stop}-{before|after}=x86-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.

Link: https://github.com/llvm/llvm-project/issues/59538
Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D140323
llvm/lib/Target/X86/X86.h
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/lib/Target/X86/X86TargetMachine.cpp