search for: ret_2

Displaying 7 results from an estimated 7 matches for "ret_2".

Did you mean: ret__
2016 Feb 10
4
Memory Store/Load Optimization Issue (Emulating stack)
...ad i32, i32* %sp_3_ptr, align 4 %sp_3 = getelementptr i8, i8* %sp_2, i32 4 ; val2 = pop (val2 = foo) %sp_4_ptr = bitcast i8* %sp_3 to i32* %val2 = load i32, i32* %sp_4_ptr, align 4 %sp_4 = getelementptr i8, i8* %sp_3, i32 4 %ret_1 = insertvalue { i32, i32, i8* } undef, i32 %val1, 0 %ret_2 = insertvalue { i32, i32, i8* } %ret_1, i32 %val2, 1 %ret_3 = insertvalue { i32, i32, i8* } %ret_2, i8* %sp_4, 2 ret { i32, i32, i8* } %ret_3 } After optimization ("opt -instcombine ./code.ll -S") define { i32, i32, i8* } @test(i32 %foo, i32 %bar, i8* %sp) { entry: %sp_1 = getele...
2016 Feb 08
2
Memory Store/Load Optimization Issue (Emulating stack)
...optr i32 %sp_2 to i32* %val1 = load i32, i32* %sp_3_ptr, align 4 %sp_3 = add i32 %sp_2, 4 ; val2 = pop (val2 = foo) %sp_4_ptr = inttoptr i32 %sp_3 to i32* %val2 = load i32, i32* %sp_4_ptr, align 4 %sp_4 = add i32 %sp_3, 4 %ret_1 = insertvalue { i32, i32, i32 } undef, i32 %val1, 0 %ret_2 = insertvalue { i32, i32, i32 } %ret_1, i32 %val2, 1 %ret_3 = insertvalue { i32, i32, i32 } %ret_2, i32 %sp_4, 2 ret { i32, i32, i32 } %ret_3 } This code will "push" two values onto the stack and pop them in reverse order so afterwards "foo" and "bar" will be swa...
2016 Feb 10
2
Memory Store/Load Optimization Issue (Emulating stack)
...i32 4 >> >> ; val2 = pop (val2 = foo) >> %sp_4_ptr = bitcast i8* %sp_3 to i32* >> %val2 = load i32, i32* %sp_4_ptr, align 4 >> %sp_4 = getelementptr i8, i8* %sp_3, i32 4 >> >> %ret_1 = insertvalue { i32, i32, i8* } undef, i32 %val1, 0 >> %ret_2 = insertvalue { i32, i32, i8* } %ret_1, i32 %val2, 1 >> %ret_3 = insertvalue { i32, i32, i8* } %ret_2, i8* %sp_4, 2 >> >> ret { i32, i32, i8* } %ret_3 >> } >> >> After optimization ("opt -instcombine ./code.ll -S") >> >> define { i32, i3...
2009 Jul 07
1
Error in Rolling window of function - rollapply
...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 file. Below you can find my commands in R. > Ret<-read.csv("data.csv") > Ret_1<-zoo((Ret)) > Ret_2<-rollapply(Ret_1,20,sd) > Volatility_20<-sd(Ret_2) > Volatility_20 Data 0.03802453 > Ret_2 Data 10 0.9170356 11 0.9147269 12 0.8982093 13 0.9169873 14 0.9156607 15 0.8961262 16 0.9615083 17 0.9804045 18 0.9853978 19 0.9888628 20 0.8798952 21 0.8408839 22 0.9429053 23 0....
2016 Feb 12
2
Memory Store/Load Optimization Issue (Emulating stack)
...i32 4 >> >> ; val2 = pop (val2 = foo) >> %sp_4_ptr = bitcast i8* %sp_3 to i32* >> %val2 = load i32, i32* %sp_4_ptr, align 4 >> %sp_4 = getelementptr i8, i8* %sp_3, i32 4 >> >> %ret_1 = insertvalue { i32, i32, i8* } undef, i32 %val1, 0 >> %ret_2 = insertvalue { i32, i32, i8* } %ret_1, i32 %val2, 1 >> %ret_3 = insertvalue { i32, i32, i8* } %ret_2, i8* %sp_4, 2 >> >> ret { i32, i32, i8* } %ret_3 >> } >> >> After optimization ("opt -instcombine ./code.ll -S") >> >> define { i32, i3...
2016 Feb 07
5
Assigning constant value without alloca/load/store
...eg_c_0 = select i1 true, i32 0, i32 0 ; Translated instructions %reg_a_1 = add i32 %var_c, 2 %reg_a_2 = select i1 true, i32 12, i32 0 ; Prepare return values %ret_0 = insertvalue { i32, i32, i32 } undef, i32 %reg_a_2, 0 %ret_1 = insertvalue { i32, i32, i32 } %ret_0, i32 %reg_b_0, 1 %ret_2 = insertvalue { i32, i32, i32 } %ret_1, i32 %reg_c_0, 2 ret { i32, i32, i32 } %ret_2 } I am basically using "select i1 true, i32 1, i32 0" so after optimization it gets: %val = i32 1 But as I said this looks like a hack to me and I can't simply use "%val = i32 1". So wh...
2016 Feb 08
2
Assigning constant value without alloca/load/store
...ions >> %reg_a_1 = add i32 %var_c, 2 >> %reg_a_2 = select i1 true, i32 12, i32 0 >> >> ; Prepare return values >> %ret_0 = insertvalue { i32, i32, i32 } undef, i32 %reg_a_2, 0 >> %ret_1 = insertvalue { i32, i32, i32 } %ret_0, i32 %reg_b_0, 1 >> %ret_2 = insertvalue { i32, i32, i32 } %ret_1, i32 %reg_c_0, 2 >> >> ret { i32, i32, i32 } %ret_2 >> } >> >> I am basically using "select i1 true, i32 1, i32 0" so after optimization >> it gets: >> %val = i32 1 >> >> But as I said this look...