Skip to content

Commit 1ec6a90

Browse files
committed
Some renaming.
1 parent 7e2ed4a commit 1ec6a90

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

llvm/include/llvm/Analysis/TargetLibraryInfo.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Triple;
2727
/// Provides info so a possible vectorization of a function can be
2828
/// computed. Function 'VectorFnName' is equivalent to 'ScalarFnName'
2929
/// vectorized by a factor 'VectorizationFactor'.
30-
/// The MangledNamePrefix string holds information about isa, mask, vlen,
30+
/// The VABIPrefix string holds information about isa, mask, vlen,
3131
/// and vparams so a scalar-to-vector mapping of the form:
3232
/// _ZGV<isa><mask><vlen><vparams>_<scalarname>(<vectorname>)
3333
/// can be constructed where:
@@ -45,22 +45,21 @@ class VecDesc {
4545
StringRef VectorFnName;
4646
ElementCount VectorizationFactor;
4747
bool Masked;
48-
StringRef MangledNamePrefix;
48+
StringRef VABIPrefix;
4949

5050
public:
5151
VecDesc() = delete;
5252
VecDesc(StringRef ScalarFnName, StringRef VectorFnName,
53-
ElementCount VectorizationFactor, bool Masked,
54-
StringRef MangledNamePrefix)
53+
ElementCount VectorizationFactor, bool Masked, StringRef VABIPrefix)
5554
: ScalarFnName(ScalarFnName), VectorFnName(VectorFnName),
5655
VectorizationFactor(VectorizationFactor), Masked(Masked),
57-
MangledNamePrefix(MangledNamePrefix) {}
56+
VABIPrefix(VABIPrefix) {}
5857

5958
StringRef getScalarFnName() const { return ScalarFnName; }
6059
StringRef getVectorFnName() const { return VectorFnName; }
6160
ElementCount getVectorizationFactor() const { return VectorizationFactor; }
6261
bool isMasked() const { return Masked; }
63-
StringRef getMangledNamePrefix() const { return MangledNamePrefix; }
62+
StringRef getVABIPrefix() const { return VABIPrefix; }
6463

6564
/// Returns a vector function ABI variant string on the form:
6665
/// _ZGV<isa><mask><vlen><vparams>_<scalarname>(<vectorname>)

llvm/lib/Analysis/TargetLibraryInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ StringLiteral const TargetLibraryInfoImpl::StandardNames[LibFunc::NumLibFuncs] =
4848
std::string VecDesc::getVectorFunctionABIVariantString() const {
4949
SmallString<256> Buffer;
5050
llvm::raw_svector_ostream Out(Buffer);
51-
Out << MangledNamePrefix << "_" << ScalarFnName << "(" << VectorFnName << ")";
51+
Out << VABIPrefix << "_" << ScalarFnName << "(" << VectorFnName << ")";
5252
return std::string(Out.str());
5353
}
5454

0 commit comments

Comments
 (0)