[llvm] [CodeGen] Expand unsupported interleave to shuffles (PR #210494)

Kamlesh Kumar via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 19 00:33:15 PDT 2026


================
@@ -3324,6 +3324,13 @@ class LLVM_ABI TargetLoweringBase {
   /// Default to be the minimum interleave factor: 2.
   virtual unsigned getMaxSupportedInterleaveFactor() const { return 2; }
 
+  /// Return true if the target supports interleave intrinsic for the specified
+  /// factor and vector type.
+  virtual bool isInterleaveIntrinsicSupported(unsigned /*Factor*/,
+                                              EVT /*VecTy*/) const {
+    return false;
----------------
kamleshbhalui wrote:

isOperationLegalOrCustom  does not consider factor

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


More information about the llvm-commits mailing list