Displaying 2 results from an estimated 2 matches for "get_int_5".
2014 Jun 29
2
[LLVMdev] Wrong behavior modifying and executing llvm::Function with JIT Engine
...AllUsesWith' and then execute it with the JIT engine
several times but I always get the output from the first iteration for
all the iterations.
This is what I do:
I generate the following 2 functions on the fly based on the
FunctionType of the declaration below in C code.
define i32 @get_int_5(i32, i32) #1 {
ret i32 5
}
define i32 @get_int_10(i32, i32) #1 {
ret i32 10
}
I have the following C code:
// This is only a declaration
// I use this FunctionType to generate the functions above
int sum(int a, int b);
int get_int()
{
retu...
2014 Jun 29
2
[LLVMdev] Wrong behavior modifying and executing llvm::Function with JIT Engine
...ways get the output from the first iteration for all the
>> iterations.
>>
>> This is what I do:
>>
>>
>> I generate the following 2 functions on the fly based on the FunctionType
>> of the declaration below in C code.
>>
>>
>> define i32 @get_int_5(i32, i32) #1 {
>> ret i32 5
>> }
>>
>> define i32 @get_int_10(i32, i32) #1 {
>> ret i32 10
>> }
>>
>> I have the following C code:
>>
>>
>> // This is only a declaration
>> // I use this FunctionType to generate the functio...