LLVM is primarily a C ++ library. It has all the tools that you can imagine to analyze, manipulate and create IR in both text and bit (binary) formats.
To get started, take a look at the llvm::ParseIRFile function defined in the include/llvm/Support/IRReader.h .
The best way to continue is to download the LLVM source code and create it by following these instructions . Then it's easy to write your own code that uses the LLVM libraries.
source share