[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 07:32:08 PDT 2025
================
@@ -189,6 +189,24 @@ class LLVM_ABI TargetFolder final : public IRBuilderFolder {
return nullptr;
}
+ Value *FoldVectorInterleave(ArrayRef<Value *> Ops) const override {
----------------
nikic wrote:
Using TargetFolder is generally preferred. (The whole TargetFolder vs ConstantFolder is an annoying legacy split, that's unfortunately not entirely straightforward to remove.)
https://github.com/llvm/llvm-project/pull/150931
More information about the llvm-commits
mailing list