Skip to content

Preserve Debug info after vector scalarization #110149

Open
@farzonl

Description

@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 #110029 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions