[llvm] [LV] Add initial legality checks for loops with unbound loads. (PR #152422)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 11 06:34:25 PDT 2025


================
@@ -1857,6 +1857,10 @@ class TargetTransformInfo {
   /// \returns True if the target supports scalable vectors.
   LLVM_ABI bool supportsScalableVectors() const;
 
+  /// \returns True if the target supports speculative load intrinsics (e.g.,
+  /// vp.load.ff).
+  LLVM_ABI bool supportsSpeculativeLoads() const;
----------------
david-arm wrote:

I think you probably need to pass a type into this interface because the target may not support speculative loads of 128-bit types, etc.

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


More information about the llvm-commits mailing list