Displaying 3 results from an estimated 3 matches for "until1".
Did you mean:
until
2011 Jul 05
3
[LLVMdev] optimizer returning wrong variable?
...Entry:
%a1 = alloca i32
store i32 %a, i32* %a1
%b2 = alloca i32
store i32 %b, i32* %b2
%c = alloca i32
store i32 0, i32* %c
%x = alloca i32
store i32 0, i32* %x
%y = alloca i32
store i32 0, i32* %y
br label %Repeat1
Repeat1: ; preds = %Until1, %
Entry
store i32 0, i32* %y
br label %Repeat2
Repeat2: ; preds = %Until2, %
Repeat1
%x3 = load i32* %x
%y4 = load i32* %y
%add = add i32 %x3, %y4
%c5 = load i32* %c
%add6 = add i32 %c5, %add
store i32 %add6, i32* %c
%y7 = load i32* %y...
2011 Jul 05
0
[LLVMdev] optimizer returning wrong variable?
...ntry:
> %a1 = alloca i32
> store i32 %a, i32* %a1
> %b2 = alloca i32
> store i32 %b, i32* %b2
> %c = alloca i32
> store i32 0, i32* %c
> %x = alloca i32
> store i32 0, i32* %x
> %y = alloca i32
> store i32 0, i32* %y
> br label %Repeat1
>
> Repeat1: ; preds = %Until1, %Entry
> store i32 0, i32* %y
> br label %Repeat2
>
> Repeat2: ; preds = %Until2, %Repeat1
> %x3 = load i32* %x
> %y4 = load i32* %y
> %add = add i32 %x3, %y4
> %c5 = load i32* %c
> %add6 = add i32 %c5, %add
> store i32 %add6, i32* %c
> %y7 = load i32* %y
> %add...
2013 Nov 21
1
[LLVMdev] Problem with labels
Hi,
I'm trying to assemble the following LLVM assembly source code, but
llvm-as reports an error (expected opcode instruction) at the label
"Until2:" (in function @find). If i remove both the load and store
instructions before it it works, but then there is the same problem with
Until1 (in @main).
I wanted to ask how to solve this / where labels can be placed?
@.intFormat = internal constant [3 x i8] c"%d\00"
declare i32 @scanf(i8*, ...);
declare i32 @printf(i8*, ...);
declare i32 @puts(i8*)
define void @readInteger(i32* %ptr) {
%format = getelementptr [3 x i8]* @.in...