search for: memread

Displaying 1 result from an estimated 1 matches for "memread".

2019 Feb 05
2
IRBuilder constraints
...lem is in the realm of ConstInt/GlobalVariable handling, more precisely: LLVM converts llvm::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 binar...