I have a int32_t* type variable in llvm IR that stores the address of a place where a int32 is stored.
I want to set the value of this int32_t* variable in llvm ir
Let's say address is 1223. Then I tried the following. Is this correct? It doesn't seem to work
store i64 1223, i32** %1 I am storing the address 1223 in a int64_t constant int (since this is a 64-bit machine) and I am creating a store instruction to store this value in the memory where i32* is stored.
Is there a better way?