<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Hello 👋🏻 </span><div dir="ltr"><div dir="ltr"><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">I have a little problem with the current llvm-c version it seems like it is not possible to use it correctly?</div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">The reason is that byval and sret seem to require a type attribute which can’t be created in the C api. Someone already wrote a fix for it and that is already in the main repo but it didn’t make it into llvm12. This wasn’t a real problem with llvm11 but now is at it seems to be required for functions to actually work.</div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">This is the commit that allows one to make these TypeAttributes:</div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><a href="https://github.com/llvm/llvm-project/commit/528f6f7d617757addac9b51dd5bcc1ab1352e9be">https://github.com/llvm/llvm-project/commit/528f6f7d617757addac9b51dd5bcc1ab1352e9be</a></div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">My request is now to add this as a patch to llvm-c for version 12 if this can be done quicker than a new llvm version (e.g 13). The commit also doesn’t edit anything that’s already there but just adds new functions for type attributes. Almost seems like it slipped under the radar. </div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Best regards,</div><div dir="ltr" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Armin Hamar</div></div></div></div></body></html>