I don't think IRBuilder supports this.
Would llvm::AssemblyAnnotationWriter work for your purposes?
vedant
On Sep 17, 2015, at 2:36 PM, Rodney M. Bates via llvm-dev <llvm-dev at
lists.llvm.org> wrote:
> The ascii assembly form of llvm IR allows comments. Is there an IRBuilder
> way to insert these into in-memory IR, so they will come out through
> LLVMPrintModuleToFile?
> --
> Rodney Bates
> rodney.m.bates at acm.org
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev