Skip to content

force add attribute not EnumAttr #68862

@lifengxiang1025

Description

@lifengxiang1025

I want to force add attribute not EnumAttr like "use-sample-profile". But llvm doesn't support now. https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp#L62C1-L62C63. Why llvm need to check the attribute? Can we force add attribute as string without checking?

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvm:corequestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions