Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 20a1e3c

Browse files
committed
[TTI] Make TargetTransformInfo::getOperandInfo static. NFCI.
It has no member dependencies and this makes it easier to reuse in other cost analysis code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346755 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 9483553 commit 20a1e3c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

include/llvm/Analysis/TargetTransformInfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,9 @@ class TargetTransformInfo {
744744
/// and the number of execution units in the CPU.
745745
unsigned getMaxInterleaveFactor(unsigned VF) const;
746746

747-
/// Collect properties of V used in cost analyzis, e.g. OP_PowerOf2.
748-
OperandValueKind getOperandInfo(Value *V,
749-
OperandValueProperties &OpProps) const;
747+
/// Collect properties of V used in cost analysis, e.g. OP_PowerOf2.
748+
static OperandValueKind getOperandInfo(Value *V,
749+
OperandValueProperties &OpProps);
750750

751751
/// This is an approximation of reciprocal throughput of a math/logic op.
752752
/// A higher cost indicates less expected throughput.

lib/Analysis/TargetTransformInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,7 @@ unsigned TargetTransformInfo::getMaxInterleaveFactor(unsigned VF) const {
389389
}
390390

391391
TargetTransformInfo::OperandValueKind
392-
TargetTransformInfo::getOperandInfo(Value *V,
393-
OperandValueProperties &OpProps) const {
392+
TargetTransformInfo::getOperandInfo(Value *V, OperandValueProperties &OpProps) {
394393
OperandValueKind OpInfo = OK_AnyValue;
395394
OpProps = OP_None;
396395

0 commit comments

Comments
 (0)