Displaying 1 result from an estimated 1 matches for "bulder".
Did you mean:
builder
2014 Oct 28
2
[LLVMdev] Storing values in global variables
...(func, builder), elem_ptr);
I get a IRBuilder before some instruction (pi) in main. The element I
want to store (elem) is created by some call instruction which I
create via the builder. To store elem in global_array, I need a
pointer, which I get via a GEP instruction which is also created by
the bulder. Now the store fails.
Both elem and the element pointed to by elem_ptr have the same type.
But their contexts are different. elem has module context (I guess
this is because builder has module context) and elem_ptr points to an
element with global context (I guess this is because it's a global...