LLVM Code Generation

Have you seen the documentation for TableGen in LLVM.ORG? Also look at the tutorial on the latest LLVM developer meeting. It’s link is in a sidebar article on the LLVM website.