[llvm-dev] Clang IR Compile Bug?

platin21 via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 27 11:15:21 PST 2021


Hello Everyone,

May I ask is there anything different in clang when compiling ir than to when compiling with llc.
In particular it seems to cause some problems with returning floats directly but only if they are over 8 bytes in size. 

I added the ir as attachment when compiled on arm-macOS via:
> clang trs.ll 
It causes this code to not work correctly.

If compiled with llc and then linked with clang it works:
> llc  -filetype=obj trs.ll -o trs.o
> clang trs.o -o trs

I yet have to find out why this happens when using clang directly. If anyone has a guess would be nice to know.
The same problem also happens in the backend which I’m currently helping with to develop here i though don’t know how to fix that as I can’t simply call llc as it’s using the llvm-c api todo all of this. 

Link to IL Code => https://1drv.ms/u/s!Atg5BVAOHU2EgaBr2UaRfTgjUsUgHw?e=TmGbo5

Best regards,
Platin21
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211227/7dd575fb/attachment.html>


More information about the llvm-dev mailing list