Hello,
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?
Thanks,
Griffin Wright