[all-commits] [llvm/llvm-project] c3e25e: [VPlan] Add VPInst::getNumOperandsForOpcode, use t...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Tue Jun 24 12:39:56 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c3e25e7fc463932d763a0405e8d44151e8679b66
https://github.com/llvm/llvm-project/commit/c3e25e7fc463932d763a0405e8d44151e8679b66
Author: Florian Hahn <flo at fhahn.com>
Date: 2025-06-24 (Tue, 24 Jun 2025)
Changed paths:
M llvm/lib/Transforms/Vectorize/VPlan.h
M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
M llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
Log Message:
-----------
[VPlan] Add VPInst::getNumOperandsForOpcode, use to verify in ctor (NFC) (#142284)
Add a new getNumOperandsForOpcode helper to determine the number of
operands from the opcode. For now, it is used to verify the number
operands at VPInstruction construction.
It returns -1 for a few opcodes where the number of operands cannot be
determined (GEP, Switch, PHI, Call).
This can also be used in a follow-up to determine if a VPInstruction is
masked based on the number of arguments.
PR: https://github.com/llvm/llvm-project/pull/142284
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list