[llvm] [VPlan] Add createWiden{Load,Store} VPBuilder members (NFC) (PR #210543)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 22 09:50:42 PDT 2026
================
@@ -536,6 +536,27 @@ class VPBuilder {
VectorIntrinsicID, CallArguments, Ty, Alignment, MD, DL));
}
+ /// Create a recipe widening \p Load, loading from \p Addr with an optional
+ /// \p Mask.
+ VPWidenLoadRecipe *createWidenLoad(LoadInst &Load, VPValue *Addr,
+ VPValue *Mask, bool Consecutive,
+ const VPIRMetadata &Metadata,
+ DebugLoc DL) {
+ return tryInsertInstruction(
+ new VPWidenLoadRecipe(Load, Addr, Mask, Consecutive, Metadata, DL));
+ }
+
+ /// Create a recipe widening \p Store, storing \p StoredVal to \p Addr with an
+ /// optional \p Mask.
+ VPWidenStoreRecipe *createWidenStore(StoreInst &Store, VPValue *Addr,
+ VPValue *StoredVal, VPValue *Mask,
+ bool Consecutive,
+ const VPIRMetadata &Metadata,
+ DebugLoc DL) {
----------------
fhahn wrote:
Should be updated including mention that it can be null, thanks!
https://github.com/llvm/llvm-project/pull/210543
More information about the llvm-commits
mailing list