[llvm-dev] Passing inormation from pass to lowering

Felix Berlakovich via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 27 01:28:10 PDT 2020


I have written a ModulePass that calculates various things and adds custom metadata attributes to certain instructions. Depending on the attributes, I would like to change the machine code of these instructions. For example, I would like to replace certain calls with jumps, but as far as I can tell the IR metadata is not accessible anymore on the level of machine instructions (e.g. in the AsmPrinter). What is the best way to pass the information calculated by the pass (e.g the attributes) to the part where the target specific instructions are emitted?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200327/d2a02a9e/attachment.html>

More information about the llvm-dev mailing list