Displaying 5 results from an estimated 5 matches for "mem_ptr".
2019 Mar 10
5
Help with bitcast instruction
...(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_struct_def*, i64)* %malloc_fn, void (%struct.png_struct_def*,
i8*)* %free_fn) #15
I would like to understand where bitcast is defined because it is not
defined within libpng. I also noticed that the @ is not present, what does
the missing @ mean? I guess it must be an LLVM functi...
2019 Mar 12
3
Help with bitcast instruction
...(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_struct_def*, i64)* %malloc_fn, void (%struct.png_struct_def*,
i8*)* %free_fn) #15
I'm pretty sure that this is a CallInst but when I try to call
getCalledFunction() I receive a null pointer and that really surprise me.
I would like to understand how to get the function that...
2019 Apr 27
2
Understand the meaning of preds = %0
...ay "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 %struct.png_struct_def* @png_create_png_struct(i8*
%user_png_ver, i8* %error_ptr, void (%struct.png_struct_def*, i8*)*
%error_fn, void (%struct.png_struct_def*, i8*)* %warn_...
2008 Feb 26
11
Is there way to trace memory in the dtrace ?
N_conreq:entry {
self->x=1;
calledaddr=(struct xaddrf *)arg3;
callingaddr=(struct xaddrf *)arg4;
trace(calledaddr->link_id);
tracemem(calledaddr->DTE_MAC.lsap_add, 80);
trace(callingaddr->link_id);
tracemem(callingaddr->DTE_MAC.lsap_add, 80);
}
0 -> N_conreq 255
2019 Mar 16
2
Why getNumOperands() incorrectly returns 0?
...rd 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 --------------
An HTML attachment was scrubbed...