diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2015-12-14 17:57:33 +0000 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2015-12-14 17:57:33 +0000 |
commit | 280f7101e8c82ae7e09a71f439dbcce18f2e18fc (patch) | |
tree | 46ffe72c522706e397f64850268c843496364b46 /llvm/lib/Target/PowerPC/PPCSubtarget.h | |
parent | 88a328fbbede8750a401a62c9e3677d681619999 (diff) | |
download | bcm5719-llvm-280f7101e8c82ae7e09a71f439dbcce18f2e18fc.tar.gz bcm5719-llvm-280f7101e8c82ae7e09a71f439dbcce18f2e18fc.zip |
[Power PC] llvm soft float support for ppc32
This is the second in a set of patches for soft float support for ppc32,
it enables soft float operations.
Patch by Strahinja Petrovic.
Differential Revision: http://reviews.llvm.org/D13700
llvm-svn: 255516
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h index 105ceae4e36..a55c0d3a722 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.h +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h @@ -83,6 +83,7 @@ protected: bool Has64BitSupport; bool Use64BitRegs; bool UseCRBits; + bool UseSoftFloat; bool IsPPC64; bool HasAltivec; bool HasSPE; @@ -189,6 +190,8 @@ public: /// has64BitSupport - Return true if the selected CPU supports 64-bit /// 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 UseSoftFloat; } /// 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 |