[NFCI] createCFGSimplificationPass(): migrate to also take SimplifyCFGOptions
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 15 Jul 2020 22:19:17 +0000 (01:19 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 15 Jul 2020 22:27:54 +0000 (01:27 +0300)
commitb2018198c32a0535bb1f5bb5b40fbcf50d8d47b7
treeadee1e12d0442375a2d07e7c02bfde1b50b574d9
parentaf19b1ceefce48534c138e223ba7cb1bfc9a02f8
[NFCI] createCFGSimplificationPass(): migrate to also take SimplifyCFGOptions

Taking so many parameters is simply unmaintainable.

We don't want to include the entire llvm/Transforms/Utils/Local.h into
llvm/Transforms/Scalar.h so i've split SimplifyCFGOptions into
it's own header.
llvm/include/llvm/Transforms/Scalar.h
llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
llvm/include/llvm/Transforms/Scalar/SimplifyCFGOptions.h [new file with mode: 0644]
llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
llvm/lib/Target/ARM/ARMTargetMachine.cpp
llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/lib/Transforms/Scalar/Scalar.cpp
llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp