Skip to content

[SIL][DebugInfo] PATCH 1/3: Add support for expr op_deref #39065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

mshockwave
Copy link
Contributor

This new SIL di-expression represents the dereference on the SSA value.
Similar to DW_OP_deref in DWARF. It is also going to replace the
existing debug_value_addr. Namely, replacing the following
instruction:

debug_value_addr %a : $*T, name "my_var"

with this one:

debug_value %a : $*T, name "my_var", expr op_deref

This is a PR only for review. DO NOT MERGE

@mshockwave
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGMT, with only some minor comments inline. Thanks!

@mshockwave mshockwave force-pushed the dev-debug-val-addr-deprecation-phase1 branch from 58cbef5 to 6971ae6 Compare August 27, 2021 21:29
This new SIL di-expression represents the dereference on the SSA value.
Similar to DW_OP_deref in DWARF. It is also going to replace the
existing `debug_value_addr`. Namely, replacing the following
instruction:
```
debug_value_addr %a : $*T, name "my_var"
```
with this one:
```
debug_value %a : $*T, name "my_var", expr op_deref
```
@mshockwave mshockwave force-pushed the dev-debug-val-addr-deprecation-phase1 branch from 6971ae6 to 839d655 Compare August 30, 2021 22:38
@mshockwave
Copy link
Contributor Author

@swift-ci please test

@mshockwave mshockwave closed this Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants