-O gen-C++ support for pattern vector comparisons

This commit is contained in:
Vern Paxson 2025-03-07 09:55:15 -08:00
parent 9f5fba7003
commit f48f3af79a
3 changed files with 40 additions and 1 deletions

View file

@ -1156,8 +1156,12 @@ string CPPCompile::GenVectorOp(const Expr* e, string op1, string op2, const char
auto invoke = string(vec_op) + "__CPP(" + op1 + ", " + op2 + ")";
if ( op2_t->Yield()->Tag() == TYPE_STRING )
auto tag2 = op2_t->Yield()->Tag();
if ( tag2 == TYPE_STRING )
return string("str_vec_op_") + invoke;
if ( tag2 == TYPE_PATTERN )
return string("pat_vec_op_") + invoke;
auto gen = string("vec_op_") + invoke;