You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the ability to customise the pre-link pipeline
This adds `--newpm-passes <pipeline>`.
For consistency, this has the same semantics as LLVM's extant
`--lto-newpm-passes` switch.
Note that by imitating `--lto-newpm-passes` we inherit a quirk: if you
pass the empty string for the pipeline, you get the default pipeline,
and not an empty pipeline as one might expect.
This is because the switches are backed by a string, and the existence
of the switches is decided by checking for an empty string.
When the string is non-empty, it goes through a parsing function which
annoying also has no way to specify an empty pipeline.
Ideally the switches would be backed by a `optional<string>` (or the
parser would have a way to specify the empty pipeline), but: a) that
would be a separate change, and b) it should probably go upstream too.
For now, if you want an empty pipeline, I suggest you add a pass which
is a no-op on the IR, e.g. `verify`.
0 commit comments