forked from OSchip/llvm-project
[RISCV][NFC] Change interface of RVVIntrinsic::getSuffixStr
This NFC patch is splited from D111617. Using llvm::ArrayRef rather than llvm::SmallVector, ArrayRef is more generic interface that could accept both llvm::ArrayRef and llvm::SmallVector. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D125893
This commit is contained in:
parent
a7c079aaa2
commit
b166aa833e
|
@ -340,9 +340,9 @@ public:
|
||||||
// Return the type string for a BUILTIN() macro in Builtins.def.
|
// Return the type string for a BUILTIN() macro in Builtins.def.
|
||||||
std::string getBuiltinTypeStr() const;
|
std::string getBuiltinTypeStr() const;
|
||||||
|
|
||||||
static std::string getSuffixStr(
|
static std::string
|
||||||
BasicType Type, int Log2LMUL,
|
getSuffixStr(BasicType Type, int Log2LMUL,
|
||||||
const llvm::SmallVector<PrototypeDescriptor> &PrototypeDescriptors);
|
llvm::ArrayRef<PrototypeDescriptor> PrototypeDescriptors);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace RISCV
|
} // end namespace RISCV
|
||||||
|
|
|
@ -922,7 +922,7 @@ std::string RVVIntrinsic::getBuiltinTypeStr() const {
|
||||||
|
|
||||||
std::string RVVIntrinsic::getSuffixStr(
|
std::string RVVIntrinsic::getSuffixStr(
|
||||||
BasicType Type, int Log2LMUL,
|
BasicType Type, int Log2LMUL,
|
||||||
const llvm::SmallVector<PrototypeDescriptor> &PrototypeDescriptors) {
|
llvm::ArrayRef<PrototypeDescriptor> PrototypeDescriptors) {
|
||||||
SmallVector<std::string> SuffixStrs;
|
SmallVector<std::string> SuffixStrs;
|
||||||
for (auto PD : PrototypeDescriptors) {
|
for (auto PD : PrototypeDescriptors) {
|
||||||
auto T = RVVType::computeType(Type, Log2LMUL, PD);
|
auto T = RVVType::computeType(Type, Log2LMUL, PD);
|
||||||
|
|
Loading…
Reference in New Issue