diff options
author | James Y Knight <jyknight@google.com> | 2017-07-18 19:08:38 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2017-07-18 19:08:38 +0000 |
commit | dda87cab7d2a9772ed325a7395c560cbd1b258ad (patch) | |
tree | 7345861b3c495bedbb1c838c2d8265aed7ad5fed /llvm/lib/Target/Sparc/SparcSubtarget.h | |
parent | 028e619be8f5a0343851b92ca619da4bcdbdec28 (diff) | |
download | bcm5719-llvm-dda87cab7d2a9772ed325a7395c560cbd1b258ad.tar.gz bcm5719-llvm-dda87cab7d2a9772ed325a7395c560cbd1b258ad.zip |
[Sparc] Added software multiplication/division feature
Added a feature to the Sparc back-end that replaces the integer multiply and
divide instructions with calls to .mul/.sdiv/.udiv. This is a step towards
having full v7 support.
Patch by: Eric Kedaigle
Differential Revision: https://reviews.llvm.org/D35500
llvm-svn: 308343
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcSubtarget.h')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcSubtarget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/SparcSubtarget.h b/llvm/lib/Target/Sparc/SparcSubtarget.h index fa42da425ff..d18139984b8 100644 --- a/llvm/lib/Target/Sparc/SparcSubtarget.h +++ b/llvm/lib/Target/Sparc/SparcSubtarget.h @@ -32,6 +32,7 @@ class StringRef; class SparcSubtarget : public SparcGenSubtargetInfo { Triple TargetTriple; virtual void anchor(); + bool UseSoftMulDiv; bool IsV9; bool IsLeon; bool V8DeprecatedInsts; @@ -76,6 +77,7 @@ public: bool enableMachineScheduler() const override; + bool useSoftMulDiv() const { return UseSoftMulDiv; } bool isV9() const { return IsV9; } bool isLeon() const { return IsLeon; } bool isVIS() const { return IsVIS; } |