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
[flang][OMPIRBuilder] Improve debug info for AMDGPU target.
This PR builds on PR#118314 and PR#125692 which enable the debugging of
variables in the OpenMP target region. This PR adds the following
changes so that usable debug info comes out of amdgpu backend.
1. Add DIOp based expressions.
2. Use alloca as location of the variable in debug record.
Regarding 2nd point, OMPIRBuilder creates a function to implement target
construct. The variable that are mapped are passed as argument to it.
The argument handling code adds alloca+store+load for the arguments
which are mapped by reference. It was observed that if the argument*
is used as location of variable in debug record (directly or when it is
result of LoadInst), the debug information is dropped for that variable.
Thing work ok if the location of the alloca is used instead.
0 commit comments