diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2022-04-05 09:55:43 +0200 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2022-04-05 10:29:42 +0200 |
commit | dbb6a75fbb3679a03edf6f4bc7e7262f751b6dfc (patch) | |
tree | 122dcafd3876eb7419aa1c0fbb1881caa6d5feb8 /clang/lib/Frontend | |
parent | dda366ed37cec7b2f7c96a47b1b32391b514d969 (diff) | |
download | llvm-dbb6a75fbb3679a03edf6f4bc7e7262f751b6dfc.zip llvm-dbb6a75fbb3679a03edf6f4bc7e7262f751b6dfc.tar.gz llvm-dbb6a75fbb3679a03edf6f4bc7e7262f751b6dfc.tar.bz2 |
[LibCalls] Respect TLI.getExtAttrForI32Param() in inferLibFuncAttributes().
getExtAttrForI32Param() is the method to be used for determining the type of
extension attribute (if any) that is to be added for a signed/unsigned
argument.
Previously, the SExt attribute was always added to the i32 ldexp* argument as
it was expected to be ignored by targets not needing it. This patch now
changes this so that it is only added for the targets that need it in the
first place.
Putchar() argument is now also extended as required by the target (SystemZ in
the test), to fix the issue below. Many more libcalls will be handled
similarly in a following patch.
Fixes https://github.com/llvm/llvm-project/issues/54532.
Differential Revision: https://reviews.llvm.org/D123030
Review: Eli Friedman
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions