Regarding LLVM AST


I am trying to a write a standalone tool to compile llvm to x86 assembly.
For this purpose i wish to get a custom IR from llvm. The custom IR is
written in C. Would this require writing a new lexer and parser or are
there any libraries that can assist me.

Thanking You
Aseem Garg

What is special about your custom IR? Also, how does your tool differ from llc?