[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 29 06:47:17 PDT 2025
================
@@ -2565,10 +2565,38 @@ static bool interp__builtin_elementwise_int_binop(
return true;
}
+ const auto *VT = Call->getArg(0)->getType()->castAs<VectorType>();
+ assert(VT->getElementType()->isIntegralOrEnumerationType());
+ PrimType ElemT = *S.getContext().classify(VT->getElementType());
+ unsigned NumElems = VT->getNumElements();
+
----------------
RKSimon wrote:
Add `bool DestUnsigned = Call->getType()->isUnsignedIntegerOrEnumerationType();` here and pull out of the code below
https://github.com/llvm/llvm-project/pull/155542
More information about the cfe-commits
mailing list