search for: png_struct_def

Displaying 6 results from an estimated 6 matches for "png_struct_def".

2019 Apr 27
2
Understand the meaning of preds = %0
...in multiple cases that, usually at the beginning of the function. if a BranchInst is encountered the next block might have %0 indicated as predecessor. I think it is a way to say "no predecessors found". Am I correct? Few examples just for clarifying what I mean: define noalias %struct.png_struct_def* @png_create_read_struct_2(i8* %user_png_ver, i8* %error_ptr, void (%struct.png_struct_def*, i8*)* %error_fn, void (%struct.png_struct_def*, i8*)* %warn_fn, i8* %mem_ptr, i8* (%struct.png_struct_def*, i64)* %malloc_fn, void (%struct.png_struct_def*, i8*)* %free_fn) #5 { %1 = tail call noalias %st...
2019 Mar 12
3
Help with bitcast instruction
Hi Tim, I'm still struggling on the instruction: call void bitcast (void (%struct.png_struct_def.68*, i8*, i8* (%struct.png_struct_def.68*, i64)*, void (%struct.png_struct_def.68*, i8*)*)* @png_set_mem_fn to void (%struct.png_struct_def*, i8*, i8* (%struct.png_struct_def*, i64)*, void (%struct.png_struct_def*, i8*)*)*)(%struct.png_struct_def* %create_struct, i8* %mem_ptr, i8* (%struct.png_stru...
2019 Mar 10
5
Help with bitcast instruction
Hi, I'm playing with the IR of pngpixel and I encountered this instruction: call void bitcast (void (%struct.png_struct_def.68*, i8*, i8* (%struct.png_struct_def.68*, i64)*, void (%struct.png_struct_def.68*, i8*)*)* @png_set_mem_fn to void (%struct.png_struct_def*, i8*, i8* (%struct.png_struct_def*, i64)*, void (%struct.png_struct_def*, i8*)*)*)(%struct.png_struct_def* %create_struct, i8* %mem_ptr, i8* (%struct.png_stru...
2019 Dec 18
2
Missing code depending on a #ifdef within the .ll file
...TH_MAX)# endif { png_warning(png_ptr, "Image width exceeds user limit in IHDR"); error = 1; } }* ... } Unfortunately the relative IR does not seem to have the branch highlighted in bold: ; Function Attrs: nounwind uwtable define void @png_check_IHDR(%struct.png_struct_def* noalias %png_ptr, i32 %width, i32 %height, i32 %bit_depth, i32 %color_type, i32 %interlace_type, i32 %compression_type, i32 %filter_type) #5 { *%1 = icmp eq i32 %width, 0* br i1 %1, label %.thread, label %2 .thread: ; preds = %0 tail call void @png_w...
2019 Dec 18
2
Missing code depending on a #ifdef within the .ll file
...user limit >> in IHDR"); error = 1; } }* >> ... >> } >> >> Unfortunately the relative IR does not seem to have the branch >> highlighted in bold: >> >> ; Function Attrs: nounwind uwtable >> define void @png_check_IHDR(%struct.png_struct_def* noalias %png_ptr, i32 >> %width, i32 %height, i32 %bit_depth, i32 %color_type, i32 %interlace_type, >> i32 %compression_type, i32 %filter_type) #5 { >> *%1 = icmp eq i32 %width, 0* >> br i1 %1, label %.thread, label %2 >> >> .thread:...
2019 Mar 16
2
Why getNumOperands() incorrectly returns 0?
Hi all, I have encountered a weird case that I cannot understand. Inside the visitStoreInst I have a reference (F) to the function png_set_mem_fn. If I do F->dump() i can set the IR of that function correctly e.g.: ; Function Attrs: nounwind uwtable define void @png_set_mem_fn(%struct.png_struct_def.68* noalias %png_ptr, i8* %mem_ptr, i8* (%struct.png_struct_def.68*, i64)* %malloc_fn, void (%struct.png_struct_def.68*, i8*)* %free_fn) #5 { ... } The problem is that when I do F->getNumOperands() I have 0 as result. Can you explain me why please? Thanks -------------- next part -----------...