Adding extra debug information

Hi cfe-dev,

I’m quite new to Clang. When using Clang 5.0 with -g, the generated llvm IR has loop metadata. I am trying to add more information to that metadata node, but am having trouble knowing where to start. Can anyone point me to what files/classes I should be looking at to make such a change?

Thank you!

Eli Davis

Hi Eli,

You might start by grepping for MD_loop in llvm, or by reading through lib/Analysis/LoopInfo.cpp.

vedant

LoopInfo.cpp looked like exactly what I was looking for. Thanks!