Displaying 5 results from an estimated 5 matches for "getconstructor".
Did you mean:
getconstructors
2018 Jun 19
2
runStaticConstructorsDestructors() causes crash on exit
...the
source code (top of the tree!), I am able to execute my functions all
right... as long as there are no constructors and destructors to call.
My question: is there a simple way, with the Orc API, to run a module's
constructors and destructors? I see how OrcMCJITReplacement does it,
calling getConstructors() and getDestructors() when a module is added, and
running them later using a layer, but is there maybe a simpler way that I
am missing? I would prefer to avoid having to invent secret names for
constructors, play with their linkage and visibility, and generally get
involved in things I don't...
2018 Jun 21
2
runStaticConstructorsDestructors() causes crash on exit
...), I am able to execute my functions all
> right... as long as there are no constructors and destructors to call.
> >
> > My question: is there a simple way, with the Orc API, to run a module's
> constructors and destructors? I see how OrcMCJITReplacement does it,
> calling getConstructors() and getDestructors() when a module is added, and
> running them later using a layer, but is there maybe a simpler way that I
> am missing? I would prefer to avoid having to invent secret names for
> constructors, play with their linkage and visibility, and generally get
> involved in...
2018 Jun 25
2
runStaticConstructorsDestructors() causes crash on exit
...le to execute my functions all
> right... as long as there are no constructors and destructors to call.
> > >
> > > My question: is there a simple way, with the Orc API, to run a
> module's constructors and destructors? I see how OrcMCJITReplacement does
> it, calling getConstructors() and getDestructors() when a module is added,
> and running them later using a layer, but is there maybe a simpler way that
> I am missing? I would prefer to avoid having to invent secret names for
> constructors, play with their linkage and visibility, and generally get
> involved in...
2019 Mar 15
2
Static constructors with ORC JIT?
Thank you Alex,
I went and implemented a solution along those lines. It works well.
It may be worth mentioning static constructors in the Kaleidoscope tutorial.
Cheers,
Daniele
________________________________________
From: Alex Denisov [1101.debian at gmail.com]
Sent: 15 March 2019 08:07
To: Daniele Vettorel
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Static constructors with ORC
2018 Jun 14
3
runStaticConstructorsDestructors() causes crash on exit
Greetings, LLVM wizards.
I am using clang to compile a C++ module, and an ExecutionEngine (MCJIT) to
execute a function it defines. That works (or pretends to). However, if I
call the module's constructors first:
exec_engine->runStaticConstructorsDestructors(false);
exec_engine->runFunctionAsMain(function, argvec, NULL);
execution still works, but my program crashes when it exits, in