search for: reg_a_0

Displaying 2 results from an estimated 2 matches for "reg_a_0".

Did you mean: reg_a_2
2016 Feb 07
5
Assigning constant value without alloca/load/store
...I have to reassign every new expression with a new llvm Value. But my IR has something like this: REG A = VAR C + CONST 2 REG A = CONST 12 So my workaround looks like: ; I am returning the registers in an anonymous struct define { i32, i32, i32 } @test(i32 %var_c) { ; Initializing registers %reg_a_0 = select i1 true, i32 0, i32 0 %reg_b_0 = select i1 true, i32 0, i32 0 %reg_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 %r...
2016 Feb 08
2
Assigning constant value without alloca/load/store
...> this: >> >> REG A = VAR C + CONST 2 >> REG A = CONST 12 >> >> So my workaround looks like: >> >> ; I am returning the registers in an anonymous struct >> define { i32, i32, i32 } @test(i32 %var_c) { >> ; Initializing registers >> %reg_a_0 = select i1 true, i32 0, i32 0 >> %reg_b_0 = select i1 true, i32 0, i32 0 >> %reg_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 >> >> ; Prepar...