This procedure could dump the module, where the function becomes the only defined function in its module. This is very useful to debug large code base where reducing from source code is difficult, like LTO.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
the functionality, it is similar to llvm-extract. however, it provides a runtime solution to extract a function from a debugger from any point in compilation time like LTO, something after inlining. You can extract function right at the assertion point. llvm-extract only can work on a file. We need a runtime solution.
Comment Actions
Our code base is huge in LTO, it usually take very very long time to dump into a file. With this function, the process would be dramatically faster. I believe this would also benefit other people.