search for: buildingajit1

Displaying 19 results from an estimated 19 matches for "buildingajit1".

Did you mean: buildingajit
2019 Sep 23
4
"Freeing" functions generated with SimpleORC for JIT use-case
Hi all, I am using LLVM for JIT use-case and compile functions on the fly. I want to "free" the modules after some time and reclaim any memory associated with it. I am using the SimpleORC API <https://llvm.org/docs/tutorial/BuildingAJIT1.html> now. Is there an API to "free" all the memory associated with the module? I use one "compiler" instance (think similar to KaleidoscopeJIT class with its ExecutionSession, CompileLayer etc.) in my process. Is there an API to reset all memory used? Does deleting the &quo...
2019 Sep 18
2
Errata: The JIT tutorial
In the Tutorial of the JIT https://llvm.org/docs/tutorial/BuildingAJIT1.html, illustrations and the full code listing are not the same, and the full code listing will not compile, this will make a lot of trouble to beginners since the JIT API is changing all the time. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lis...
2020 Feb 19
2
Kaleidoscope example error
Hi, I am trying to run the toy example provided on http://llvm.org/docs/tutorial/BuildingAJIT1.html. However, I am running into a file not found error for llvm/ExecutionEngine/Orc/Core.h. Meanwhile other llvm headers seem to link properly. Can someone help me out, please? Thanks in advance. Sincerely, Anshil Gandhi -------------- next part -------------- An HTML attachment was...
2019 Sep 18
2
Errata: The JIT tutorial
...ie via llvm-dev < llvm-dev at lists.llvm.org> wrote: > +Lang for JIT things > > On Tue, Sep 17, 2019 at 7:01 PM Yafei Liu via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> In the Tutorial of the JIT >> https://llvm.org/docs/tutorial/BuildingAJIT1.html, illustrations and the >> full code listing are not the same, and the full code listing will not >> compile, this will make a lot of trouble to beginners since the JIT API is >> changing all the time. >> _______________________________________________ >> LLVM Deve...
2018 Nov 18
2
How to add instructions to a Module at runtime?
...> across a network etc - as the one that compiles that code (rather than > writing an executable/object code to dusk etc)) sounds like you're looking > for a JIT. Here's some info on how to use/write a JIT using llvm: > https://llvm.org/docs/tutorial/BuildingAJIT1.html > > On Sun, Nov 18, 2018, 5:53 AM Alberto Barbaro via llvm-dev < > llvm-dev at lists.llvm.org wrote: > >> Hi all, >> I'm trying to understand how the Module object works more in details, so >> suppose I've an empty module and I'd like to know if it...
2019 Sep 19
2
Errata: The JIT tutorial
...gt; >>> +Lang for JIT things >>> >>> On Tue, Sep 17, 2019 at 7:01 PM Yafei Liu via llvm-dev < >>> llvm-dev at lists.llvm.org> wrote: >>> >>>> In the Tutorial of the JIT >>>> https://llvm.org/docs/tutorial/BuildingAJIT1.html, illustrations and >>>> the full code listing are not the same, and the full code listing will not >>>> compile, this will make a lot of trouble to beginners since the JIT API is >>>> changing all the time. >>>> __________________________________...
2017 Jan 16
2
LLVM JIT query
Sir, I am working on a project to provide LLVM JIT support for a specific processor architecture. I have an overall idea about llvm. Please guide where to start from a practical or implementation view point. Regards, Siddharth -------------- next part -------------- An HTML attachment was scrubbed... URL:
2018 Nov 18
2
How to add instructions to a Module at runtime?
Hi all, I'm trying to understand how the Module object works more in details, so suppose I've an empty module and I'd like to know if it is possible to add instructions at runtime and execute it. Is it possible to do it? Any suggestion on how? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL:
2018 Apr 22
2
Current status of ORC
Is the ORC API currently stable enough to be recommended for use? If so, what documentation and example code represents the current recommended way of doing things with it? https://llvm.org/docs/tutorial/BuildingAJIT1.html says: "Warning: This text is currently out of date due to ORC API updates. The example code has been updated and can be used. The text will be updated once the API churn dies down." Does that mean the example code presented on the page, or some of the files under llvm/examples...
2019 Jul 18
2
Eager compilation and relocatable dynamic linkable code-generation
Hi all, I am following the LLVM JIT tutorial API based on: https://llvm.org/docs/tutorial/BuildingAJIT1.html I have 2 independent questions: 1. The tutorial mentions that "*will defer compilation of the module until any of its definitions is looked up*". Does that mean to force eager compilation, i have to keep track of all functions added to the Module and do a lookup? I want the module...
2019 Aug 07
2
Trouble with ORCv2 Tutorial
...te tutorial. I'd appreciate any guidance that you folks have on the migration as well as some help with this specific issue. I'm happy to share more about the source code and build settings if that is helpful. Thanks in advance, Zeke [1] https://llvm.org/docs/tutorial/BuildingAJIT1.html [2] https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html [3] https://groups.google.com/forum/#!searchin/llvm-dev/orcv2%7Csort:date/llvm-dev/UNXf9EOw43g/w3qOKLYbAwAJ
2019 May 12
2
JIT compilation with LLVM
Hello LLVM developers, I am developing a small project using LLVM. The objective is to provide dynamic loading via JIT compilation of C++ code contained in a (TS) module. For this reason, I would like to return an explicitly raw void pointer (resembling libdl's `void *dlsym(void *, char const *);` as closely as possible) to the compiled result. The MCJIT class offers the most convenient API
2019 Aug 08
2
Trouble with ORCv2 Tutorial
...he migration as >> well as some help with this specific issue. I'm happy to share more >> about the source code and build settings if that is helpful. >> >> Thanks in advance, >> >> Zeke >> >> [1] https://llvm.org/docs/tutorial/BuildingAJIT1.html >> [2] https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html >> [3] https://groups.google.com/forum/#!searchin/llvm-dev/orcv2%7Csort:date/llvm-dev/UNXf9EOw43g/w3qOKLYbAwAJ >> _____________________________...
2019 Aug 09
2
Trouble with ORCv2 Tutorial
...ssue. I'm happy to share more >> >> about the source code and build settings if that is helpful. >> >> >> >> Thanks in advance, >> >> >> >> Zeke >> >> >> >> [1] https://llvm.org/docs/tutorial/BuildingAJIT1.html >> >> [2] https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html >> >> [3] https://groups.google.com/forum/#!searchin/llvm-dev/orcv2%7Csort:date/llvm-dev/UNXf9EOw43g/w3qOKLYbAwAJ >> >> __...
2019 May 15
2
Orc JIT v1 Deprecation
Hi Alex Correction : Kaleidoscope chapter 1 & 2 are up-to-date. But chapter 3..5 are not. On Wed, 15 May 2019 at 23:22, Praveen Velliengiri < praveenvelliengiri at gmail.com> wrote: > Hi Alex > Sorry for late reply > > The New ORC APIs support concurrent compilation. > I'm not aware of any migration guide to ORC v2 from v1. But there is a > in-tree classes called
2015 Aug 13
2
Rationale for the object cache design?
Hello, I am a bit curious about the rationale for the current callback-based object cache API. For Numba, it would be easier if there would be a simple procedural API: - one method to get a module's compiled object code - one method to load/instantiate a module from a given piece of object code I manage to get around the callback-based API to do what I want, but it's a bit weird to
2016 Nov 16
2
MCJit and remove module memory leak?
Hi Kevin, Koffie, We will start migrating to ORC for next release, but for now, this release > invoke delete after remove right? MCJIT's removeModule method does not delete the module. You'll need to do that manually. OrcMCJITReplacement is a bug-for-bug compatible implementation of MCJIT using ORC components, so it does not free the memory either. Does this mean MCJIT is
2016 Sep 19
3
llvm interpreter does not find function defined by addGlobalMapping
Hi, I want to use a function defined in c(++)-code from code generated by llvm. For this I use ExecutionEngine.addGlobalMapping(). I started with the JIT execution engine and everything worked, then I switched to the interpreter engine and it stopped working, but only if compiled on a Linux system. More precisely it works if I use llvm 3.8.1 + gcc (Linux) + JIT llvm 3.8.0 + mingw-gcc
2016 Jul 29
2
Memory usage with MCJit
Hi Koffie, I'd highly recommend switching to ORC from MCJIT. It is much more flexible when it comes to memory-management. 1. I took the approach of 1 execution engine with multiple modules (I'm not > removing modules once they have been added). During profiling, I noticed > that the memory usage is high with a lot of code. How can I reduce the > memory usage? Is one execution