search for: llvmprintmoduletofile

Displaying 5 results from an estimated 5 matches for "llvmprintmoduletofile".

2015 Jun 08
3
[LLVMdev] Question about usage of LLVMLinkModules()
...e lllvm module so far. I am not using a JIT compiler but at least at the moment am simply generating executables. The workflow I am using is to build a module with LLVMModuleCreateWithName() and populate it with the LLVMBuilder. After everything is in the module I simply output it into a file with LLVMPrintModuleToFile(). Then I am calling llc to convert the IR to native machine code and finally gcc to create an executable out of it. All these from inside my program. It may not be the best way to generate an executable and I would really welcome as much advice as you can give me on that but it works. The issue...
2015 Jun 11
2
[LLVMdev] Question about usage of LLVMLinkModules()
...JIT > compiler but at least at the moment am simply generating executables. The > workflow I am using is to build a module with LLVMModuleCreateWithName() > and populate it with the LLVMBuilder. > > > > After everything is in the module I simply output it into a file with > LLVMPrintModuleToFile(). Then I am calling llc to convert the IR to native > machine code and finally gcc to create an executable out of it. All these > from inside my program. It may not be the best way to generate an > executable and I would really welcome as much advice as you can give me on > that but i...
2015 Oct 17
3
The future of LLVM's C APIs: Notes and BoF.
(Moving this to llvm-dev) On Friday, October 16, 2015, Justin Bogner <mail at justinbogner.com> wrote: > Some users of llvm-c want stable API interfaces into various parts of > the LLVM infrasture, others want further ABI guarantees about this > usage, and still others simply want a way to bind to LLVM through their > language frontend’s existing FFI support for C. > > If
2018 Sep 12
2
How to make LLVM go faster?
...return true; } } // run per function optimization passes FPM.doInitialization(); for (Function &F : *module) if (!F.isDeclaration()) FPM.run(F); FPM.doFinalization(); MPM.run(*module); if (output_type == ZigLLVM_EmitLLVMIr) { if (LLVMPrintModuleToFile(module_ref, filename, error_message)) { return true; } } return false; } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180911/d7df5280/attachment.html>
2015 Oct 22
2
The future of LLVM's C APIs: Notes and BoF.
...f us in the Modula3 support community are working on splicing a > llvm back end onto our Modula3 compiler front end. We have zero-thickness > bindings written in Modula3 which match C bindings like core.h. In our > front > end executable, we only build llvm IR in memory, then use > LLVMPrintModuleToFile > and/or LLVMWriteBitcodeToFile. We only link in the needed parts of the > llvm > infrastructure to build and write the llvm IR. Then we run stock llc on > the > IR code in the emitted file. > > We have had to write an additional binding to DIBuilder for this purpose, > as...