https://github.com/River707 commented: I'm not really sure I'm following this API, it seems very narrow and specific. Have you considered instead the possibility of adding an argument to `dump` for providing extra flags? https://github.com/llvm/llvm-project/pull/120117