[llvm][PassSupport] don't require passes to be default constructible
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 20 Dec 2022 22:00:51 +0000 (14:00 -0800)
committerNick Desaulniers <ndesaulniers@google.com>
Tue, 20 Dec 2022 22:07:29 +0000 (14:07 -0800)
commitad99774a5f1b1f4466999da172f0e77006a06262
tree32956d54053e3f8a6ede67339b49e112158a8a23
parentd3663045fc5c323cb3156ac488bf7777bcb55e1c
[llvm][PassSupport] don't require passes to be default constructible

Quite a few passes are not default constructible. In order to properly
support -{start|stop}-{before|after}= for these passes, we would like to
continue to use INITIALIZE_PASS, but not necessarily provide a default
constructor.

Delete the default constructors of classes derived from
SelectionDAGISel.

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

Differential Revision: https://reviews.llvm.org/D140349
llvm/include/llvm/PassSupport.h
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/lib/Target/AMDGPU/AMDGPU.h
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.h
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Target/AMDGPU/R600.h
llvm/lib/Target/AMDGPU/R600ISelDAGToDAG.cpp
llvm/lib/Target/AMDGPU/R600TargetMachine.cpp
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp