Closed HKalbasi closed 6 months ago
You are doing nothing wrong. 'invoke' and 'volatile' aren't supported currently. There's no ETA to implement them, sorry.
Thanks for quick response! Is there any way to work around these issues? For example by replacing them with instructions with similar semantics?
Not really. If it was that simple we would have already implemented them :)
volatile load/stores can be replaced with a function call. invoke can also be replaced with a function call. But you are going to miss bugs potentially. But maybe it's better than nothing?
Yes I want exactly this (supporting this at cost of missing bugs potentially). I will try to implement it and see how it goes. Thank you!
Hi. I'm trying to play with
alive2
by runningalive-tv
on two versions of llvm-ir generated bycargo rustc -- --emit=llvm-ir
by modifying the source manually, and I'm getting these errors:Most of them are complaining about
Unsupported instruction: %x = invoke
except theERROR: Unsupported metadata: 40
andERROR: Unsupported instruction: %2 = load volatile
ones. I have no experience with alive2 and llvm-ir, so I'm probably doing something wrong. Any guidance on how to address these issues would be greatly appreciated.