[LLVMdev] Annotating resulting assembly code from an LLVM pass

David A. Greene greened at obbligato.org
Fri Jun 10 10:42:54 PDT 2011


Griffin Wright <grwright at umich.edu> writes:

> I'm working on an LLVM IR pass and would like to insert comments into the
> generated .bc file during the pass.  I've been having trouble finding
> documentation for this process, and was wondering if there is a simple way
> to do it.  At the moment, I have a stringstream whose .str() I'd like to
> stick in this generated file every once in a while.

Metadata might do what you want.

                               -Dave



More information about the llvm-dev mailing list