Displaying 2 results from an estimated 2 matches for "mycompletionproc".
2013 Jan 20
2
[LLVMdev] Clang's approach to anonymous struct pointer parameters
...et;
typedef void (*CompletionProc)(XBeePacket* inPacket, void* inParam2);
struct
XBeePacket
{
bool mField1;
CompletionProc mCompletionProc;
};
Why does clang emit this IR?
%struct.XBeePacket = type { i8, {}* }
define void
@MyCompletionProc(%struct.XBeePacket* %inPacket, i8* %inParam2)
nounwind uwtable ssp
{
entry:
...
}
It makes the struct field for the completion proc an an anonymous aggregate pointer. Is that better than making the first parameter to MyCompletionProc void* or something similar?
I guess t...
2013 Jan 20
0
[LLVMdev] Clang's approach to anonymous struct pointer parameters
...* inParam2);
>
> struct
> XBeePacket
> {
> bool mField1;
> CompletionProc mCompletionProc;
> };
>
> Why does clang emit this IR?
>
> %struct.XBeePacket = type { i8, {}* }
>
> define void
> @MyCompletionProc(%struct.XBeePacket* %inPacket, i8* %inParam2)
> nounwind uwtable ssp
> {
> entry:
> ...
> }
>
> It makes the struct field for the completion proc an an anonymous aggregate pointer. Is that better than making the first parameter to MyCompletionProc voi...