search for: modulehandle

Displaying 12 results from an estimated 12 matches for "modulehandle".

2017 Apr 09
2
Possible stack corruption during call to JITSymbol::getAddress()
...0 branch as of 4/8/2017) */ class KaleidoscopeJIT { private: std::unique_ptr<TargetMachine> TM; const DataLayout DL; ObjectLinkingLayer<> ObjectLayer; IRCompileLayer<decltype(ObjectLayer)> CompileLayer; public: typedef decltype(CompileLayer)::ModuleSetHandleT ModuleHandle; KaleidoscopeJIT() : TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()), CompileLayer(ObjectLayer, SimpleCompiler(*TM)) { llvm::sys::DynamicLibrary::LoadLibraryPermanently(nullptr); } TargetMachine &getTargetMachine() { return *TM;...
2017 Apr 17
2
Possible stack corruption during call to JITSymbol::getAddress()
...>> std::unique_ptr<TargetMachine> TM; >> const DataLayout DL; >> ObjectLinkingLayer<> ObjectLayer; >> IRCompileLayer<decltype(ObjectLayer)> CompileLayer; >> >> public: >> typedef decltype(CompileLayer)::ModuleSetHandleT ModuleHandle; >> >> KaleidoscopeJIT() >> : TM(EngineBuilder().selectTarget()), >> DL(TM->createDataLayout()), >> CompileLayer(ObjectLayer, SimpleCompiler(*TM)) { >> llvm::sys::DynamicLibrary::LoadLibraryPermanently(nullptr); >>...
2017 Apr 20
2
Possible stack corruption during call to JITSymbol::getAddress()
...; TM; >>>> const DataLayout DL; >>>> ObjectLinkingLayer<> ObjectLayer; >>>> IRCompileLayer<decltype(ObjectLayer)> CompileLayer; >>>> >>>> public: >>>> typedef decltype(CompileLayer)::ModuleSetHandleT ModuleHandle; >>>> >>>> KaleidoscopeJIT() >>>> : TM(EngineBuilder().selectTarget()), >>>> DL(TM->createDataLayout()), >>>> CompileLayer(ObjectLayer, SimpleCompiler(*TM)) { >>>> llvm::sys::DynamicLibr...
2017 Sep 22
2
Question regarding GlobalMappingLayer in LLVM 5
...code worked fine in LLVM 4, but I'm getting a compile error with LLVM 5. I think the problem is that this layer hasn't been modified to account for some of the changes made in LLVM 5, but I wanted to make sure that I wasn't missing something. I have code which looks like this: ModuleHandle addModule(std::unique_ptr<Module> M) { // Build our symbol resolver: // Lambda 1: Look back into the JIT itself to find symbols that are part of // the same "logical dylib". // Lambda 2: Search for external symbols in the host process....
2017 May 07
2
[cfe-dev] JIT doens't resolve address - Resolve obj-Addresses?
...gt; class Jitter > { > private: > std::unique_ptr<TargetMachine> TM; > const DataLayout DL; > ObjectLinkingLayer<> ObjectLayer; > IRCompileLayer<decltype(ObjectLayer)> CompileLayer; > > public: > typedef decltype(CompileLayer)::ModuleSetHandleT ModuleHandle; > > Jitter() : TM(EngineBuilder().selectTarget()), DL(TM-> > createDataLayout()), > CompileLayer(ObjectLayer, SimpleCompiler(*TM)) > {printf("!"); > llvm::sys::DynamicLibrary::LoadLibraryPermanently(nullptr); > } > > TargetMachine &...
2017 May 01
1
Possible stack corruption during call to JITSymbol::getAddress()
...out DL; >>>>>> ObjectLinkingLayer<> ObjectLayer; >>>>>> IRCompileLayer<decltype(ObjectLayer)> CompileLayer; >>>>>> >>>>>> public: >>>>>> typedef decltype(CompileLayer)::ModuleSetHandleT ModuleHandle; >>>>>> >>>>>> KaleidoscopeJIT() >>>>>> : TM(EngineBuilder().selectTarget()), >>>>>> DL(TM->createDataLayout()), >>>>>> CompileLayer(ObjectLayer, SimpleCompiler(*TM)) { >&gt...
2017 Sep 28
0
Question regarding GlobalMappingLayer in LLVM 5
...ing a compile error > with LLVM 5. I think the problem is that this layer hasn’t been modified > to account for some of the changes made in LLVM 5, but I wanted to make > sure that I wasn’t missing something. > > > > I have code which looks like this: > > > > ModuleHandle addModule(std::unique_ptr<Module> M) { > > // Build our symbol resolver: > > // Lambda 1: Look back into the JIT itself to find symbols that > are part of > > // the same "logical dylib". > > // Lambda 2: Search fo...
2010 Jul 08
1
Poker tool: Elephant
I would like to get this program to run: http://www.pokerstrategy.com/software/9 It needs mono, which is no real problem, I used winetricks to install dotnet20 and mono. Unfortunately I run into the same problem that is described here: http://www.pokerstrategy.com/forum/thread.php?threadid=24647&threadview=0&hilight=&hilightuser=0&page=1 but the solution requires me to run an .msi
2017 Nov 14
1
OrcJIT + CUDA Prototype for Cling
...bjectLinkingLayer ObjectLayer; >   ObjectTransformLayer<decltype(ObjectLayer), >                        decltype(&KaleidoscopeJIT::dumpObject)> > DumpObjectsLayer; >   IRCompileLayer<decltype(DumpObjectsLayer), SimpleCompiler> CompileLayer; > > public: >   using ModuleHandle = decltype(CompileLayer)::ModuleHandleT; > >   KaleidoscopeJIT() >       : TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()), >         ObjectLayer([]() { return > std::make_shared<SectionMemoryManager>(); }), >         DumpObjectsLayer(ObjectLayer, &Kale...
2017 Aug 06
2
Compile issues with LLVM ORC JIT
...t;#include<vector>usingnamespacellvm;usingnamespacellvm::orc;namespacetl {namespacecontrib {classGenericJIT{private:std::unique_ptr<TargetMachine>TM;constDataLayoutDL;RTDyldObjectLinkingLayerObjectLayer;IRCompileLayer<decltype(ObjectLayer),SimpleCompiler>CompileLayer;public:usingModuleHandle=decltype(CompileLayer)::ModuleSetHandleT;GenericJIT():TM(EngineBuilder().selectTarget()),DL(TM->createDataLayout()),ObjectLayer([](){returnstd::make_shared<SectionMemoryManager>();}),CompileLayer(ObjectLayer){llvm::sys::DynamicLibrary::LoadLibraryPermanently(nullptr);}TargetMachine&get...
2017 Sep 27
2
OrcJIT + CUDA Prototype for Cling
Dear LLVM-Developers and Vinod Grover, we are trying to extend the cling C++ interpreter (https://github.com/root-project/cling) with CUDA functionality for Nvidia GPUs. I already developed a prototype based on OrcJIT and am seeking for feedback. I am currently a stuck with a runtime issue, on which my interpreter prototype fails to execute kernels with a CUDA runtime error. === How to use the
2018 Nov 05
2
ORC JIT api, object files and stackmaps
Hi Christian Your use case seems to have similar requirements as remote JITing in ORC. So far I haven't used that part myself and I am sure Lang can tell you much more about it. However, this comment on the RemoteObjectClientLayer class sounds promising for your questions (1) and (2): /// Sending relocatable objects to the server (rather than fully relocated /// bits) allows JIT'd code