[llvm] [IR] Add new CreateVectorInterleave interface and constant fold (PR #150931)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 28 05:52:27 PDT 2025


================
@@ -189,6 +189,24 @@ class LLVM_ABI TargetFolder final : public IRBuilderFolder {
     return nullptr;
   }
 
+  Value *FoldVectorInterleave(ArrayRef<Value *> Ops) const override {
----------------
david-arm wrote:

I can't use the pre-existing `FoldBinaryIntrinsic` or `FoldUnaryIntrinsic` functions either because the number of operands is variable, although I'm happy to add a `FoldUnaryIntrinsic`.

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


More information about the llvm-commits mailing list