This is an archive of the discontinued LLVM Phabricator instance.

[OCaml] Completely remove legacy SCCP pass
AbandonedPublic

Authored by alan on Feb 24 2023, 8:40 AM.

Details

Summary

This completely removes the SCCP pass in the OCaml bindings, fixing the
build and tests.

Diff Detail

Event Timeline

alan created this revision.Feb 24 2023, 8:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2023, 8:40 AM
alan requested review of this revision.Feb 24 2023, 8:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2023, 8:40 AM
alan added a comment.Feb 24 2023, 8:41 AM

The commit e2cd0851faaba39cc04c3059df25d22a02b1e682 did not completely remove the SCCP pass from the OCaml bindings, breaking them.

Once this is approved, I'll need someone else to land this because I don't have access to the main branch.

alan edited the summary of this revision. (Show Details)Feb 24 2023, 8:43 AM
alan added a reviewer: fhahn.
nikic added a comment.EditedFeb 24 2023, 9:14 AM

Let's please remove all legacy passes from the OCaml bindings in one go, so they don't get broken all the time as the pass implementations get dropped one by one.

alan added a comment.Feb 24 2023, 9:44 AM

Ok. However, I think this patch should be trivial to land on main, and getting rid of all the legacy passes in one go can be another patch. I would prefer if the OCaml bindings were not broken on main, because I have another patch (https://reviews.llvm.org/D136400) that needs to be rebased, and I can't rebase on a broken build.

As someone who doesn't follow the C API, where can I find out information about which passes are to be removed? Recently there's been some churn and I've frequently had to rebase my other patch. I would like to know how I could be more involved in C API changes and how they interact with the OCaml bindings.

pretty much anything with PassManager in it in the current ocaml bindings will be removed

alan added a comment.EditedFeb 24 2023, 10:51 AM

Should I change this patch to remove all the PassManager-related functions from the OCaml bindings?

alan added a comment.Feb 24 2023, 11:26 AM

I now have https://reviews.llvm.org/D144751 as an alternative to this patch.