search for: indirectionutil

Displaying 10 results from an estimated 10 matches for "indirectionutil".

Did you mean: indirectionutils
2015 Dec 02
0
re-compile a function
...to maintain multiple JIT instances yourself. You'll still need to manage the invalidation and/or function pointer update. If you come up with a scheme for that though we could look at adding it in-tree. You might also be able to make some use of the utilities in include/llvm/ExecutionEngine/Orc/IndirectionUtils.h. In case it's useful, I've attached an example that uses the Orc APIs to do recompilation at higher optimization levels, based on the Kaleidoscope tutorials. This was motivated by the following mailing list discussion: http://lists.llvm.org/pipermail/llvm-dev/2015-July/087776.html, whic...
2015 Nov 21
3
re-compile a function
Dear All Is there is a way to recompile a function at runtime? It seems that I need to -like - invalidate the recompiled function to force the MCJIT to recompile it, cause when I just call runFunction, it neglects any modifications in the function code. Thanks in advance. Regards, Marwa Yusuf Teaching Assistant - Computer Engineering Department Faculty of Engineering - Benha University E-JUST
2016 May 27
1
How to recompile functions with ORC JIT?
...rying to figure out is how the function pointer can be updated > to point to the newly compiled version. As Dave implied, it depends on how you've set up your ORC stack. These days, the API directly responsible for this is the IndirectStubsManager (see llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h). If you have access to the appropriate IndirectStubsManager you just need to call the updatePointer method with the name of the function you want to update and the new address. If you're using the CompileOnDemand layer to compile lazily from IR, the problem is that that layer doesn't (...
2016 May 27
0
How to recompile functions with ORC JIT?
+Lang Ultravague answer: There are a few different Orc layers for different levels of indirection needed for different levels of substitutability. One way is to indirect every call through global function pointers - so when you want to replace the function you write the new function pointer to the global variable. I forget which layers do which kinds of indirection. - Dave On Thu, May 26, 2016
2018 Dec 13
2
Crashes when adding VisualStduio generated object files to the JIT process
Hello everyone, I'm using the LLVM for a JIT-Client under Windows 64bit. I tried various stuff with it and noticed, that object files or libraries which are generated by the Visual Studio Compiler 2015 or 2017 will break the jitted code, when they are added to the process. I opened a bug for this a while ago (https://bugs.llvm.org/show_bug.cgi?id=39447) - sadly this bug will become a stopper
2016 May 27
2
How to recompile functions with ORC JIT?
Hello, I am trying to figure out how to recompile functions multiple times during run-time with ORC JIT and I'd appreciate any help/advice. My use case is t he following: every time a function of interest (annotated) is called, profiling data are gathered. Given enough data the function is recompiled using different optimizations. This happens repeatedly until the "best"
2020 May 23
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...ns/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2419 #64 0x0000000106349858 in llvm::orc::LocalTrampolinePool<llvm::orc::OrcAArch64>::reenter(void*, void*) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h:111 #65 0x0000000117634090 in 0x117634090 () #66 0x0000000106323a08 in llvm::orc::runAsMain(int (*)(int, char**), llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, llvm::Optional<llvm::StringRef>) at /Users/igo...
2020 Jun 06
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...gt;>>>> >>>>> #64 0x0000000106349858 in >>>>> llvm::orc::LocalTrampolinePool<llvm::orc::OrcAArch64>::reenter(void*, >>>>> void*) at >>>>> /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h:111 >>>>> >>>>> #65 0x0000000117634090 in 0x117634090 () >>>>> >>>>> #66 0x0000000106323a08 in llvm::orc::runAsMain(int (*)(int, char**), >>>>> llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<ch...
2020 Jun 20
1
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...+/v1/functional:2419 > >>>>>>> > >>>>>>> #64 0x0000000106349858 in > llvm::orc::LocalTrampolinePool<llvm::orc::OrcAArch64>::reenter(void*, > void*) at > /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h:111 > >>>>>>> > >>>>>>> #65 0x0000000117634090 in 0x117634090 () > >>>>>>> > >>>>>>> #66 0x0000000106323a08 in llvm::orc::runAsMain(int (*)(int, > char**), llvm::ArrayRef<std::__1::basic_string&...
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...ering directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/lib/ExecutionEngine/Orc' llvm[3]: Compiling ExecutionUtils.cpp for Release+Asserts build llvm[2]: Compiling BranchFolding.cpp for Release+Asserts build llvm[4]: Compiling X86WinCOFFObjectWriter.cpp for Release+Asserts build llvm[3]: Compiling IndirectionUtils.cpp for Release+Asserts build llvm[4]: Compiling X86WinCOFFStreamer.cpp for Release+Asserts build llvm[4]: Building Release+Asserts Archive Library libLLVMX86Desc.a make[4]: Leaving directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/lib/Target/X86/MCTargetDesc' make[4]: Entering directory '/ho...