This would be extremely cool as a feature and as a method of evaluating performance differences. LibJIT and LLVM both have similar APIs when it comes to generating IR and because LibJIT's API is pretty minimal, it shouldn't be too hard to give them both the same API. I can imagine LLVM being put in as a feature, so to enable it you just have to use:
[dependencies.jit]
version = "*"
features = [ "llvm" ]
This would be extremely cool as a feature and as a method of evaluating performance differences. LibJIT and LLVM both have similar APIs when it comes to generating IR and because LibJIT's API is pretty minimal, it shouldn't be too hard to give them both the same API. I can imagine LLVM being put in as a feature, so to enable it you just have to use: