diff options
author | Jason Liu <jasonliu.development@gmail.com> | 2019-08-14 14:13:11 +0000 |
---|---|---|
committer | Jason Liu <jasonliu.development@gmail.com> | 2019-08-14 14:13:11 +0000 |
commit | 8fc095d453a05646e5f96df613152cf1212ef0db (patch) | |
tree | 9b75bdbacdca1ea0cfa8b59ffdce4eb8fc011198 /llvm/lib/Target/PowerPC/PPCSubtarget.h | |
parent | 0d802a4923e6a603aa1ee06d0969a793cc93f858 (diff) | |
download | bcm5719-llvm-8fc095d453a05646e5f96df613152cf1212ef0db.tar.gz bcm5719-llvm-8fc095d453a05646e5f96df613152cf1212ef0db.zip |
[AIX] Add call lowering for parameters that could pass onto FPRs
Summary:
This patch adds call lowering functionality to enable passing
parameters onto floating point registers when needed.
Differential Revision: https://reviews.llvm.org/D63654
llvm-svn: 368855
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h index 55fec1cb6d9..d1bbcdae17e 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.h +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h @@ -210,7 +210,11 @@ public: /// instructions, regardless of whether we are in 32-bit or 64-bit mode. bool has64BitSupport() const { return Has64BitSupport; } // useSoftFloat - Return true if soft-float option is turned on. - bool useSoftFloat() const { return !HasHardFloat; } + bool useSoftFloat() const { + if (isAIXABI() && !HasHardFloat) + report_fatal_error("soft-float is not yet supported on AIX."); + return !HasHardFloat; + } /// use64BitRegs - Return true if in 64-bit mode or if we should use 64-bit /// registers in 32-bit mode when possible. This can only true if |