diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Analysis/TargetTransformInfo.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/Analysis/TargetTransformInfo.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/lib/Analysis/TargetTransformInfo.cpp b/contrib/llvm-project/llvm/lib/Analysis/TargetTransformInfo.cpp index c751d174a48a..3f76dfdaac31 100644 --- a/contrib/llvm-project/llvm/lib/Analysis/TargetTransformInfo.cpp +++ b/contrib/llvm-project/llvm/lib/Analysis/TargetTransformInfo.cpp @@ -213,6 +213,17 @@ unsigned TargetTransformInfo::getInliningThresholdMultiplier() const { } unsigned +TargetTransformInfo::getInliningCostBenefitAnalysisSavingsMultiplier() const { + return TTIImpl->getInliningCostBenefitAnalysisSavingsMultiplier(); +} + +unsigned +TargetTransformInfo::getInliningCostBenefitAnalysisProfitableMultiplier() + const { + return TTIImpl->getInliningCostBenefitAnalysisProfitableMultiplier(); +} + +unsigned TargetTransformInfo::adjustInliningThreshold(const CallBase *CB) const { return TTIImpl->adjustInliningThreshold(CB); } @@ -402,6 +413,10 @@ bool TargetTransformInfo::isNumRegsMajorCostOfLSR() const { return TTIImpl->isNumRegsMajorCostOfLSR(); } +bool TargetTransformInfo::shouldFoldTerminatingConditionAfterLSR() const { + return TTIImpl->shouldFoldTerminatingConditionAfterLSR(); +} + bool TargetTransformInfo::isProfitableLSRChainElement(Instruction *I) const { return TTIImpl->isProfitableLSRChainElement(I); } @@ -667,6 +682,11 @@ TargetTransformInfo::getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, return Cost; } +bool TargetTransformInfo::preferToKeepConstantsAttached( + const Instruction &Inst, const Function &Fn) const { + return TTIImpl->preferToKeepConstantsAttached(Inst, Fn); +} + unsigned TargetTransformInfo::getNumberOfRegisters(unsigned ClassID) const { return TTIImpl->getNumberOfRegisters(ClassID); } @@ -1122,6 +1142,13 @@ bool TargetTransformInfo::areInlineCompatible(const Function *Caller, return TTIImpl->areInlineCompatible(Caller, Callee); } +unsigned +TargetTransformInfo::getInlineCallPenalty(const Function *F, + const CallBase &Call, + unsigned DefaultCallPenalty) const { + return TTIImpl->getInlineCallPenalty(F, Call, DefaultCallPenalty); +} + bool TargetTransformInfo::areTypesABICompatible( const Function *Caller, const Function *Callee, const ArrayRef<Type *> &Types) const { |
