[llvm] 6c1e3e4 - [IR] Return 'unsigned' from ScalableVectorType::getMinNumElements(). (#98103)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 09:14:55 PDT 2024
Author: Craig Topper
Date: 2024-07-09T09:14:51-07:00
New Revision: 6c1e3e49c10718e1d45a9031198af0ebd64fecb4
URL: https://github.com/llvm/llvm-project/commit/6c1e3e49c10718e1d45a9031198af0ebd64fecb4
DIFF: https://github.com/llvm/llvm-project/commit/6c1e3e49c10718e1d45a9031198af0ebd64fecb4.diff
LOG: [IR] Return 'unsigned' from ScalableVectorType::getMinNumElements(). (#98103)
The underlying ElementQuantity field is 'unsigned'. The similar
FixedVectorType::getNumElements() returns 'unsigned'.
Added:
Modified:
llvm/include/llvm/IR/DerivedTypes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h
index 443fb7de3b821..01f76d4932780 100644
--- a/llvm/include/llvm/IR/DerivedTypes.h
+++ b/llvm/include/llvm/IR/DerivedTypes.h
@@ -631,7 +631,7 @@ class ScalableVectorType : public VectorType {
/// Get the minimum number of elements in this vector. The actual number of
/// elements in the vector is an integer multiple of this value.
- uint64_t getMinNumElements() const { return ElementQuantity; }
+ unsigned getMinNumElements() const { return ElementQuantity; }
static bool classof(const Type *T) {
return T->getTypeID() == ScalableVectorTyID;
More information about the llvm-commits
mailing list