Displaying 1 result from an estimated 1 matches for "ptrmyarray".
2011 Jul 09
1
[LLVMdev] getting and setting array indices c interface
...VMBuildLoad(builder,tindex,"index")
ptr = LLVMBuildGEP(builder,Arr,index,0,"ptr")
LLVMBuildStore(builder,val,ptr)
All seems to results in is getting and setting the first element
the output
define i32 @Atest(i32 %a) {
Entry:
%a1 = alloca i32
store i32 %a, i32* %a1
%ptrMyArray = alloca i32*
%myArray = alloca i32, i32 25
store i32* %myArray, i32** %ptrMyArray
%x = alloca i32
store i32 0, i32* %x
br label %ForEntry1
ForEntry1: ; preds = %Entry
store i32 1, i32* %x
br label %For1
For1:...