Displaying 20 results from an estimated 115 matches for "moduleproviders".
Did you mean:
moduleprovider
2008 May 12
2
[LLVMdev] Python bindings available.
> Consider the case where a function creates and populates a Module, stuffs it
> in an ExistingModuleProvider for the JIT, then returns the ModuleProvider,
> dropping direct reference to the Module. (ModuleProvider takes ownership of
> the Module.) I presume that your Python object is under the impression it
> owns the Module; when that goes out of scope, its refcount goes to zero
2008 May 12
0
[LLVMdev] Python bindings available.
On May 12, 2008, at 02:58, Mahadevan R wrote:
>> Consider the case where a function creates and populates a Module,
>> stuffs it in an ExistingModuleProvider for the JIT, then returns
>> the ModuleProvider, dropping direct reference to the Module.
>> (ModuleProvider takes ownership of the Module.) I presume that your
>> Python object is under the impression
2009 Jul 07
1
[LLVMdev] ModuleProvider materializeFunction
Thanks for the reply. I actually managed to resolve this problem mostly to my satisfaction. I suspect based on your description of materializeFunction I may be best served by subclassing the ModuleProvider to do what I want.
Thanks again.
--- On Mon, 7/6/09, Chris Lattner <clattner at apple.com> wrote:
> From: Chris Lattner <clattner at apple.com>
> Subject: Re: [LLVMdev]
2009 Jul 07
0
[LLVMdev] ModuleProvider materializeFunction
On Jul 4, 2009, at 5:59 AM, Carter Cheng wrote:
> I have tracing the calls to materializeFunction in the LLVM code in
> hopes of determining how to properly utilize this function but from
> my explorations I gather it's just a hook which is called by the JIT
> system and I would mostly have to do the work myself.
ModuleProvider is a very simple concept. You can either load
2009 Jul 04
4
[LLVMdev] ModuleProvider materializeFunction
I have tracing the calls to materializeFunction in the LLVM code in hopes of determining how to properly utilize this function but from my explorations I gather it's just a hook which is called by the JIT system and I would mostly have to do the work myself.
What is the preferred way to inject a llvm:Function which contains basic blocks into the Module + JIT? My understanding (perhaps
2008 May 12
2
[LLVMdev] Python bindings available.
On Mon, May 12, 2008 at 7:55 PM, Gordon Henriksen
<gordonhenriksen at mac.com> wrote:
> On May 12, 2008, at 02:58, Mahadevan R wrote:
>
> >> Consider the case where a function creates and populates a Module,
> >> stuffs it in an ExistingModuleProvider for the JIT, then returns
> >> the ModuleProvider, dropping direct reference to the Module.
> >>
2008 May 12
0
[LLVMdev] Python bindings available.
On May 10, 2008, at 05:44, Mahadevan R wrote:
> I'd like to announce the availability of Python bindings for LLVM.
>
> It is built over llvm-c, and currently exposes enough APIs to build
> an in-memory IR (and dump it!). It needs LLVM 2.3 latest and Python
> 2.5 (2.4 should be sufficient, but I haven't tested). Tested only on
> Linux/i386.
>
> Would love to
2009 Jul 04
0
[LLVMdev] ModuleProvider materializeFunction
Carter Cheng wrote:
> I have tracing the calls to materializeFunction in the LLVM code in hopes of determining how to properly utilize this function but from my explorations I gather it's just a hook which is called by the JIT system and I would mostly have to do the work myself.
>
> What is the preferred way to inject a llvm:Function which contains basic blocks into the Module +
2009 Oct 19
3
[LLVMdev] Objective-C code in lli
Hi,
Is it possible to run Objective-C code in lli? lli does not seem to
want to load Foundation.framework.
Please see below.
Thanks,
Eric Brunstad
#import <Foundation/Foundation.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog(@"test!");
[pool drain];
return EXIT_SUCCESS;
}
cmu-351714:llvm-2.5 ericbrunstad$
2007 Jul 15
2
[LLVMdev] JIT Leaks?
First, I'm not sure if deleting the ExecutionEngine is all I need to
clean-up... so I started with a minimal test just to check
int main( int argc, char **argv ){
while( true ){
Module *M = new Module("M");
Function *F = cast<Function>(M->getOrInsertFunction("F",
Type::Int32Ty, (Type*)0));
BasicBlock *BB = new
2009 Jul 23
1
[LLVMdev] Possible change to ExecutionEngine::create()
Hi,
Would it be possible to make the following slight change to ExecutionEngine::create()?
I would like to be able to disable the automatic enumeration of loaded modules, and the subsequent searching for undefined symbols (using SearchForAddressOfSymbol).
I propose adding an extra parameter to the function definition, defaulting to true.
static ExecutionEngine *create(ModuleProvider *MP,
2008 Mar 04
1
[LLVMdev] [PATCH] Prefer to use *.opt ocaml executables as they are more efficient.
I noticed that the ocaml compilation isn't using the .opt
executables if they're available. We might gain a slight
optimization in ocaml compile time by optionally using them
with this patch.
---
autoconf/configure.ac | 18 +++++
configure | 195 ++++++++++++++++++++++++++++++++++++++++++------
2 files changed, 188 insertions(+), 25 deletions(-)
-------------- next part
2008 Mar 04
0
[LLVMdev] [PATCH] Cleanup the c and ocaml binding documentation.
Hi Erick,
Thanks, this looks good. Can you please resubmit this patch, and the
others, as an attachment?
On Mar 4, 2008, at 03:19, Erick Tryzelaar wrote:
> ---
> bindings/ocaml/llvm/llvm.ml | 2 +-
> bindings/ocaml/llvm/llvm.mli | 2 +-
> bindings/ocaml/llvm/llvm_ocaml.c | 2 +-
> include/llvm-c/Core.h | 32 ++++++++++++++++++
> +-------------
2008 Mar 04
1
[LLVMdev] [PATCH] Cleanup the c and ocaml binding documentation.
---
bindings/ocaml/llvm/llvm.ml | 2 +-
bindings/ocaml/llvm/llvm.mli | 2 +-
bindings/ocaml/llvm/llvm_ocaml.c | 2 +-
include/llvm-c/Core.h | 32 +++++++++++++++++++-------------
4 files changed, 22 insertions(+), 16 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 316a84e85ed2363551149e65a227c8e7c8192624.diff
Type:
2007 Jul 15
0
[LLVMdev] JIT Leaks?
On Sun, 15 Jul 2007, Paolo Invernizzi wrote:
> First, I'm not sure if deleting the ExecutionEngine is all I need to
> clean-up... so I started with a minimal test just to check
Is this llvm 2.0 or llvm svn head? Several minor memory leaks have been
fixed since llvm 2.0.
-Chris
> int main( int argc, char **argv ){
> while( true ){
> Module *M = new
2010 Feb 11
2
[LLVMdev] LLVM memory usage?
Hi,
I'm seeing rather high memory usage from LLVM and I'd like to track down
what I'm doing to cause it. My application is a simple web application
server that compiles web pages with embedded script to bitcode and compiles
them with the JIT on demand. I've taken tools/lli.cpp as a starting point
and extended it to load additional modules.
However, if I load successive pages and
2009 Jul 23
2
[LLVMdev] proposed new rule for getelementptr
On Jul 22, 2009, at 5:23 PM, Chris Lattner wrote:
>
> On Jul 22, 2009, at 1:32 PM, Dan Gohman wrote:
>
>>>>
>>>> - A null pointer is associated with no addresses.
>>>>
>>>
>>> A null pointer in address space 0.
>>
>> I'm not fond of weird address-space semantics, but for consistency
>> with what the optimizer is
2009 Jul 23
0
[LLVMdev] Possible change to ExecutionEngine::create()
On Jul 22, 2009, at 9:43 PM, Rob Grapes wrote:
> Hi,
>
> Would it be possible to make the following slight change to
> ExecutionEngine::create()?
>
> I would like to be able to disable the automatic enumeration of
> loaded modules, and the subsequent searching for undefined symbols
> (using SearchForAddressOfSymbol).
>
> I propose adding an extra parameter to
2009 Oct 06
0
[LLVMdev] 2.6/trunk Execution Engine question
>
> It just occurred to me... in the case where it's failing, the
> ExecutionEngine was trying to JIT a global, and it had never JITted
> any functions! I'll work up a small test case, but I think it's
> relevant since the thing is trying to allocate the globals with the
> functions.
>
That was it! The following small test program crashes in getPointerToGlobal:
2008 May 10
4
[LLVMdev] Python bindings available.
Hi all,
I'd like to announce the availability of Python bindings for LLVM.
It is built over llvm-c, and currently exposes enough APIs to build an
in-memory IR (and dump it!). It needs LLVM 2.3 latest and Python 2.5
(2.4 should be sufficient, but I haven't tested). Tested only on
Linux/i386.
Would love to hear your comments.
[Needless to say, it's all work in progress, but mostly it