[PATCH] D38050: [ARM] Use correct calling convention for libm.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 12:28:56 PDT 2017


efriedma created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.

-mfloat-abi doesn't control the calling convention for compiler-rt: it's built with the compiler, so it can only have one calling convention for a given target. -mfloat-abi does control the calling convention for any function provided by libm: libm is built by the user, so the user should have control over its calling convention.  See https://bugs.llvm.org/show_bug.cgi?id=30543 for previous discussion on the subject.

I don't really like the big list, but I'm not sure there's a better way to handle this.

Fixes https://bugs.llvm.org//show_bug.cgi?id=34530.


Repository:
  rL LLVM

https://reviews.llvm.org/D38050

Files:
  lib/Target/ARM/ARMISelLowering.cpp
  test/CodeGen/Thumb2/intrinsics-cc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38050.115883.patch
Type: text/x-patch
Size: 5805 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170919/27a91902/attachment.bin>


More information about the llvm-commits mailing list