search for: e23caf7

Displaying 2 results from an estimated 2 matches for "e23caf7".

Did you mean: e23caf7e
2011 Mar 28
0
[LLVMdev] array index access
On Mon, Mar 28, 2011 at 12:48 PM, George Baah <georgebaah at gmail.com> wrote: > Oh I see what you mean but I don't think that is the value that I want. > In the code, I know that > %N = load i32* %k, align 4 > %p = getelementptr inbounds [10 x [20 x i32]]* %3, i32 0, i32 %M, i32 %N > So I analyze the GEP and know that %N is a pointer to an int32, which is the > array
2011 Mar 28
2
[LLVMdev] array index access
Oh I see what you mean but I don't think that is the value that I want. In the code, I know that %N = load i32* %k, align 4 %p = getelementptr inbounds [10 x [20 x i32]]* %3, i32 0, i32 %M, i32 %N So I analyze the GEP and know that %N is a pointer to an int32, which is the array index. I want to get that index so I can insert a check to see if it violates the array bounds. So the final code