The LLVM team have released a great document describing how to generate fast LLVM IR from your frontend: http://t.co/XvvdZeTN98