search for: analysis_program

Displaying 2 results from an estimated 2 matches for "analysis_program".

2010 Feb 25
0
[LLVMdev] Programmatic compilation of C++ file into bitcode
...llvm-gcc that is generating the bitcode. > Except that instead of writing the bitcode to a file, it needs to load > it into memory (presumably as an instance of Module) for further > processing and analysis. You could just pipe it to your program: llvm-gcc hello.cpp -emit-llvm -c -o - | analysis_program So my goal is to do essentially what llvmc > does, but programmatically by invoking the LLVM API directly. You can add your static analysis to llvm-gcc as an LLVM pass. If you write it as an LLVM pass then you can also use it from "opt", which would be convenient. > I thought I c...
2010 Feb 25
2
[LLVMdev] Programmatic compilation of C++ file into bitcode
I'm building a static analysis tool on top of LLVM. It needs to take in a C++ source file and have LLVM translate it into bitcode. In other words, it basically needs to do this: llvmc hello.cpp -emit-llvm -O0 -S -g Except that instead of writing the bitcode to a file, it needs to load it into memory (presumably as an instance of Module) for further processing and analysis. So my