Displaying 20 results from an estimated 7000 matches similar to: "[LLVMdev] In-memory compilation/execution"
2007 Nov 28
5
[LLVMdev] LLVM on MinGW
Hello,
I'm trying to use LLVM on Windows, using the MinGW toolchain that comes
with Cygwin (gcc -mno-cygwin, not the standalone msys package). Has
anyone successfully built LLVM from sources with this toolchain?
The ./configure scripts automatically detects a Cygwin environment. I've
spent some time trying to let it know that it should compile for MinGW.
FWIW, here's what I've
2008 Jul 31
0
[LLVMdev] Is there room for another build system?
Óscar Fuentes wrote:
> I'm evaluating CMake (1) primarily as an alternative build system for
> Visual Studio users, although it can easily be a replacement for
> `configure' and hand-made makefiles too, providing a single build system
> for all platforms. CMake is a tool that takes a project description and
> configures, generates makefiles, project files for IDEs, etc as
2009 Dec 07
0
[LLVMdev] 2.6 JIT using wrong address for external functions
I had that problem too: http://llvm.org/bugs/show_bug.cgi?id=5116. To
work around the problem, you can:
* Switch to the thread-unsafe lazy jit.
* Allocate your JIT code within 2GB of your text segment.
* Find a way to look up the external function with dlsym or maybe the
ExecutionEngine's LazyFunctionCreator instead of addGlobalMapping.
* Upgrade to the top of the svn tree.
On Mon, Dec 7,
2013 Oct 22
1
[LLVMdev] SmallPtrSet patch for MCJIT
Hi Andy,
I added the runStaticConstructorsDestructors and FindFunctionNamed
functions. This also required making them virtual in EE.h.
I'm not sure about FindFunctionNamed:
In addition to searching finalized modules, should it search Added and
Loaded modules?
If it finds a Function in these, should it compile and finalize it before
returning the Function* ?
I modified the implementation
2007 Nov 29
2
[LLVMdev] LLVM on MinGW
Antony Blakey wrote:
> SVN head LLVM and Clang built out of the box for me a week ago on
> MSYS/MINGW, using the following files:
Ok, I tried to do the same. The compilations stops with the following
error message (actually, I got to the same point in my attempt to build
LLVM with the MinGW compiler shipped with Cygwin):
llvm[1]: Compiling MachineLoopInfo.cpp for Debug build
2013 Nov 01
0
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
Unless I'm missing something, indeed addGlobalMapping should not work with
MCJIT.
MCJIT does not consult EEState.getGlobalAddressMap when resolving symbols.
Instead it uses RTDyldMemoryManager::getSymbolAddress which checks
with DynamicLibrary::SearchForAddressOfSymbol, so Andy's suggestion of
DynamicLibrary::addSymbol is better as it should work with both JIT and
MCJIT.
Another options
2007 Aug 06
2
[LLVMdev] Problem compiling LLVM under Cygwin/Mingw
Hello,
I'm starting to play with LLVM today and I've trouble compiling it. I'm
working under Windows Vista, with the gcc from Cygwin:
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Is LLVM supposed to work with this version of GCC (probably using the
-mno-cygwin option to get a Mingw-like behavior)?
The LLVM source tree is from the current SVN trunk.
Compilation
2009 Dec 07
4
[LLVMdev] 2.6 JIT using wrong address for external functions
I have an external function that was added with
ExecutionEngine::addGlobalMapping... and the JIT is burning the wrong
address into the emitted function. All of the addresses have
0xffffff8d00000000 added to them. Does this look familiar to anyone? I'm
using 2.6 on Solaris10/x64 if it matters.
This has been working for about two months and I can't readily figure
out what I changed to break
2013 Oct 22
0
[LLVMdev] SmallPtrSet patch for MCJIT
Hi Yaron,
Overall this looks great.
There are a couple of remaining holes. Specifically, MCJIT inherits implementations of the FindFunctionNamed and runStaticConstructorsDestructors methods from ExecutionEngine which use the old Modules vector, so you'll need to override these in MCJIT. (The implementations are fairly trivial.)
Beyond that I just have a couple of questions.
First,
2013 Nov 01
2
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
Hi Andrew,
I used the latest code from trunk. GlobalSymbolTable is being used in
MCJIT.
I guess it wasn't clear from the proposal that the user program will be
modified to indicate that the callback should happen at that point in the
code. The objective is to call some of the functions which belong to lli or
the ExecutionEngine.
Thanks,
Sumeeth
On Fri, Nov 1, 2013 at 5:40 PM, Kaylor,
2010 Jun 17
2
[LLVMdev] Relocation issue with jump tables in ELF object files on X86_64
I had this problem a while back and received this response from Jeffrey. FWIW this is fixed in 2.7 by defaulting to CodeModel::Large and using indirect (far) calls.
-----Original Message-----
From: Jeffrey Yasskin [mailto:jyasskin at google.com]
Sent: Monday, December 07, 2009 11:32 AM
To: Howell, Nathan
Cc: LLVM Developers Mailing List
Subject: Re: [LLVMdev] 2.6 JIT using wrong address for
2008 Jul 30
16
[LLVMdev] Is there room for another build system?
[Repost: The mailing list was down yesterday. Sorry if this is a
duplicate]
I'm evaluating CMake (1) primarily as an alternative build system for
Visual Studio users, although it can easily be a replacement for
`configure' and hand-made makefiles too, providing a single build system
for all platforms. CMake is a tool that takes a project description and
configures, generates makefiles,
2010 Sep 28
2
[LLVMdev] ExecutionEngine::create returns 0
Hendrik Boom-2 wrote:
>
> On Tue, 10 Jun 2008 07:07:35 +0530, Mahadevan R wrote:
>
>>> Now to compare it in detail with the much smaller program I've got and
>>> maybe I'll figure out what's wrong with my call to
>>> ExecutionEngine::create.
>>
>> That call is perfectly valid, actually. It works for me when linked
>> with:
2007 Aug 06
1
[LLVMdev] Problem compiling LLVM under Cygwin/Mingw
Hello, Alain.
> I'm starting to play with LLVM today and I've trouble compiling it.
> I'm
> working under Windows Vista, with the gcc from Cygwin:
Oh, this seems to be killer mix :) GCC (at least native mingw32 port)
has known problems being running on Vista.
> Is LLVM supposed to work with this version of GCC (probably using the
> -mno-cygwin option to get a
2013 Nov 01
0
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
Are you using the latest code from trunk? I didn't think the latest code used the address mapping in the ExecutionEngine base class.
Of course, if people are depending on this it might be something that should be fixed if it isn't working.
-Andy
From: Caldarale, Charles R [mailto:Chuck.Caldarale at unisys.com]
Sent: Friday, November 01, 2013 10:54 AM
To: Kaylor, Andrew; sumeeth kc;
2013 Nov 01
5
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Kaylor, Andrew
> Subject: Re: [LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
> If the function is in a statically linked module, you need to do something to explicitly expose it. With
> the older JIT engine you can use addGlobalMapping as Yaron suggests, but I
2010 Jan 29
2
[LLVMdev] Redefining function
Hi everybody.
I've just started learning about LLVM and didn't get too far studying the
core.
I couldn't find the solution to my problem (if it has one) in the mailing
list or the source code. The problem is: how can I redefine a function
that's been called already by some other function?
Suppose I have 3 files, all compiled to bytecode through llvm-gcc (I think
it could be clang
2007 Jun 12
0
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi,
> Jan, how are you doing this? Are you creating an external LLVM
> Function
> object named "get5", then using EE::addGlobalMapping? If 'get5'
> exists in
> the address space, why not just let the JIT resolve it (which will
> then
> create the stub)?
Yes. I create a Function with matching signature, calling conventions
and external linkage
2012 Dec 13
0
[LLVMdev] Memory leaks after llvm_shutdown
Hi llvmdev!
In our project (Windows, Visual Studio compiler) we've got some frontend
which generates LLVM IR. Now I'm observing strange *llvm_shutdown* behavior.
If I called it when I was done using the LLVM APIs I saw that
destructors of static objects created new ManagedStatic objects, which
was never freed.
Then I tried to use static global llvm_shutdown_obj to cause destruction
2013 Apr 24
1
[LLVMdev] JIT pass runtime struct on to subroutines
Hi
For a research project at my university, I'm working on incorporating JIT in Prolog, which is basically an interpreted virtual machine.
The VM uses logical units of functionality called 'predicates' which are composed of bytecode that represents the machine instructions the VM supports.
At execution time, the VM infinitately loops over these bytecodes and, using a giant switch