Skip to content

Preserve Debug info after vector scalarization #110149

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

Open
farzonl opened this issue Sep 26, 2024 · 0 comments
Open

Preserve Debug info after vector scalarization #110149

farzonl opened this issue Sep 26, 2024 · 0 comments
Labels
backend:DirectX HLSL HLSL Language Support

Comments

@farzonl
Copy link
Member

farzonl commented Sep 26, 2024

Currently we don't have a Debug Info story so adding the getter\setters for the metadata to trasfer to the new global doesn't give us anything we can test. When We start to develop the debug info we need to revisit this issue invoke the getters and add debug info to the newly created global.

There is a NewGlobal->addDebugInfo(...) I don't want to just tack this on without understanding it well.
it seems like I need to fetch the dbg metadata via G.getMetadata("dbg") convert the metadata to a DIGlobalVariableExpression and then pass that to addDebugInfo? Is that it?

What type of tests would make sense for this? Since this is IR I don't think I get ; line:5 col:12 without source?

Originally posted by @farzonl in #110029 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:DirectX HLSL HLSL Language Support
Projects
Status: No status
Development

No branches or pull requests

2 participants