[llvm] [IA] Relax the requirement of having ExtractValue users on deinterleave intrinsic (PR #148716)
    Philip Reames via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jul 16 12:13:57 PDT 2025
    
    
  
================
@@ -188,6 +189,9 @@ LLVM_ABI unsigned getInterleaveIntrinsicFactor(Intrinsic::ID ID);
 /// Returns the corresponding factor of llvm.vector.deinterleaveN intrinsics.
 LLVM_ABI unsigned getDeinterleaveIntrinsicFactor(Intrinsic::ID ID);
 
+/// Given a deinterleaveN intrinsic, return the (narrow) type of each factor.
+LLVM_ABI Type *getDeinterleavedVectorType(IntrinsicInst *DI);
----------------
preames wrote:
You can have this return a VectorType, and remove a couple casts.
https://github.com/llvm/llvm-project/pull/148716
    
    
More information about the llvm-commits
mailing list