Displaying 1 result from an estimated 1 matches for "v0_18".
Did you mean:
v0_1
2019 Feb 05
2
IRBuilder constraints
...:ConstantInt values to GlobalVariable addresses ad-hoc
if I store a constant in a GlobalVariable, and it appears to me, that I can
do nothing about it. Consider the following, shortened code:
...
0x18: r2 = memread(0x4000)
0x1C: r3 = memread(0x4004)
0x20: r4 = add(r2, r3)
...
Gets translated to:
%v0_18 = load i32, i32* inttoptr (i32 16384 to i32*), align 16384
%v0_20 = load i32, i32* inttoptr (i32 16388 to i32*), align 4
%v2_24 = add i32 %v0_20, %v0_18
which is absolutely fine, however, in another binary:
...
0x800004: r2 = memread(0x4000)
0x800008: r3 = memread(0x4004)
0x80000C: r6 = 0x4020...