[llvm] [LV][RISCV] Add explicit LMUL controls via computeFeasibleMaxVF (PR #193091)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 04:34:14 PDT 2026


================
@@ -1355,6 +1355,9 @@ class TargetTransformInfo {
   /// \return The width of the smallest vector register type.
   LLVM_ABI unsigned getMinVectorRegisterBitWidth() const;
 
+  /// \return The maximum VF configured for target.
+  std::optional<ElementCount> getMaxScalableVF(unsigned MaxWidthInBits) const;
----------------
fhahn wrote:

I am not sure it is clear what maximum VF means here. Maximum legal VF, i.e. maxium VF so a vector with MaxWidthInBits fits into a single vector register? Would be good to clarify the documentation and also document argument

https://github.com/llvm/llvm-project/pull/193091


More information about the llvm-commits mailing list