You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Transforms][IPO] Add remarks for ArgumentPromotion and DeadArgumentElimination
ArgumentPromotion and DeadArgumentElimination passes may change
function signature. This makes bpf tracing difficult since
users either not aware of signature change or need to poke
into IR or assembly to understand the function signature change.
This patch enabled to emit some remarks so if recompiling
with -foptimization-record-file=<file>, users can check remarks
to see what kind of signature changes for a particular function.
The following are some examples for implemented remarks:
Pass: deadargelim
Name: ReturnValueRemoved
DebugLoc: { File: 'bpf-next/net/mptcp/protocol.c', Line: 572, Column: 0 }
Function: mptcp_check_data_fin
Args:
- String: 'removing return value '
- String: '0'
Pass: deadargelim
Name: ArgumentRemoved
DebugLoc: { File: 'bpf-next/kernel/bpf/syscall.c', Line: 1670, Column: 0 }
Function: map_delete_elem
Args:
- String: 'removing argument '
- String: '1'
- String: ' ('
- String: uattr.coerce0
- String: ')'
Pass: argpromotion
Name: ArgumentPromoted
DebugLoc: { File: 'bpf-next/net/mptcp/protocol.h', Line: 570, Column: 0 }
Function: mptcp_subflow_ctx
Args:
- String: 'promoting argument '
- String: '0'
- String: ' ('
- String: sk
- String: ')'
[1] #104678
0 commit comments