<div dir="ltr">Dear,<div><br></div><div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I have with me an LLVM pass that does some analysis of the operands. Based on this analysis I would like the assembly strings to be printed.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Say, If the operands have a property P, print add* r1,r2,r3 or print add r1,r2,r3.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Pleas note, I am not looking to add a new instruction add* but just print the assembly differently.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
Is there any way I can modify the printing of the assembly strings based on the results of an LLVM pass on the operands?</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
On achieving this, I can modify the assembler to do whats needed for my architecture.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
Do you have any advise for me on how to conditionally print the assembly strings?</div><div><br></div>-- <br>Pratik<div><br></div>
</div></div>