Is there a way to query a runtime ordering of passes for a given source file?

Hi I would like to query a runtime ordering of the passes but not using opt-bisect-limit=-1, as I do not need the ordering per function/module ( to avoid repetitions), only the schedule or order in which various passes are scheduled, I am experimenting with phase ordering and I need a runtime order in which the passes are scheduled. Is there any clang/opt option that would be usedful besides opt-bisect-limit?

There is -print-pipeline-passes which prints the expanded pipeline as a string (and can be passed back to opt -passes).

1 Like