Displaying 1 result from an estimated 1 matches for "usemyothercallback".
2010 Jun 04
3
[LLVMdev] Is there a "callback optimization"?
...)
{
// Respond another way
}
// equivalent of useCallback(myCallback), but doesn't call through a
function pointer.
void useMyCallback()
{
// Do something.
myCallback();
// Do something else
}
// equivalent of useCallback(myOtherCallback), but doesn't call
through a function pointer.
void useMyOtherCallback()
{
// Do something
myOtherCallback();
// Do something else
}
// Changed to use non-virtual versions created above.
void foo()
{
useMyCallback();
useMyOtherCallback();
}
With that transform in place, lots of inlining becomes possible, and
direct function calls replace indirect function calls if i...