Displaying 11 results from an estimated 11 matches similar to: "Assigning constant value without alloca/load/store"
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
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 08
2
Memory Store/Load Optimization Issue (Emulating stack)
Hello,
I am trying to emulate the "stack" as like on x86 when using push/pop so
afterwards I can use LLVM's optimizer passes to simplify (reduce junk) the
code.
The LLVM IR code:
define { i32, i32, i32 } @test(i32 %foo, i32 %bar, i32 %sp) {
; push foo (On "stack")
%sp_1 = sub i32 %sp, 4
%sp_1_ptr = inttoptr i32 %sp_1 to i32*
store i32 %foo, i32* %sp_1_ptr, align
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
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
2007 Mar 01
2
setting font in plots
Dear Reader
I am trying to change the font in a plot and after several trials finally
came up with the following code.
plot(var_a, var_b, pch = 16, font.lab = 10, font = 10)
points(var_a, var_c, pch = 3, font = 10)
legend(0.1, 0.8, legend = c(?var_b?, ?var_c?), pch = c(16,3))
It does change the font in the plot (Courier), but not in the legend that
does not accept the "font = ..."
2005 Apr 15
2
Help with "MERGE" gratefully accepted
Hello
How do I use function 'MERGE" to combine the FILE A and FILE B below to make FILE C?
Thank you
FILE A
140 151 167
30.1 11.4 40
FILE B
140 167
5.7 30.3
FILE C
140 151 167
30.1 11.4 40
5.7 NA 30.3
2010 Dec 13
7
descriptive statistics
Hi. In a data set I have a variable that takes values from 1 to 14. For each
subgroup of values of this variable, I would like to obtain some descriptive
statistics of other variables present in the data set. I've been trying with
a "for" loop but I couldn't get nothing. Could you please suggest me some
lines?
--
View this message in context:
2013 Jan 19
0
import data (txt) separated by many blank spaces and lines with variable names that correspond to multiple observations.
Hello,
I have read other posts and in part I tried to solve my problem.
I have a txt file but the values ??as well as being separated by many blank
spaces and lines
eg. var_a var_b var_c
1 2 4
5 2
6 2
have an encoding problem in the header, let me