Hi jfix,
The solution you provided doesn’t work for me.

if you don’t specify “-cpu”, no llvm ir is printed out.
even after added “-cpu”, only libjit’s llvm ir got dumped, no model ir was dumped out. In the standalone bundle, the main.cpp calls an extern function resnet50(…), but I can’t find such function in the dumped llvm ir. The only thing close to it is something called “@jitmain”. Will jitmain got renamed to resnet50 later on? Otherwise how main.o link against it?
Is there a way to dump out the whole llvm ir of both the model itself, and the libjit?