[clang] [HLSL] Add matrix support for isnan() and isinf() (PR #195586)
Kaitlin Peng via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 30 18:20:59 PDT 2026
================
@@ -2200,7 +2200,8 @@ checkMathBuiltinElementType(Sema &S, SourceLocation Loc, QualType ArgTy,
switch (ArgTyRestr) {
case Sema::EltwiseBuiltinArgTyRestriction::None:
- if (!ArgTy->getAs<VectorType>() && !isValidMathElementType(ArgTy)) {
+ if (!ArgTy->getAs<VectorType>() && !ArgTy->getAs<MatrixType>() &&
+ !isValidMathElementType(ArgTy)) {
return S.Diag(Loc, diag::err_builtin_invalid_arg_type)
<< ArgOrdinal << /* vector */ 2 << /* integer */ 1 << /* fp */ 1
----------------
kmpeng wrote:
Sorry this change was much bigger than anticipated and affected lots of files unrelated to the PR. Could you revert it? We'll track fixing the diagnostic with [this separate issue](https://github.com/llvm/llvm-project/issues/189147).
https://github.com/llvm/llvm-project/pull/195586
More information about the cfe-commits
mailing list