Griffin Wright
2011-Jun-10 15:40 UTC
[LLVMdev] Annotating resulting assembly code from an LLVM pass
Hello, 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. Thanks, Griffin Wright
David A. Greene
2011-Jun-10 17:42 UTC
[LLVMdev] Annotating resulting assembly code from an LLVM pass
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
Apparently Analagous Threads
- [LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
- [LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
- [LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
- [LLVMdev] How can I see what opt tries to delete at the end of a pass?
- [LLVMdev] How can I see what opt tries to delete at the end of a pass?