const char *rtx2asm(rtx insn); returning a string with the asm instruction for the insn.
Closest thing that I found is the final_scan_insn function in final.c but unfortunatelly it outputs the asm string to the file so it makes it not usefull for my purposes.
Thanks, Viktor.