Displaying 8 results from an estimated 8 matches for "exitonerr".
2020 Apr 20
2
ORC JIT Weekly #12
...ols / resources to the
// containing JITDylib's tracker.
void detach();
};
I'm hoping that usage will look like:
LLJIT J = LLJITBuilder().create();
// No tracker specified. Resources tracked by the containing
// JITDylib's tracker, and freed when the JITDylib is
// deinitialized.
ExitOnErr(J.addIRModule(sdt::move(UntrackedModule)));
// Explicitly specify tracker. Module symbols can be
// - materialized by calling T->emit();
// - removed by calling T->remove();
// - transfered to the JITDylib by calling T->release();
auto T = std::make_unique<ResourceTracker>();
Exi...
2019 Nov 12
3
ORC API C Standard/System Libraries
Hi all,
First of all, I want to say that I really appreciate all the work that's
gone into LLVM, clang and the ORC API. I would be very unlikely to be doing
my current project if they weren't available.
I'm using the ORC API to JIT some C code (soon to be C++) on Windows.
(I was on LLVM 8.0.0 but it didn't handle the 'allocator' attribute so I
upgraded to LLVM 9.0.0.)
2020 Sep 24
2
ORC JIT - Can modules independently managed with one LLJIT instance? + problems with ExecutionSession.lookup
Hey Lang,
I would be really happy to only have one LLJIT instance and using multiple JITDylibs. However… it seems like that I don’t know enough to use them. So I wonder…
1. When I add Module A to JITDylib A and Module B to JITDylib B – where will those look for undefined symbols? Will Module A for example: will it only search itself and the MainDylib? Or would it also search in JITDylib B?
2020 May 23
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...his code to an instance of llvm::Module by using the logic
borrowed from the lli tool.
Once I have the Module instance I construct an instance of orc::LLLazyJIT
(J), configure it (again closely following the logic in lli tool)
to which I then add the module like this:
// Add the main module.
ExitOnErr(J->addLazyIRModule(orc::ThreadSafeModule(std::move(MainModule),
TSCtx)));
Finally the module is executed like this:
// Run main.
auto MainSym = ExitOnErr(J->lookup("main"));
typedef int (*MainFnPtr)(int, char *[]);
auto Result = orc::runAsMain(
jitTargetAddre...
2020 Apr 13
4
LLVM 10 ORC2 issue with symbol resolution
Hi,
I updated my project to LLVM 10.0 today and I am getting JIT symbol
resolution errors.
I could not find any example or updated tutorial or documentation that
describes the new api - as all documentation seems out of date.
I paste below some code snippets that show what I am doing:
/* global syms is a array mapping names to function addresses */
2020 Jun 06
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...f orc::LLLazyJIT
>>>>> (J), configure it (again closely following the logic in lli tool)
>>>>> to which I then add the module like this:
>>>>>
>>>>> // Add the main module.
>>>>>
>>>>>
>>>>> ExitOnErr(J->addLazyIRModule(orc::ThreadSafeModule(std::move(MainModule),
>>>>> TSCtx)));
>>>>>
>>>>>
>>>>> Finally the module is executed like this:
>>>>>
>>>>> // Run main.
>>>>>
>>>>...
2020 Jun 20
1
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...(again closely following the logic in lli
> tool)
> >>>>>>> to which I then add the module like this:
> >>>>>>>
> >>>>>>> // Add the main module.
> >>>>>>>
> >>>>>>>
> ExitOnErr(J->addLazyIRModule(orc::ThreadSafeModule(std::move(MainModule),
> TSCtx)));
> >>>>>>>
> >>>>>>>
> >>>>>>> Finally the module is executed like this:
> >>>>>>>
> >>>>>>> /...
2017 Apr 04
3
RFC: Adding a string table to the bitcode format
On Tue, Apr 4, 2017 at 12:36 PM, Duncan P. N. Exon Smith <
dexonsmith at apple.com> wrote:
>
> On 2017-Apr-04, at 12:12, Peter Collingbourne <peter at pcc.me.uk> wrote:
>
> On Mon, Apr 3, 2017 at 8:13 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>>
>> On Apr 3, 2017, at 7:08 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
>>