Open xbrukner opened 11 years ago
Need to handle pointer to functions saved in register: tr.s
define internal void @squeeze_filter(i8* %buf, i32 %size, i32 (i8*, i32)* %reader) nounwind {
%3 = alloca i32 (i8*, i32)*, align 4
store i32 (i8*, i32)* %reader, i32 (i8*, i32)** %3, align 4
%9 = load i32 (i8*, i32)** %3, align 4
%12 = call i32 %9(i8* %10, i32 %11)
truncate.s
%23 = load %struct.stat** %1, align 4
%24 = call i32 bitcast (i32 (...)* @S_TYPEISTMO to i32 (%struct.stat*)*)(%struct.stat* %23)
tsort.s
%15 = load %struct.item** %2, align 4
%16 = call zeroext i1 %14(%struct.item* %15)
stat.s
%89 = call zeroext i1 %82(i8* %83, i32 %85, i32 %86, i8* %87, i8* %88)
Files: http://www.fi.muni.cz/~xbrukner/integration/tr.c, http://www.fi.muni.cz/~xbrukner/integration/tr.s http://www.fi.muni.cz/~xbrukner/integration/truncate.c, http://www.fi.muni.cz/~xbrukner/integration/truncate.s http://www.fi.muni.cz/~xbrukner/integration/tsort.c, http://www.fi.muni.cz/~xbrukner/integration/tsort.s http://www.fi.muni.cz/~xbrukner/integration/stat.c, http://www.fi.muni.cz/~xbrukner/integration/stat.s