这是indexloc提供的服务,不要输入任何密码
Skip to content

nodebug for HWY_API, attribute debug information to call site #2588

@lirp

Description

@lirp

I was examining some code that uses Highway and noticed that in perf annotate, the instructions from Highway functions are all attributed to Highway source files (unsurprisingly). I find this a little suboptimal, as it's not always obvious which instruction goes with which caller line, and this is a bit different than direct intrinsic use.

There's another option: if inline functions are marked with the nodebug attribute, the Highway function line information is instead attributed to the caller. Maybe we should be able to use the artificial attribute, but that is apparently not correctly implemented.

If there are no concerns or objections in the next couple of weeks, I'm planning on marking HWY_API with nodebug under gcc/clang to make the debug information attribution more similar to direct intrinsic use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions