<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/68862>68862</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
force add attribute not EnumAttr
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lifengxiang1025
</td>
</tr>
</table>
<pre>
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](url). Why llvm need to check the attribute? Can we force add attribute as string without checking?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkkFr3DAQhX-NfBnW2KO1vT74kE1qCBTaQ6FnyR7bamTJSKNu8--LNoX0UCi5SCDNPN5881SMZnVEg2iuonkqVOLNh8Gahdz6yyi31hU2hfbz6_AMN-UY2MPiw0Sg5hkUczA6MYHzDJ9c2h-YA1jzQiAQU6RTVPth6XQEvxhLArGEa2Kw9ucOs6foBHYMMR2HDwzO30oQzXVjPqKQDwJHgeNqeEu6nPwucMydf66s-oMmFjhq67XAcVfG_VVj8tu3oFxcfNijwPH56xeB45gnGJOb2HiXLcdyOg6B8nOLj_Upn60UzZPASwpWYF_C9-31zbQjmjOFaaPpBXijdwpCjvCoHNzon4xUhMjBuBVuhjef-E3DuDU3QjEPcu5lrwoa6rbvqr5rKllsA8mm0d1Z1dMynad5qeaZ9KQ7fanqpddtYQasUNZVjVXXXFCWqlt6SbKuz_PSk6zFuaJdGVvmCUof1sLEmGhoL5cWC6s02XjPAKKjG9w_BWKORBjupHVaozhX1kSO7yps2NLwvzwUKdjhwxu9m8gru5v8HQAA__8LkeFY">