[llvm] SD Pattern Match: Operands patterns with VP Context (PR #103308)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 13 09:51:19 PDT 2024
================
@@ -47,6 +47,8 @@ class BasicMatchContext {
bool match(SDValue N, unsigned Opcode) const {
return N->getOpcode() == Opcode;
}
+
+ static constexpr bool IsVP = false;
----------------
v01dXYZ wrote:
**mshockwave**: https://github.com/llvm/llvm-project/pull/102877#discussion_r1715581991
> have you explored the ideas of abstracting the number of operands instead? Specifically, having a match context to implement its own version of `unsigned getNumOperands(SDValue N)` (or something similar)?
https://github.com/llvm/llvm-project/pull/103308
More information about the llvm-commits
mailing list