Displaying 20 results from an estimated 33 matches for "compilelay".
Did you mean:
compile_by
2016 Apr 01
2
Kaleidoscope on Windows - bug maybe found?
...on
calls:
C:\llvm\examples\Kaleidoscope\Orc\initial\toy.cpp
auto ExprSymbol = 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 Exp...
2017 Aug 06
2
Compile issues with LLVM ORC JIT
...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...
2017 Apr 09
2
Possible stack corruption during call to JITSymbol::getAddress()
...uot;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 May 10
2
ORC - which example code?
...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...
2017 Apr 17
2
Possible stack corruption during call to JITSymbol::getAddress()
...ude "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 Apr 01
0
Kaleidoscope on Windows - bug maybe found?
...rc\initial\toy.cpp
>
> auto ExprSymbol = 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 fi...
2017 Apr 20
2
Possible stack corruption during call to JITSymbol::getAddress()
...xecutionEngine.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 17
3
External function resolution: MCJIT vs ORC JIT
...ys?
-----
#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 &...
2017 May 07
2
[cfe-dev] JIT doens't resolve address - Resolve obj-Addresses?
...are resolved by the JITSymbolResolver that
> is created by createLambdaResolver. In your example the resolution process
> is two-step: First the JIT searches its own function definitions to see if
> there is a function called "printf" defined there (this is what the call to
> CompileLayer.findSymbol does):
>
> [&](const std::string &Name) {
> printf("FLUSH :0\n");
> if (auto Sym = CompileLayer.findSymbol(Name, false))
> return Sym;
> return JITSymbol(nullptr);
> }
>
> Then, if it doesn't find a definition there, it falls...
2019 Sep 19
3
"corrupted size vs. prev_size" when calling ExecutionSession::lookup()
...rc::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
....
2018 Jun 28
3
Since MCJIT I can't get libm functions to work
..."e-m:e-i64:64-f80:128-n8:16:32:64-S128"
The code snippet that adds the module is pretty much from the JIT tutorial:
auto Resolver = llvm::orc::createLambdaResolver(
[&](const std::string &Name) {
if (auto Sym =
CompileLayer.findSymbol(Name, false))
return Sym;
return llvm::JITSymbol(nullptr);
},
[](const std::string &Name) {
if (auto SymAddr =
llvm::RTDyldMemoryMa...
2017 May 01
1
Possible stack corruption during call to JITSymbol::getAddress()
...gt;>>> #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/...
2017 Nov 14
1
OrcJIT + CUDA Prototype for Cling
...o understand more, how the interpreter library
works. I have also some new ideas, how I could find the concrete problem
and solve it.
Cheers,
Simeon
Am 09.11.2017 um 00:59 schrieb Lang Hames:
> Hi Simon,
>
> I think the best thing would be to add an ObjectTransformLayer between
> your CompileLayer and LinkingLayer so that you can capture the object
> files as they're generated. Then you can inspect the object files
> being generated by the compiler to see what might be wrong with them.
>
> Something like this:
>
> class KaleidoscopeJIT {
> private:
>
> usin...
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
2018 Jun 28
2
Since MCJIT I can't get libm functions to work
...>>
>> The code snippet that adds the module is pretty much from the JIT tutorial:
>>
>> auto Resolver = llvm::orc::createLambdaResolver(
>> [&](const std::string &Name) {
>> if (auto Sym = CompileLayer.findSymbol(Name, false))
>> return Sym;
>> return llvm::JITSymbol(nullptr);
>> },
>> [](const std::string &Name) {
>>...
2016 May 19
2
External function resolution: MCJIT vs ORC JIT
...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...
2019 Sep 23
4
"Freeing" functions generated with SimpleORC for JIT use-case
...y 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
"KaleidoscopeJIT" class ensure all memory is reclaimed? In that case i can
periodically re-create that class to achieve what i want.
Thanks!
Rajesh S R
-------------- next part --------------
An HTML att...
2016 May 20
0
External function resolution: MCJIT vs ORC JIT
...>
>> #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 May 22
1
External function resolution: MCJIT vs ORC JIT
...>
>> #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 Aug 24
1
Invalid Signature of orc::RTDyldObjectLinkingLayer::NotifyLoadedFtor
...SectionMemoryManager>(); },
+ [this](llvm::orc::RTDyldObjectLinkingLayerBase::ObjHandleT,
+ const
llvm::orc::RTDyldObjectLinkingLayerBase::ObjectPtr &obj,
+ const llvm::RuntimeDyld::LoadedObjectInfo &info) {
+ }),
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::RTDyl...