search for: buildingajit

Displaying 16 results from an estimated 16 matches for "buildingajit".

2019 Aug 10
3
ORC v2 question
...RC v2 and facing some problems. I am using LLVM 8.0.1. I updated my ORC v1 implementation from 6.0 to 8.0 based on Kaleidoscope example (i.e. using Legacy classes) and that works fine. Now I am trying out ORC v2 apis, based on https://github.com/llvm-mirror/llvm/blob/master/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h. I have got it to compile and build. But looks like my compiled code is not being optimized at all. For optimization I am using the PassManagerBuilder class to setup the passes. I use OptLevel = 2. This works perfectly with ORC v1 apis, but with ORC v2 I am not sure wha...
2019 Nov 18
2
Crash using exceptions
...hat doesn't deal with LLVM. I noticed that llvm-config --cxxflags includes the -fno-exceptions flag. Do I need to throw no exceptions whatsoever in my application to use LLVM JIT? As a minimal example, I modified the code in https://github.com/llvm-mirror/llvm/tree/master/examples/Kaleidoscope/BuildingAJIT/Chapter2. In toy.cpp, I update LogError to throw an exception: std::unique_ptr<ExprAST> LogError(const char *Str) { fprintf(stderr, "Error: %s\n", Str); throw std::runtime_error(""); } and I catch that exception in MainLoop: static void MainLoop() { while (true) {...
2019 Aug 10
2
ORC v2 question
...LLVM 8.0.1. >> I updated my ORC v1 implementation from 6.0 to 8.0 based on >> Kaleidoscope example (i.e. using Legacy classes) and that works fine. >> >> Now I am trying out ORC v2 apis, based on >> https://github.com/llvm-mirror/llvm/blob/master/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h. >> >> I have got it to compile and build. >> But looks like my compiled code is not being optimized at all. >> >> For optimization I am using the PassManagerBuilder class to setup the >> passes. I use OptLevel = 2. This works perfectly...
2019 Aug 29
3
404s within LLVM documentation
Hi all, I'm currently in the process of updating the Kaleidoscope tutorials (first and foremost, the ORC/BuildingAJIT ones), and I've noticed a fair few 404s which are lingering within the current visible documentation. Some of these don't seem to have linked to existing pages for a while. I was wondering if there was a way to set up a check in the buildbot to ensure that documentation doesn't break b...
2020 Apr 13
4
LLVM 10 ORC2 issue with symbol resolution
Hi, I updated my project to LLVM 10.0 today and I am getting JIT symbol resolution errors. I could not find any example or updated tutorial or documentation that describes the new api - as all documentation seems out of date. I paste below some code snippets that show what I am doing: /* global syms is a array mapping names to function addresses */
2019 Aug 29
2
404s within LLVM documentation
...nd on the frequency of dead-link > discovery that the run could provide. > > Regards, Neil Nelson > On 8/28/19 7:52 PM, Patrick Nappa via llvm-dev wrote: > > Hi all, > > I'm currently in the process of updating the Kaleidoscope tutorials (first > and foremost, the ORC/BuildingAJIT ones), and I've noticed a fair few 404s > which are lingering within the current visible documentation. Some of these > don't seem to have linked to existing pages for a while. > > I was wondering if there was a way to set up a check in the buildbot to > ensure that documenta...
2019 Apr 30
6
Disk space and RAM requirements in docs
...m.tmp.cache 108K build/tools/clang/test/Index/Output/annotate-module.m.tmp.cache/GFQILJ97H1V2 108K build/tools/clang/test/CXX/modules-ts/basic/basic.def.odr/p6 108K build/tools/clang/test/CXX/expr/expr.post 108K build/tools/clang/test/CXX/drs/Output 108K build/share 108K build/examples/Kaleidoscope/BuildingAJIT 104K build/tools/clang/test/Modules/Output/submodules-merge-defs.cpp.tmp/KNEHM6YWXPQQ 104K build/tools/clang/test/Modules/Output/submodules-merge-defs.cpp.tmp/2B7ETTFI4VAY2 104K build/tools/clang/test/Modules/Output/odr_hash.mm.tmp 104K build/tools/clang/test/Modules/Output/debug-info-moduleimport....
2017 Aug 06
2
Compile issues with LLVM ORC JIT
...me);Mangler::getNameWithPrefix(MangledNameStream,Name,DL);returnCompileLayer.findSymbol(MangledNameStream.str(),true);}voidremoveModule(ModuleHandleH){cantFail(CompileLayer.removeModule(H));}};}}| The code is 1-to-1 copied from LLVM web site,LLVM ORC JIT Example <https://llvm.org/docs/tutorial/BuildingAJIT3.html>. Could anybody tell me what I missed in my code, or in compile options? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170806/c8cd010d/attachment-0001.html>
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
2017 Apr 09
2
Possible stack corruption during call to JITSymbol::getAddress()
...er.h" #include "llvm/Support/DynamicLibrary.h" #include "llvm/Support/TargetSelect.h" #include <iostream> using namespace llvm; using namespace llvm::orc; /** This class taken verbatim from * https://github.com/llvm-mirror/llvm/blob/release_40/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h * This is from the same revision of LLVM I am using (the release_40 branch as of 4/8/2017) */ class KaleidoscopeJIT { private: std::unique_ptr<TargetMachine> TM; const DataLayout DL; ObjectLinkingLayer<> ObjectLayer; IRCompileLayer<decltyp...
2017 Apr 17
2
Possible stack corruption during call to JITSymbol::getAddress()
..."llvm/Support/TargetSelect.h" >> #include <iostream> >> >> using namespace llvm; >> using namespace llvm::orc; >> >> /** This class taken verbatim from >> * https://github.com/llvm-mirror/llvm/blob/release_40/examples >> /Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h >> * This is from the same revision of LLVM I am using (the release_40 >> branch as of 4/8/2017) >> */ >> class KaleidoscopeJIT { >> private: >> std::unique_ptr<TargetMachine> TM; >> const DataLayout DL; >>...
2020 Sep 23
2
ORC JIT - Can modules independently managed with one LLJIT instance? + problems with ExecutionSession.lookup
...ctly what you want. In the new system you can also perform fine grained removal: It is possible to track and remove individual modules from within a JITDylib. For an example of this see: https://github.com/lhames/llvm-project/blob/7ec9f8930f68760953a483157e010d0ff88285cd/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp#L1148<https://hes32-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2flhames%2fllvm%2dproject%2fblob%2f7ec9f8930f68760953a483157e010d0ff88285cd%2fllvm%2fexamples%2fKaleidoscope%2fBuildingAJIT%2fChapter1%2ftoy.cpp%23L1148&umid=7d73edbc-e566-4ffc-bd0...
2017 Apr 20
2
Possible stack corruption during call to JITSymbol::getAddress()
...e <iostream> >>>> >>>> using namespace llvm; >>>> using namespace llvm::orc; >>>> >>>> /** This class taken verbatim from >>>> * https://github.com/llvm-mirror/llvm/blob/release_40/examples >>>> /Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h >>>> * This is from the same revision of LLVM I am using (the release_40 >>>> branch as of 4/8/2017) >>>> */ >>>> class KaleidoscopeJIT { >>>> private: >>>> std::unique_ptr<TargetMachine>...
2020 Apr 13
2
LLVM 10 ORC2 issue with symbol resolution
...ase let me know and I will fix it. > Sadly http://llvm.org/docs/ORCv2.html is out of date. For example: auto &JD = ES.getMainJITDylib(); This api no longer exists. I did look at OrcV2Examples but did not see any that were trying to set up external symbols. Did I miss something? > The BuildingAJIT tutorial series is known to be out of date. I'm hoping to have that fixed by LLVM 11 but there is some feature work that I need to complete first. > > Can you share the specific errors that you're getting back? I would recommend replacing > > cantFail(callToFailingFunc(...)); &g...
2017 May 01
1
Possible stack corruption during call to JITSymbol::getAddress()
...>>> using namespace llvm; >>>>>> using namespace llvm::orc; >>>>>> >>>>>> /** This class taken verbatim from >>>>>> * https://github.com/llvm-mirror/llvm/blob/release_40/examples >>>>>> /Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h >>>>>> * This is from the same revision of LLVM I am using (the release_40 >>>>>> branch as of 4/8/2017) >>>>>> */ >>>>>> class KaleidoscopeJIT { >>>>>> private: >>>>&g...
2020 Sep 24
2
ORC JIT - Can modules independently managed with one LLJIT instance? + problems with ExecutionSession.lookup
...ctly what you want. In the new system you can also perform fine grained removal: It is possible to track and remove individual modules from within a JITDylib. For an example of this see: https://github.com/lhames/llvm-project/blob/7ec9f8930f68760953a483157e010d0ff88285cd/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp#L1148<https://hes32-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2flhames%2fllvm%2dproject%2fblob%2f7ec9f8930f68760953a483157e010d0ff88285cd%2fllvm%2fexamples%2fKaleidoscope%2fBuildingAJIT%2fChapter1%2ftoy.cpp%23L1148&umid=7d73edbc-e566-4ffc-bd0...