search for: readinteger

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

2013 Nov 21
1
[LLVMdev] Problem with labels
...ore 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 } define void @writeInteger(i32 %integer) { %format = getelementptr [3 x i8]* @.intFormat, i32 0, i32 0 call i32 (i8*, ...)* @printf(i8* %format, i32 %integer) ret...
2017 Feb 19
5
RFC: Adding llvm::ThinStream
Some background: A while back while working on code to read / write PDB files, I came up with Yet Another Stream Abstraction. Note that LLVM already has a few. Off the top of my head, theres: 1) `MemoryBuffer` and its associated class hierarchy 2) `raw_ostream` and it's associated classes. 3) `DataExtractor` which is used for reading from a StringRef. There's probably more, and