search for: intformat

Displaying 1 result from an estimated 1 matches for "intformat".

Did you mean: informat
2013 Nov 21
1
[LLVMdev] Problem with labels
...-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]* @.intFormat, i32 0, i32 0 call i32 (i8*, ...)* @scanf(i8* %format, i32* %ptr) ret void } def...