Print all DAGs in one command, to specific locations

Hey. I’m checking if there’s a way to have llc print all DAGs to a file.

Currently, I have to run llc 5 times and manually move the DOT file that’s generated in a random location. The only time Filename is used in WriteGraph is in dumpDotGraphToFile (https://github.com/llvm/llvm-projec/blob/54ce3443149/llvm/include/llvm/Support/GraphWriter.h#L365), which is never called.

Is there a way to dump DOT files to a specific location?