Displaying 13 results from an estimated 13 matches for "resultptr".
Did you mean:
resultpath
2006 Sep 19
3
[LLVMdev] failed assertion in PPCJITInfo.cpp when calling native function
...s a follow up to my previous email since I have now found out a bit
more about what goes wrong.
I am generating JIT code that calls a native function, but I get the following
assertion telling me that the PC relative jump is too long:
/llvm/lib/Target/PowerPC/PPCJITInfo.cpp:206: failed assertion
`ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && "Relocation out
of range!"'
I have looked into this a bit further, and everythings seems perfectly all
right except for the fact that the 16M block of memory for the JIT code that
is allocated in the JITMemor...
2007 Jun 11
2
[LLVMdev] How to call native functions from bytecode run in JIT?
...known external functions such as
> printf? As far as I known, this capability is well tested on x86 /
> Linux.
Calling printf works at least on OS X (I'm waiting for a reply
whether this works on linux). If I call my native function it fails
with PPCJITInfo.cpp:382: failed assertion `ResultPtr >= -(1 << 23) &&
ResultPtr < (1 << 23) && "Relocation out of range!"'
> I am wondering if there is some name mangling issue?
Not that I'm aware of. It appears to find the function using module-
>getFunction("get5")
Is there...
2007 Jun 29
0
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi Jan,
If I recall correctly, in Linux you get the message:
PPCJITInfo.cpp:382: failed assertion `ResultPtr >= -(1 << 23) &&
ResultPtr < (1 << 23) && "Relocation out of range!"'
Right? But on OS X you don't have this messsage?
Here's a temporary fix until I find time to investigate on this:
In function PPCISelLowering::LowerCALL, comment the l...
2007 Jun 27
2
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi,
attached is a small testcase I did. It builds two LLVM functions
which both call two native functions get5 and get6. The native
functions are in the exe and in the dll. On OS X it works like a
charm. On Linux none of the two functions can be called.
Maybe someone can try them or have a look at it to see if there is
something obviously wrong
greetings,
Jan
-------------- next part
2009 Jul 03
0
[LLVMdev] Question about memory allocation in JIT
...{
> - retryWithMoreMemory(F);
> - return true;
> + for (unsigned i = 0, e = BackupRelocations.size(); i != e; ++i) {
> + MachineRelocation &MR = BackupRelocations[i];
> + if (MR.isGlobalValue()) {
> + void* ResultPtr = TheJIT->getPointerToGlobalIfAvailable(MR.getGlobalValue());
> + if (BufferBegin <= ResultPtr && ResultPtr < BufferEnd) {
> + TheJIT->updateGlobalMapping(MR.getGlobalValue(), 0);
> + }
>...
2009 Jul 01
3
[LLVMdev] Question about memory allocation in JIT
Hello! Working with LLVM JIT-compiler I found a small bug and I'd like to correct it. Namely, on some tests LLVM fails with message "JIT: Ran out of space for generated machine code!"
This error emerges because the test creates big static array. Global variables are placed into memory block for function, that is first seen using given variable. Besides, during memory allocation
2006 Sep 20
0
[LLVMdev] failed assertion in PPCJITInfo.cpp when calling native function
Hi Andreas,
> /llvm/lib/Target/PowerPC/PPCJITInfo.cpp:206: failed assertion
> `ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && "Relocation out
> of range!"'
> ...
> So how is this supposed to work? Is it wrong that the memory block for
> the JIT code is allocated too far off or should a non PC relative jump
> be generat...
2007 Jun 11
0
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi Jan,
> Calling printf works at least on OS X (I'm waiting for a reply
> whether this works on linux). If I call my native function it fails
> with PPCJITInfo.cpp:382: failed assertion `ResultPtr >= -(1 << 23) &&
> ResultPtr < (1 << 23) && "Relocation out of range!"'
I know nothing about this, but the failed assertion suggests the PPC
code generator can't cope with a constant that's bigger than expected at
that point. Have you tak...
2007 Jun 30
1
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi,
> If I recall correctly, in Linux you get the message:
>
> PPCJITInfo.cpp:382: failed assertion `ResultPtr >= -(1 << 23) &&
> ResultPtr < (1 << 23) && "Relocation out of range!"'
>
>
> Right? But on OS X you don't have this messsage?
Not exactly. There seem to be two problems. Your patch fixes one of
them: in OS X I got the above error m...
2007 Jun 10
0
[LLVMdev] How to call native functions from bytecode run in JIT?
Are you able make calls to well known external functions such as
printf? As far as I known, this capability is well tested on x86 /
Linux.
I am wondering if there is some name mangling issue?
Evan
On Jun 7, 2007, at 8:38 AM, Jan Rehders wrote:
> Hello,
>
> can anyone help me calling native functions from LLVM-Bytecode
> functions run in the JIT?
>
> I have a program
2006 Sep 16
0
[LLVMdev] failed assertion in PPCJITInfo.cpp when calling native function
...enerate LLVM code that calls a "native" function in the parent
program (the program hosting the JIT). I think that I have figured out how to
do this, but I get the following assertion failure when the LLVM code is
executed:
../llvm/lib/Target/PowerPC/PPCJITInfo.cpp:206: failed assertion
`ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && "Relocation out of range!"'
I am running LLVM 1.8 and MacOSX Tiger on a PowerPC G4.
I have attached a complete, minimal program that reproduces the error and the
call-stack. However, the relevant part of the...
2007 Jun 07
2
[LLVMdev] How to call native functions from bytecode run in JIT?
Hello,
can anyone help me calling native functions from LLVM-Bytecode
functions run in the JIT?
I have a program which creates an LLVM execution engine and adds
modules and functions
to it on the fly. I need to call some native functions of my program
from bytecode functions which causes some troubles as it appears not
to be documented. My test scenario works like the following:
I have
2007 Jul 05
2
[LLVMdev] PATCH (rest of code changes) "bytecode" --> "bitcode"
Here is the bulk of the sanitizing.
My residual doubts center around the question
whether we still do/want to support (un)compressed *byte*code
in 2.0/2.1.
I need a definitive word on this to proceed.
My understanding is that bytecode is already gone, but there are
still some functions/enums that really deal with *byte*code
(instead of *bit*code).
I did not touch those areas, so the attached