[llvm] 6b4ebdd - ModuleUtils - VFABI::setVectorVariantNames - use ArrayRef<> instead of const SmallVector to pass argument
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 3 04:12:05 PST 2022
Author: Simon Pilgrim
Date: 2022-02-03T12:11:48Z
New Revision: 6b4ebdd46f5c33316c75b9584d30990f230a40fa
URL: https://github.com/llvm/llvm-project/commit/6b4ebdd46f5c33316c75b9584d30990f230a40fa
DIFF: https://github.com/llvm/llvm-project/commit/6b4ebdd46f5c33316c75b9584d30990f230a40fa.diff
LOG: ModuleUtils - VFABI::setVectorVariantNames - use ArrayRef<> instead of const SmallVector to pass argument
Added:
Modified:
llvm/include/llvm/Transforms/Utils/ModuleUtils.h
llvm/lib/Transforms/Utils/ModuleUtils.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/ModuleUtils.h b/llvm/include/llvm/Transforms/Utils/ModuleUtils.h
index 8d459972336ba..510836fb94f9b 100644
--- a/llvm/include/llvm/Transforms/Utils/ModuleUtils.h
+++ b/llvm/include/llvm/Transforms/Utils/ModuleUtils.h
@@ -115,8 +115,7 @@ class CallInst;
namespace VFABI {
/// Overwrite the Vector Function ABI variants attribute with the names provide
/// in \p VariantMappings.
-void setVectorVariantNames(CallInst *CI,
- const SmallVector<std::string, 8> &VariantMappings);
+void setVectorVariantNames(CallInst *CI, ArrayRef<std::string> VariantMappings);
} // End VFABI namespace
} // End llvm namespace
diff --git a/llvm/lib/Transforms/Utils/ModuleUtils.cpp b/llvm/lib/Transforms/Utils/ModuleUtils.cpp
index d6a6be2762c7e..61cf42db4a755 100644
--- a/llvm/lib/Transforms/Utils/ModuleUtils.cpp
+++ b/llvm/lib/Transforms/Utils/ModuleUtils.cpp
@@ -237,8 +237,8 @@ std::string llvm::getUniqueModuleId(Module *M) {
return ("." + Str).str();
}
-void VFABI::setVectorVariantNames(
- CallInst *CI, const SmallVector<std::string, 8> &VariantMappings) {
+void VFABI::setVectorVariantNames(CallInst *CI,
+ ArrayRef<std::string> VariantMappings) {
if (VariantMappings.empty())
return;
More information about the llvm-commits
mailing list