search for: tp59798p59812

Displaying 3 results from an estimated 3 matches for "tp59798p59812".

2013 Jul 25
0
[LLVMdev] Passing String to an external function in llvm
On Thu, Jul 25, 2013 at 11:07 AM, Abhinash Jain <omnia at mailinator.com> wrote: > Thanx for the response. > > %x = alloca i32, align 4 > %y = alloca i32, align 4 > %a = alloca i32, align 4 > %t = alloca i32, align 4 > > 1. %10 = load i32* %x, align 4 > 2. %11 = load i32* %y, align 4 > 3. %div = sdiv i32 %10, %11 > 4. %12 = load i32* %a, align 4 > 5.
2013 Jul 25
2
[LLVMdev] Passing String to an external function in llvm
...lang should give you an > idea of what instructions you need to emit. I did try but not able to pass the string. If you could go through my code it will be of great help. Thanx -- View this message in context: http://llvm.1065342.n5.nabble.com/Passing-String-to-an-external-function-in-llvm-tp59798p59812.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2013 Jul 25
2
[LLVMdev] Passing String to an external function in llvm
Thanx for the response. %x = alloca i32, align 4 %y = alloca i32, align 4 %a = alloca i32, align 4 %t = alloca i32, align 4 1. %10 = load i32* %x, align 4 2. %11 = load i32* %y, align 4 3. %div = sdiv i32 %10, %11 4. %12 = load i32* %a, align 4 5. %mul4 = mul nsw i32 %div, %12 6. store i32 %mul4, i32* %t, align 4 a. %mul4 = mul nsw i32 %div, %12 b. %div = sdiv i32 %10, %11 c. %10 =