In particular, I recommend looking at the Kaleidoscope mini language: http://llvm.org/docs/tutorial/ as it does pretty much exactly what you are looking for, and the tutorial goes through all the steps needed to produce the working program.