similar to: Memory Store/Load Optimization Issue (Emulating stack)

Displaying 8 results from an estimated 8 matches similar to: "Memory Store/Load Optimization Issue (Emulating stack)"

2016 Feb 10
4
Memory Store/Load Optimization Issue (Emulating stack)
Thank you for the hint. I adjusted the code and it works: The code after replacing inttoptr with getelementptr: define { i32, i32, i8* } @test(i32 %foo, i32 %bar, i8* %sp) { entry: ; push foo (On "stack") %sp_1 = getelementptr i8, i8* %sp, i32 -4 %sp_1_ptr = bitcast i8* %sp_1 to i32* store i32 %foo, i32* %sp_1_ptr, align 4 ; push bar %sp_2 = getelementptr i8, i8* %sp_1,
2016 Feb 10
2
Memory Store/Load Optimization Issue (Emulating stack)
Thanks for the answers. Although I am not sure if I've understood the docs about how inttoptr/ptrtointr are different when compared to gep. It says: "It’s invalid to take a GEP from one object, address into a different separately allocated object, and dereference it.". To go back to my intention why I am doing this, I would like to "emulate" some x86 instructions with
2016 Feb 12
2
Memory Store/Load Optimization Issue (Emulating stack)
Hi again, So I finally gave up on trying to get through the converting (x86' push pop mov add) because it deals a lot with crazy pointer arithmetics and sonce inttoptr and ptrtoint doesn't provide any alias analysis information. Daniel, you said it doesn't make much sense to provide it but in my cases it is actually very much needed, you didn't say it wasn't possible to
2016 Feb 07
5
Assigning constant value without alloca/load/store
Hello, I am currently trying to translate some custom IR to LLVM-IR and came across and issue. The custom IR has several registers and I am basically try to SSAfy it so it can be easily translated/converted to LLVM-IR. The problem: Since in my custom IR I can reassign every register I have to reassign every new expression with a new llvm Value. But my IR has something like this: REG A = VAR C
2016 Feb 08
2
Assigning constant value without alloca/load/store
I want to keep the translation short and simple (My IR doesn't have control flow so it's basically on basic block) that's why I don't want to rely on alloca/load/store. 2016-02-08 6:08 GMT+01:00 George Burgess IV <george.burgess.iv at gmail.com>: > Hi! > > I don't know what "the right way" to do this is, but is there any reason > you're against
2009 Jul 07
1
Error in Rolling window of function - rollapply
Dear Colleagues, I have faced with the problem that function rollaply with rolling window for calculation of volatility doesn't give the all results of calculations. I have run the rolling window for calculation in Excel and obtained that the number of outputs for Excel is 36 and for R is 18. The total number of observations is 37. In the attachment you can find pdf of the Excel and Excel
2009 Jul 02
4
(no subject)
Hi Guys, It is very simple question, but I can't find the answer! Please help me. I use R and such simple function as length() doesn't work. The result is always 1 even if my data are more then 1 observations! Do I have to load any additional library? > length(Ret_1) [1] 1 > length function (x) .Primitive("length") Thank you!!! -- Best regards, Andy Fetsun
2009 Jan 18
6
read a xls file
Hello, i have a xls file. I will read it in r, what library-command i use for this?? any ideas?? Thanks Michele [[alternative HTML version deleted]]