search for: ircompilelay

Displaying 20 results from an estimated 29 matches for "ircompilelay".

Did you mean: ircompilelayer
2016 Apr 01
2
Kaleidoscope on Windows - bug maybe found?
...l = J.findUnmangledSymbol("__anon_expr"); JITSymbol findUnmangledSymbol(const std::string Name) { return findSymbol(mangle(Name)); } JITSymbol findSymbol(const std::string &Name) { return CompileLayer.findSymbol(Name, true); } CompileLayerT CompileLayer; typedef IRCompileLayer<ObjLayerT> CompileLayerT; C:\llvm\include\llvm\ExecutionEngine\Orc\IRCompileLayer.h template <typename BaseLayerT> class IRCompileLayer { JITSymbol findSymbol(const std::string &Name, bool ExportedSymbolsOnly) { return BaseLayer.findSymbol(Name, ExportedSymbolsOnly); }...
2017 Aug 06
2
Compile issues with LLVM ORC JIT
...he error I get is this: error: unknown type name 'RTDyldObjectLinkingLayer'; did you mean 'RTDyldObjectLinkingLayerBase'? Moreover, I get more errors. This tells me something is wrong with the templating. error: too many template arguments for class template 'IRCompileLayer' IRCompileLayer CompileLayer; Another error with regards to RTDyldObjectLinkingLayer: error: too many template arguments for class template 'IRCompileLayer' IRCompileLayer CompileLayer; |#define_CONTRIB_JIT_ 1#include"llvm/ADT/STLExtras.h"#include"llvm/Execu...
2016 Apr 01
0
Kaleidoscope on Windows - bug maybe found?
...> > JITSymbol findUnmangledSymbol(const std::string Name) { > return findSymbol(mangle(Name)); > } > > JITSymbol findSymbol(const std::string &Name) { > return CompileLayer.findSymbol(Name, true); > } > > CompileLayerT CompileLayer; > typedef IRCompileLayer<ObjLayerT> CompileLayerT; > > C:\llvm\include\llvm\ExecutionEngine\Orc\IRCompileLayer.h > > template <typename BaseLayerT> class IRCompileLayer { > > JITSymbol findSymbol(const std::string &Name, bool ExportedSymbolsOnly) { > return BaseLayer.findSymbol(...
2019 May 10
2
ORC - which example code?
...g to put together a simple test JIT compiler, using ORC which as I understand it will be the supported API going forward, I noticed that in the first chapter of the updated Kaleidoscope tutorial, there is sample code that starts like this: ExecutionSession ES; RTDyldObjectLinkingLayer ObjectLayer; IRCompileLayer CompileLayer; DataLayout DL; MangleAndInterner Mangle; ThreadSafeContext Ctx; But in https://llvm.org/devmtg/2016-11/Slides/Hames-ORC.pdf there is sample code that looks like this: ObjectLinkingLayer LinkLayer; SimpleCompiler Compiler(TargetMachine()); IRCompileLayer<…> CompileLayer(Link...
2016 May 17
3
External function resolution: MCJIT vs ORC JIT
...ways? ----- #include <llvm/ADT/STLExtras.h> #include <llvm/Bitcode/ReaderWriter.h> #include <llvm/ExecutionEngine/ExecutionEngine.h> #include <llvm/ExecutionEngine/Orc/CompileUtils.h> #include <llvm/ExecutionEngine/RuntimeDyld.h> #include <llvm/ExecutionEngine/Orc/IRCompileLayer.h> #include <llvm/ExecutionEngine/Orc/LambdaResolver.h> #include <llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h> #include <llvm/IR/DataLayout.h> #include <llvm/IR/IRBuilder.h> #include <llvm/IR/LegacyPassManager.h> #include <llvm/IR/LLVMContext.h> #include &...
2019 Sep 19
3
"corrupted size vs. prev_size" when calling ExecutionSession::lookup()
...:orc::RTDyldObjectLinkingLayer ObjectLayer(ES, []() { return std::make_unique<llvm::SectionMemoryManager>(); }); auto JTMB = llvm::orc::JITTargetMachineBuilder::detectHost(); auto DL = JTMB->getDefaultDataLayoutForTarget(); llvm::orc::IRCompileLayer CompileLayer(ES, ObjectLayer, llvm::orc::ConcurrentIRCompiler(std::move(*JTMB))); llvm::orc::MangleAndInterner Mangle(ES, *DL); ES.getMainJITDylib().setGenerator( llvm::cantFail(llvm::orc::DynamicLibrarySearchGenerator::GetForCurrentProcess(*DL))); // ... large part to generate IR code ....
2016 May 19
2
External function resolution: MCJIT vs ORC JIT
...t;llvm/ADT/STLExtras.h> > #include <llvm/Bitcode/ReaderWriter.h> > #include <llvm/ExecutionEngine/ExecutionEngine.h> > #include <llvm/ExecutionEngine/Orc/CompileUtils.h> > #include <llvm/ExecutionEngine/RuntimeDyld.h> > #include <llvm/ExecutionEngine/Orc/IRCompileLayer.h> > #include <llvm/ExecutionEngine/Orc/LambdaResolver.h> > #include <llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h> > #include <llvm/IR/DataLayout.h> > #include <llvm/IR/IRBuilder.h> > #include <llvm/IR/LegacyPassManager.h> > #include <llvm/I...
2017 Apr 09
2
Possible stack corruption during call to JITSymbol::getAddress()
..."llvm/ADT/STLExtras.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/IR/IRBuilder.h" #include "llvm/ExecutionEngine/SectionMemoryManager.h" #include "llvm/ExecutionEngine/Orc/CompileUtils.h" #include "llvm/ExecutionEngine/Orc/IRCompileLayer.h" #include "llvm/ExecutionEngine/Orc/LambdaResolver.h" #include "llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h" #include "llvm/IR/Mangler.h" #include "llvm/Support/DynamicLibrary.h" #include "llvm/Support/TargetSelect.h" #include <iostrea...
2019 Aug 16
2
[ORC] [mlir] Dump assembly from OrcJit
...t are passed in to the cache to disk. You can just return 'nullptr' from your dummy cache's getObject method, since you are not really using it as a cache. Alternatively, If you are writing a custom ORC stack there is a second option: You can insert an ObjectTransformLayer between your IRCompileLayer and ObjectLinkingLayer and use that to dump the buffers to disk. I hope this helps! -- Lang. On Thu, Aug 15, 2019 at 3:44 PM Caballero, Diego via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote: Hi all, Is there a way to dump the generated assembly f...
2017 Apr 17
2
Possible stack corruption during call to JITSymbol::getAddress()
...clude "llvm/ExecutionEngine/ExecutionEngine.h" >> #include "llvm/IR/IRBuilder.h" >> #include "llvm/ExecutionEngine/SectionMemoryManager.h" >> #include "llvm/ExecutionEngine/Orc/CompileUtils.h" >> #include "llvm/ExecutionEngine/Orc/IRCompileLayer.h" >> #include "llvm/ExecutionEngine/Orc/LambdaResolver.h" >> #include "llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h" >> #include "llvm/IR/Mangler.h" >> #include "llvm/Support/DynamicLibrary.h" >> #include "llvm/Supp...
2016 May 20
0
External function resolution: MCJIT vs ORC JIT
....h> >> #include <llvm/Bitcode/ReaderWriter.h> >> #include <llvm/ExecutionEngine/ExecutionEngine.h> >> #include <llvm/ExecutionEngine/Orc/CompileUtils.h> >> #include <llvm/ExecutionEngine/RuntimeDyld.h> >> #include <llvm/ExecutionEngine/Orc/IRCompileLayer.h> >> #include <llvm/ExecutionEngine/Orc/LambdaResolver.h> >> #include <llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h> >> #include <llvm/IR/DataLayout.h> >> #include <llvm/IR/IRBuilder.h> >> #include <llvm/IR/LegacyPassManager.h> >...
2017 Apr 20
2
Possible stack corruption during call to JITSymbol::getAddress()
.../ExecutionEngine.h" >>>> #include "llvm/IR/IRBuilder.h" >>>> #include "llvm/ExecutionEngine/SectionMemoryManager.h" >>>> #include "llvm/ExecutionEngine/Orc/CompileUtils.h" >>>> #include "llvm/ExecutionEngine/Orc/IRCompileLayer.h" >>>> #include "llvm/ExecutionEngine/Orc/LambdaResolver.h" >>>> #include "llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h" >>>> #include "llvm/IR/Mangler.h" >>>> #include "llvm/Support/DynamicLibrary.h" &...
2016 May 22
1
External function resolution: MCJIT vs ORC JIT
....h> >> #include <llvm/Bitcode/ReaderWriter.h> >> #include <llvm/ExecutionEngine/ExecutionEngine.h> >> #include <llvm/ExecutionEngine/Orc/CompileUtils.h> >> #include <llvm/ExecutionEngine/RuntimeDyld.h> >> #include <llvm/ExecutionEngine/Orc/IRCompileLayer.h> >> #include <llvm/ExecutionEngine/Orc/LambdaResolver.h> >> #include <llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h> >> #include <llvm/IR/DataLayout.h> >> #include <llvm/IR/IRBuilder.h> >> #include <llvm/IR/LegacyPassManager.h> >...
2016 Nov 07
2
[llvm] To link or not to link
...ass seems to provide the functionality I want. I oriented myself on the example from https://github.com/AndySomogyi/cayman/blob/aaa809c/src/llvm_orc_initial.cpp#L1172 (just oriented, because at least on 3.9, I can not stack the GlobalMappingLayer on the ObjectLinkingLayer. I have to put it onto the IRCompileLayer. One question I'd have: How does that order matter?) The problem I have with that conceptually is: The name seems to matter. The abstraction I'd like is that I get an llvm::Function*, and that is mapped to &somefunc, the name "bla" I gave it should be irrelevant. (And that&...
2020 May 23
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...mLayer::emit(llvm::orc::MaterializationResponsibility, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/ObjectTransformLayer.cpp:35 #16 0x000000010638e9c8 in llvm::orc::IRCompileLayer::emit(llvm::orc::MaterializationResponsibility, llvm::orc::ThreadSafeModule) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/IRCompileLayer.cpp:35 #17 0x000000010638ff64 in llvm::orc::IRTransformLayer::emit(llvm::orc::MaterializationResponsibility, llvm::orc::Thread...
2017 May 01
1
Possible stack corruption during call to JITSymbol::getAddress()
...;>>>> #include "llvm/IR/IRBuilder.h" >>>>>> #include "llvm/ExecutionEngine/SectionMemoryManager.h" >>>>>> #include "llvm/ExecutionEngine/Orc/CompileUtils.h" >>>>>> #include "llvm/ExecutionEngine/Orc/IRCompileLayer.h" >>>>>> #include "llvm/ExecutionEngine/Orc/LambdaResolver.h" >>>>>> #include "llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h" >>>>>> #include "llvm/IR/Mangler.h" >>>>>> #include "llvm/...
2020 Apr 16
4
ORC Assertion failure
...n<void __cdecl(llvm::Error)> OnEmitted) Line 1427 C++ libravi.dll!llvm::orc::RTDyldObjectLinkingLayer::emit(llvm::orc::MaterializationResponsibility R, std::unique_ptr<llvm::MemoryBuffer,std::default_delete<llvm::MemoryBuffer>> O) Line 155 C++ libravi.dll!llvm::orc::IRCompileLayer::emit(llvm::orc::MaterializationResponsibility R, llvm::orc::ThreadSafeModule TSM) Line 41 C++ libravi.dll!llvm::orc::IRTransformLayer::emit(llvm::orc::MaterializationResponsibility R, llvm::orc::ThreadSafeModule TSM) Line 25 C++ libravi.dll!llvm::orc::BasicIRLayerMaterializationU...
2020 Jun 06
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...gt;>>> std::__1::default_delete<llvm::MemoryBuffer> >) at >>>>> /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/ObjectTransformLayer.cpp:35 >>>>> >>>>> #16 0x000000010638e9c8 in >>>>> llvm::orc::IRCompileLayer::emit(llvm::orc::MaterializationResponsibility, >>>>> llvm::orc::ThreadSafeModule) at >>>>> /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/IRCompileLayer.cpp:35 >>>>> >>>>> #17 0x000000010638ff64 in >>&g...
2017 Nov 14
1
OrcJIT + CUDA Prototype for Cling
...Obj; >   } > >   std::unique_ptr<TargetMachine> TM; >   const DataLayout DL; >   RTDyldObjectLinkingLayer 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...
2020 Jun 20
1
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...m::MemoryBuffer, > std::__1::default_delete<llvm::MemoryBuffer> >) at > /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/ObjectTransformLayer.cpp:35 > >>>>>>> > >>>>>>> #16 0x000000010638e9c8 in > llvm::orc::IRCompileLayer::emit(llvm::orc::MaterializationResponsibility, > llvm::orc::ThreadSafeModule) at > /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/IRCompileLayer.cpp:35 > >>>>>>> > >>>>>>> #17 0x000000010638ff64 in > llvm::orc::...