Clang code generation

Hi all,

I need to add some metadata to the instructions, just after the IR code is generated.
I was taking a look under clang/lib/CodeGen, but I can not find a point where I can do it or at least when I am sure that the IR code is completely generated.

Do you have an idea how to do that?

Thanks.
Best Regards,
Simone