summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorostannard <oliver.stannard@arm.com>2024-05-07 09:17:05 +0100
committerGitHub <noreply@github.com>2024-05-07 09:17:05 +0100
commit1fd196c8df8e9fa4e0eddddc92b012824d8d1b0b (patch)
treeef66c10024ebf4e93506ef6eb6dc445c22901f0a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent1530f319311908b06fe935c89fca692d3e53184f (diff)
[AArch64] Diagnose more functions when FP not enabled (#90832)
When using a hard-float ABI for a target without FP registers, it's not possible to correctly generate code for functions with arguments which must be passed in floating-point registers. This is diagnosed in CodeGen instead of Sema, to more closely match GCC's behaviour around inline functions, which is relied on by the Linux kernel. Previously, this only checked function signatures as they were code-generated, but this missed some cases: * Calls to functions not defined in this translation unit. * Calls through function pointers. * Calls to variadic functions, where the variadic arguments have a floating-point type. This adds checks to function calls, as well as definitions, so that these cases are correctly diagnosed.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions