Displaying 8 results from an estimated 8 matches for "objlayert".
2016 Apr 01
2
Kaleidoscope on Windows - bug maybe found?
...dSymbol("__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);
}
C:\llvm\exampl...
2016 Apr 01
0
Kaleidoscope on Windows - bug maybe found?
...bol 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, ExportedS...
2016 May 17
3
External function resolution: MCJIT vs ORC JIT
...d::unique_ptr<llvm::TargetMachine> TM (llvm::EngineBuilder().selectTarget());
std::unique_ptr<llvm::DataLayout> DL;
DL.reset (new llvm::DataLayout (TM->createDataLayout()));
std::unique_ptr<llvm::ExecutionEngine> EE;
typedef llvm::orc::ObjectLinkingLayer<> ObjLayerT;
typedef llvm::orc::IRCompileLayer<ObjLayerT> CompileLayerT;
typedef CompileLayerT::ModuleSetHandleT ModuleHandleT;
ObjLayerT Objlayer;
CompileLayerT Compilelayer (Objlayer, llvm::orc::SimpleCompiler(*TM));
std::unique_ptr<llvm::Module> M (new llvm::Module("modu...
2016 May 19
2
External function resolution: MCJIT vs ORC JIT
...m::TargetMachine> TM (llvm::EngineBuilder().selectTarget());
> std::unique_ptr<llvm::DataLayout> DL;
> DL.reset (new llvm::DataLayout (TM->createDataLayout()));
> std::unique_ptr<llvm::ExecutionEngine> EE;
> typedef llvm::orc::ObjectLinkingLayer<> ObjLayerT;
> typedef llvm::orc::IRCompileLayer<ObjLayerT> CompileLayerT;
> typedef CompileLayerT::ModuleSetHandleT ModuleHandleT;
> ObjLayerT Objlayer;
> CompileLayerT Compilelayer (Objlayer, llvm::orc::SimpleCompiler(*TM));
> std::unique_ptr<llvm::Module> M (ne...
2016 May 20
0
External function resolution: MCJIT vs ORC JIT
...gt;> (llvm::EngineBuilder().selectTarget());
>> std::unique_ptr<llvm::DataLayout> DL;
>> DL.reset (new llvm::DataLayout (TM->createDataLayout()));
>> std::unique_ptr<llvm::ExecutionEngine> EE;
>> typedef llvm::orc::ObjectLinkingLayer<> ObjLayerT;
>> typedef llvm::orc::IRCompileLayer<ObjLayerT> CompileLayerT;
>> typedef CompileLayerT::ModuleSetHandleT ModuleHandleT;
>> ObjLayerT Objlayer;
>> CompileLayerT Compilelayer (Objlayer, llvm::orc::SimpleCompiler(*TM));
>> std::unique_ptr<ll...
2015 Mar 13
4
[LLVMdev] Thoughts about ExecutionEngine/MCJIT interface
Hi,
I think ExecutionEngine as a common interface for both Interpreter and
MCJIT is almost useless in the current form. There are separated methods in
ExecutionEngine for similar or the same features provided by Interpreter
and MCJIT, i.e. to get a pointer to function you should call
getPointerToFunction() for Interpreter or getFunctionAddress() for MCJIT.
Personally, I'm using MCJIT and
2016 May 22
1
External function resolution: MCJIT vs ORC JIT
...> TM (llvm::EngineBuilder().selectTarget());
>> std::unique_ptr<llvm::DataLayout> DL;
>> DL.reset (new llvm::DataLayout (TM->createDataLayout()));
>> std::unique_ptr<llvm::ExecutionEngine> EE;
>> typedef llvm::orc::ObjectLinkingLayer<> ObjLayerT;
>> typedef llvm::orc::IRCompileLayer<ObjLayerT> CompileLayerT;
>> typedef CompileLayerT::ModuleSetHandleT ModuleHandleT;
>> ObjLayerT Objlayer;
>> CompileLayerT Compilelayer (Objlayer, llvm::orc::SimpleCompiler(*TM));
>> std::unique_ptr<ll...
2017 Aug 24
1
Invalid Signature of orc::RTDyldObjectLinkingLayer::NotifyLoadedFtor
...{
+ }),
CompileLayer(ObjectLayer, orc::SimpleCompiler(*this->TM)),
IRDumpLayer(CompileLayer, createDebugDumper()),
CODLayer(IRDumpLayer, extractSingleFunction, *this->CCMgr,
Diagnostic message:
error: no matching constructor for initialization of 'ObjLayerT' (aka
'llvm::orc::RTDyldObjectLinkingLayer')
ObjectLayer([]() { return
std::make_shared<SectionMemoryManager>(); },
^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /llvm50/llvm/tools/lli/OrcLazyJIT.cpp:10:
In file includ...