diff options
Diffstat (limited to 'contrib/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h')
-rw-r--r-- | contrib/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/contrib/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h b/contrib/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h index 71ae17a..8414bfc 100644 --- a/contrib/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h +++ b/contrib/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h @@ -40,13 +40,6 @@ public: : BaseT(TM, F.getParent()->getDataLayout()), ST(TM->getSubtargetImpl(F)), TLI(ST->getTargetLowering()) {} - // Provide value semantics. MSVC requires that we spell all of these out. - HexagonTTIImpl(const HexagonTTIImpl &Arg) - : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} - HexagonTTIImpl(HexagonTTIImpl &&Arg) - : BaseT(std::move(static_cast<BaseT &>(Arg))), ST(std::move(Arg.ST)), - TLI(std::move(Arg.TLI)) {} - /// \name Scalar TTI Implementations /// @{ @@ -55,6 +48,10 @@ public: // The Hexagon target can unroll loops with run-time trip counts. void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP); + // L1 cache prefetch. + unsigned getPrefetchDistance() const; + unsigned getCacheLineSize() const; + /// @} /// \name Vector TTI Implementations @@ -63,6 +60,8 @@ public: unsigned getNumberOfRegisters(bool vector) const; /// @} + + int getUserCost(const User *U); }; } // end namespace llvm |