Displaying 9 results from an estimated 9 matches for "ozyegin".
2012 Oct 12
3
[LLVMdev] Dynamically loading native code generated from LLVM IR
On 12 Eki 2012, at 20:00, Jim Grosbach wrote:
>
> On Oct 12, 2012, at 7:07 AM, Baris Aktemur <baris.aktemur at ozyegin.edu.tr> wrote:
>
>> Dear Tim,
>>
>>>
>>> The JIT sounds like it does almost exactly what you want. LLVM's JIT
>>> isn't a classical lightweight, dynamic one like you'd see for
>>> JavaScript or Java. All it really does is produce...
2012 Oct 12
0
[LLVMdev] Dynamically loading native code generated from LLVM IR
On Oct 12, 2012, at 11:14 AM, Baris Aktemur <baris.aktemur at ozyegin.edu.tr> wrote:
>
> On 12 Eki 2012, at 20:00, Jim Grosbach wrote:
>
>>
>> On Oct 12, 2012, at 7:07 AM, Baris Aktemur <baris.aktemur at ozyegin.edu.tr> wrote:
>>
>>> Dear Tim,
>>>
>>>>
>>>> The JIT sounds like it doe...
2012 Oct 17
1
[LLVMdev] Dynamically loading native code generated from LLVM IR
Dear Jim,
On 12 Eki 2012, at 21:17, Jim Grosbach wrote:
>
> On Oct 12, 2012, at 11:14 AM, Baris Aktemur <baris.aktemur at ozyegin.edu.tr> wrote:
>
>>
>> On 12 Eki 2012, at 20:00, Jim Grosbach wrote:
>>
>>>
>>> On Oct 12, 2012, at 7:07 AM, Baris Aktemur <baris.aktemur at ozyegin.edu.tr> wrote:
>>>
>>>> Dear Tim,
>>>>
>>>>>
&g...
2012 Sep 20
2
[LLVMdev] Programmatically converting LLVM IR to native code
I am generating LLVM IR code and I would like to convert this IR code to native code using the LLVM C++ API. This would be very similar to what's done in the Kaleidoscope tutorial, but instead of relying on JIT compilation, I'd like to emit native code -- the same native code that's produced by llc, for instance.
I'm sure this is possible, but I wasn't able to find the
2012 Sep 20
0
[LLVMdev] Programmatically converting LLVM IR to native code
On Thu, Sep 20, 2012 at 2:42 AM, Baris Aktemur
<baris.aktemur at ozyegin.edu.tr> wrote:
> I am generating LLVM IR code and I would like to convert this IR code to
> native code using the LLVM C++ API. This would be very similar to what's
> done in the Kaleidoscope tutorial, but instead of relying on JIT
> compilation, I'd like to emit native code...
2012 Oct 12
0
[LLVMdev] Dynamically loading native code generated from LLVM IR
On Oct 12, 2012, at 7:07 AM, Baris Aktemur <baris.aktemur at ozyegin.edu.tr> wrote:
> Dear Tim,
>
>>
>> The JIT sounds like it does almost exactly what you want. LLVM's JIT
>> isn't a classical lightweight, dynamic one like you'd see for
>> JavaScript or Java. All it really does is produce a native .o file in
>>...
2012 Oct 12
2
[LLVMdev] Dynamically loading native code generated from LLVM IR
Dear Tim,
>
> The JIT sounds like it does almost exactly what you want. LLVM's JIT
> isn't a classical lightweight, dynamic one like you'd see for
> JavaScript or Java. All it really does is produce a native .o file in
> memory, take care of the relocations for you and then jump into it (or
> provide you with a function-pointer). Is there any other reason you
>
2013 Jan 05
0
[LLVMdev] RuntimeDyld bug in resolving addresses with offset?
Hi,
I believe I came across a bug in RuntimeDyld. I have the following piece of C code (attached as rtdyldbug.c):
double numbers[5] = {33, 34, 35, 36, 37};
void foo(double val, double other[]) {
other[2] += val * numbers[4];
}
I adapted llvm-rtdyld.cpp to load the .o file of the code above, get a pointer to foo, and invoke it (whole thing is attached as myrtdyld.cpp):
typedef
2012 Oct 12
5
[LLVMdev] Dynamically loading native code generated from LLVM IR
Hi,
I'm building LLVM IR. I'd like to compile this IR to native code (I don't want JIT) and immediately load it to execute. So far, I've the following:
1) I can emit the IR to native assembly/object file doing the same thing llc does (using TargetMachine::addPassesToEmitFile).
2) I can dynamically load a precompiled .so file (using llvm::sys::DynamicLibrary::getPermanentLibrary),