[BOLT] Introduce SplitStrategy ABC
authorFabian Parzefall <parzefall@fb.com>
Thu, 8 Sep 2022 21:46:57 +0000 (14:46 -0700)
committerFabian Parzefall <parzefall@fb.com>
Thu, 8 Sep 2022 21:59:18 +0000 (14:59 -0700)
commit4fdbe9853c007b53ef36537b5b2a7f10b7f75a81
treee6a90662b658336dc3dfbefb1e9e4f6331dd025d
parent32530e0493c130229b8fe5e4e65abd7fe76a2dc4
[BOLT] Introduce SplitStrategy ABC

This introduces an abstract base class for splitting strategies to
document the interface a strategy needs to implement, and also to avoid
code bloat of the `splitFunction` method.

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D132054
bolt/include/bolt/Passes/SplitFunctions.h
bolt/lib/Passes/SplitFunctions.cpp