Displaying 1 result from an estimated 1 matches for "forentry1".
2011 Jul 09
1
[LLVMdev] getting and setting array indices c interface
...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: ; preds = %ForBody1, %
ForEntry1
%x2 = load i32* %x
%cond = icmp sle i32 %x2, 25
br i1 %cond, label %ForBody1, label %ForEnd1
ForBody...