[llvm] [IR] Add new CreateVectorInterleave interface and constant fold (PR #150931)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 28 05:56:28 PDT 2025
================
@@ -189,6 +189,24 @@ class LLVM_ABI TargetFolder final : public IRBuilderFolder {
return nullptr;
}
+ Value *FoldVectorInterleave(ArrayRef<Value *> Ops) const override {
----------------
nikic wrote:
You probably want to replace FoldBinaryIntrinsic with FoldIntrinsic -- we shouldn't specialize to binary. This is going to need a small bit of refactoring in ConstantFolding to expose a ConstantFoldIntrinsic function instead of ConstantFoldBinaryIntrinsic.
https://github.com/llvm/llvm-project/pull/150931
More information about the llvm-commits
mailing list