[clang] [HLSL] Add matrix support for isnan() and isinf() (PR #195586)

Kaitlin Peng via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 6 12:56:42 PDT 2026


================
@@ -5709,13 +5709,13 @@ def HLSLFrac : LangBuiltin<"HLSL_LANG"> {
 
 def HLSLIsinf : LangBuiltin<"HLSL_LANG"> {
   let Spellings = ["__builtin_hlsl_elementwise_isinf"];
-  let Attributes = [NoThrow, Const];
+  let Attributes = [NoThrow, Const, CustomTypeChecking];
----------------
kmpeng wrote:

Ah I see. I think it's reasonable to keep it in this PR.

https://github.com/llvm/llvm-project/pull/195586


More information about the cfe-commits mailing list