teresajohnson wrote: Ah got it. The typical way then would be to have a flag in the PipelineTuningOptions struct that can be set from your tool and queried by the PM builder. https://github.com/llvm/llvm-project/pull/71268