Issue 110149
Summary Preserve Debug info after vector scalarization
Labels new issue
Assignees
Reporter farzonl
    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 https://github.com/llvm/llvm-project/pull/110029#discussion_r1776178060_
 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to