Skip to content

Commit b653de1

Browse files
committedSep 10, 2014
Rename getMaximumUnrollFactor -> getMaxInterleaveFactor; also rename option names controlling this variable.
"Unroll" is not the appropriate name for this variable. Clang already uses the term "interleave" in pragmas and metadata for this. Differential Revision: http://reviews.llvm.org/D5066 llvm-svn: 217528
1 parent e4f6684 commit b653de1

File tree

92 files changed

+147
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+147
-147
lines changed
 

‎llvm/include/llvm/Analysis/TargetTransformInfo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,10 @@ class TargetTransformInfo {
346346
/// \return The width of the largest scalar or vector register type.
347347
virtual unsigned getRegisterBitWidth(bool Vector) const;
348348

349-
/// \return The maximum unroll factor that the vectorizer should try to
349+
/// \return The maximum interleave factor that any transform should try to
350350
/// perform for this target. This number depends on the level of parallelism
351351
/// and the number of execution units in the CPU.
352-
virtual unsigned getMaximumUnrollFactor() const;
352+
virtual unsigned getMaxInterleaveFactor() const;
353353

354354
/// \return The expected cost of arithmetic ops, such as mul, xor, fsub, etc.
355355
virtual unsigned

‎llvm/lib/Analysis/TargetTransformInfo.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ unsigned TargetTransformInfo::getRegisterBitWidth(bool Vector) const {
167167
return PrevTTI->getRegisterBitWidth(Vector);
168168
}
169169

170-
unsigned TargetTransformInfo::getMaximumUnrollFactor() const {
171-
return PrevTTI->getMaximumUnrollFactor();
170+
unsigned TargetTransformInfo::getMaxInterleaveFactor() const {
171+
return PrevTTI->getMaxInterleaveFactor();
172172
}
173173

174174
unsigned TargetTransformInfo::getArithmeticInstrCost(
@@ -565,7 +565,7 @@ struct NoTTI final : ImmutablePass, TargetTransformInfo {
565565
return 32;
566566
}
567567

568-
unsigned getMaximumUnrollFactor() const override {
568+
unsigned getMaxInterleaveFactor() const override {
569569
return 1;
570570
}
571571

0 commit comments

Comments
 (0)
Please sign in to comment.