In most cases you can't.I'd like an explanation for how to convert cheat codes to IPS patches for Yuzu and Ryujinx, I know kirby got its code converted to IPS patch and so did mario+rabbids, I can't get Hyrule Warriors: Age of Calamity working in 60fps on yuzu, but it works on the switch.
IPS patch only patches executable code before executable is initialized.
cheat is working on already initialized executable and usually reads values stored in executable to determine where in heap lock is located. Heap can exist only after initializing executable.
So to produce the same result usually you need different approaches. Cheat is convertable to IPS only if it patches hardcoded data in executable that won't be overwritten when game starts booting.