Displaying 20 results from an estimated 28 matches for "foofs".
Did you mean:
  foo's
  
2008 Aug 19
7
[LLVMdev] Please help with LLVM C++ integration
Hi Gordon,
I wrote a small example, but while running I get an error("Tied to
execute an unknown external function"), where I am wrong?
Thanks in advance.
Kirill.
int some_test_func( int ){
	std::cout << "!!!!" << std::endl;
	return 8848;
}
int _tmain(int argc, _TCHAR* argv[]){
	Module *M = new Module("test");
	ExistingModuleProvider* MP = new
2004 Aug 10
0
[LLVMdev] API on JIT, code snippets
Reid Spencer,
thank you for your quick responce, finally i got to my PC at home.
You wrote:
> Attached are three files: "valery.cpp" which contains your original, 
> "reid.cpp" which contains corrections to most of the FIXME items and 
> "diffs" which shows the differences between them.  The differences 
> should be instructive on what to do.  You were
2009 Mar 20
2
[LLVMdev] Possible memory leakage in the LLVM JIT Engine
Hi,
In my application I am JITing thousands of functions, though I am doing it
sequantially and running only one at a time. So it is crucial to be able to
properly clean up the memory from an old JITed function when JITing and
running the new one.
I am using Haskell binding of LLVM and my application works OK. However,
memory usage increases and never decreases during the run time of my
2004 Aug 09
5
[LLVMdev] API on JIT, code snippets
Valery,
Attached are three files: "valery.cpp" which contains your original, "reid.cpp" 
which contains corrections to most of the FIXME items and "diffs" which shows 
the differences between them.  The differences should be instructive on what to 
do.  You were really, really close .. just a few details changing.  The code in 
"reid.cpp" compiles but I
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
Hi Kirill,
Don't forget to add X86TargetMachine.obj (add to Additional Dependencies in Linker options, if you are using MSVS) otherwise LLVM will try and use Interpreter instead of JIT.
Hope this helps,
Rob.
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of kirill havok
> Sent: Wednesday, August 20, 2008
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
kirill havok wrote:
> Hi Gordon,
> I wrote a small example, but while running I get an error("Tied to
> execute an unknown external function"), where I am wrong?
>   
I think the problem is that some_test_func() is a C++ function, so its 
name is being mangled during compilation.
To fix it, I think you want to add a declaration telling the compiler to 
treat some_test_func()
2004 Aug 10
1
[LLVMdev] API on JIT, code snippets
Valery,
Your JIT sample program has been added to projects/HowToUseJIT.
I have defaulted the license to the standard UIUC license. Let me know if 
that's not okay and I'll fix it.
If you continue to work on this (providing a command line option to use either 
interpreter or JIT would be nice), please provide patches against these files 
and I'll commit them for you.
Here's the
2009 Mar 22
0
[LLVMdev] Possible memory leakage in the LLVM JIT Engine
Hi,
Was this ever resolved?
I'm curious, I'm also in a situation where there may be many (very  
many) JITted functions over the history of an application (which may  
be running for many days)
Thanks
On Mar 20, 2009, at 7:34 AM, George Giorgidze wrote:
> Hi,
>
> In my application I am JITing thousands of functions, though I am  
> doing it sequantially and running only
2004 Aug 09
1
[LLVMdev] API on JIT, code snippets
Valery,
First response of several.
I don't know why the demo page at UIUC is unavailable but there is an enhanced 
copy of it running on the mirror at http://llvm.x10sys.com/demo/ if you ever 
need it. Running it produced the following LLVM equivalent for the C code in 
your example.
implementation   ; Functions:
int %add1(int %x) {
entry:
	%tmp.1 = add int %x, 1		; <int> [#uses=1]
2004 Aug 09
0
[LLVMdev] API on JIT, code snippets
On Mon, 9 Aug 2004, Reid Spencer wrote:
> Attached are three files: "valery.cpp" which contains your original, "reid.cpp"
> which contains corrections to most of the FIXME items and "diffs" which shows
> the differences between them.  The differences should be instructive on what to
> do.  You were really, really close .. just a few details changing.  The
2004 Aug 13
3
[LLVMdev] is this code really JITed and/or optimized ? ..
> If it's that slow, you're probably getting the interpreter instead of the
> JIT.  Try adding -print-machineinstr to the command line, or -debug, and
> see what happens.  If you're not getting the JIT, try stepping through the
> LLVM program to see where it makes the execution engine and decides which
> one to use...
(thanks for quick reply)
hm, here is the part of my
2004 Aug 09
0
[LLVMdev] API on JIT, code snippets
Reid wrote:
> I have to agree with Misha on this. None of us knows "everything" about
> LLVM and as you can see, Misha responded three hours before I did :).
> Asking questions here is encouraged, so please feel free to post them on
> LLVMdev. We'll always help where we can.
well, OK :)
Please find the attachment with the first approach to
such an example i've
2004 Aug 09
3
[LLVMdev] API on JIT, code snippets
Valery,
I have to agree with Misha on this. None of us knows "everything" about
LLVM and as you can see, Misha responded three hours before I did :).
Asking questions here is encouraged, so please feel free to post them on
LLVMdev. We'll always help where we can.
Thanks,
Reid.
On Mon, 2004-08-09 at 06:37, Misha Brukman wrote:
> On Mon, Aug 09, 2004 at 12:32:33PM +0400, Valery
2020 Feb 24
2
segfault with HowToUseJIT
Hi!
I've started looking porting our application which uses LLVM JIT to 
using LLVM 9 (9.0.1).
To begin, I tried running the HowToUseJIT.cpp (example directory) 
program and it fails with a segfault:
./HowToUseJIT
We just constructed this LLVM module:
; ModuleID = 'test'
source_filename = "test"
Running foo: Segmentation fault (core dumped)
Running it through GDB:
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
On Aug 19, 2008, at 13:36, kirill havok wrote:
> I got very interested in LLVM project, and I decided to start  
> writing my own scripting language based on it. By studying the  
> documentation, I could not find how to call external function,  
> written in C. That is, I have a set of functions written in C/C++, I  
> generate code, using LLVM C++ interface, how can I call(or
2000 Oct 24
1
Perl modules
As promised, I've written vorbis Perl modules (separated into an Ogg
Vorbis module and an ao module).  You can get tarballs and .debs at
http://eyeofdog.org/foof/code/vorbis/
Ogg::Vorbis is an object oriented module based around OggVorbis_File.
Ogg::Vorbis::Info is an accessor class to the vorbis_info struct.
Comments are retrieved as a simple hash.  Since this is based around
libvorbisfile
2004 Aug 13
0
[LLVMdev] is this code really JITed and/or optimized ? ..
On Sat, 14 Aug 2004, Valery A.Khamenya wrote:
> hm, here is the part of my code starting LLVM function:
>
> ///////////////////////////
>   ExistingModuleProvider* MP = new ExistingModuleProvider(M);
>   ExecutionEngine* EE = ExecutionEngine::create( MP, true );
As Reid pointed out, changing true to false will get it to work.
>   // Call the `foo' function with no
2008 Aug 19
5
[LLVMdev] Please help with LLVM C++ integration
Hello,
I got very interested in LLVM project, and I decided to start writing
my own scripting language based on it. By studying the documentation,
I could not find how to call external function, written in C. That is,
I have a set of functions written in C/C++, I generate code, using
LLVM C++ interface, how can I call(or register in machine in run-time)
my external functions? Maybe I just missed
2004 Aug 14
2
[LLVMdev] is this code really JITed and/or optimized? ..
> >   ExecutionEngine* EE = ExecutionEngine::create( MP, true );
> 
> As Reid pointed out, changing true to false will get it to work.
as I've posted already, I got Segmentation Fault.
Now, i have re-compiled LLVM with debug support.
The evaluation is broken at line 78 in file:
lib/ExecutionEngine/JIT/JIT.cpp
The assertion 
    assert(ArgValues.size() == 1);
fails. But
2001 Jul 07
2
Perl wrapper for libvorbisfile or stuff
Hey guys,
I wrote to this list previously, saying I needed a perl module to do
Ogg Vorbis tag reading / writing. People pretty much pointed me to the
Ogg::Vorbis module that wrapped around libvorbisfile and I should
extend that to writing streams, not only reading them. Well, awright,
I thought, let's do it. Problem is, though: The download links on
freshmeat are all broken and I don't