diff options
author | Florian Hahn <flo@fhahn.com> | 2025-06-24 20:39:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-24 20:39:35 +0100 |
commit | c3e25e7fc463932d763a0405e8d44151e8679b66 (patch) | |
tree | 8a990f9711703abe1e347f6e28e1e9959576f601 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | b171ebbfffcd4b8d923734dd0fc077b02a6fe3f7 (diff) | |
download | llvm-c3e25e7fc463932d763a0405e8d44151e8679b66.zip llvm-c3e25e7fc463932d763a0405e8d44151e8679b66.tar.gz llvm-c3e25e7fc463932d763a0405e8d44151e8679b66.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions