[llvm-dev] DiagnosticInfo and SCEV

Alexandre Isoard via llvm-dev llvm-dev at lists.llvm.org
Mon Jun 4 18:14:29 PDT 2018


I was thinking about printing SCEV into DiagnosticInfo messages, an example
would be to print the loop trip count of loops, or the stride of memory

I ran into two problems:
- DiagnosticInfo is in Core, SCEV is in Analysis, so it is a little bit
weird (I declare the operator<< overload for SCEV* in DiagnosticInfo, but
only define it in ScalarEvolution)
- I would like to print meaningful expressions that does not involve
llvm-ir variables.

I think the second problem is hard, how would you suggest to proceed?

*Alexandre Isoard*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180604/f68fc403/attachment.html>

More information about the llvm-dev mailing list