[LLVMdev] LLVM IR Code Annotation

Griffin Wright gwright215 at gmail.com
Tue Oct 4 08:01:07 PDT 2011


I am working on an LLVM pass which, among other things, selectively
duplicates instructions in a program.

This results in a few new instructions added to the final IR to facilitate
checking, and I'd like to annotate the generated code file with a comment or
something like it that would indicate that a given specific instruction has
some certain property.  Essentially, just printing out flag values in a
comment form in the final bitcode file that I could see when looking at the
.s file generated with llc.

How could I go about doing this?

Griffin Wright
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111004/ffaf904a/attachment.html>

More information about the llvm-dev mailing list