[llvm] [MergeFunctions] Add support to run the pass over a set of function pointers (PR #111045)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 06:45:54 PST 2024


================
@@ -409,24 +428,36 @@ static bool isEligibleForMerging(Function &F) {
          !hasDistinctMetadataIntrinsic(F);
 }
 
-bool MergeFunctions::runOnModule(Module &M) {
+template <typename FuncContainer>
+bool MergeFunctions::runOnModule(FuncContainer &M) {
----------------
SLTozer wrote:

The name should probably change since it now takes different types.
```suggestion
bool MergeFunctions::run(FuncContainer &M) {
```

https://github.com/llvm/llvm-project/pull/111045


More information about the llvm-commits mailing list