[llvm] [LV] Introduce isLegalMaskedLoadOrStore (NFC) (PR #195242)

Gaƫtan Bossu via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 07:37:49 PDT 2026


================
@@ -655,15 +650,9 @@ class VFSelectionContext {
   /// of FP operations.
   bool useOrderedReductions(const RecurrenceDescriptor &RdxDesc) const;
 
-  /// Returns true if the target machine supports masked store operation
-  /// for the given \p DataType and kind of access to \p Ptr.
-  bool isLegalMaskedStore(Type *DataType, Value *Ptr, Align Alignment,
-                          unsigned AddressSpace) const;
-
-  /// Returns true if the target machine supports masked load operation
-  /// for the given \p DataType and kind of access to \p Ptr.
-  bool isLegalMaskedLoad(Type *DataType, Value *Ptr, Align Alignment,
-                         unsigned AddressSpace) const;
+  /// Returns true if the target machine can represent \p I as a masked load
----------------
gbossu wrote:

I've adjusted the docstring, let me know if you have further comments :)

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


More information about the llvm-commits mailing list