Dump Module IR with SCEV as comment


Is there a way to dump the Module IR with the SCEV as comment at the end of each line?

The -analyze or -debug-pass is not printed on the IR itself.
Maybe through the DiagnosticInfo?

AssemblyAnnotationWriter exists, but I don't think anyone has hooked it up to SCEV, specifically.


Oh, nice.

Seems easy enough to hook. I might do that relatively “soon”.
I can hurry up if anybody is interested.