[clang] [HLSL] Add matrix support for isnan() and isinf() (PR #195586)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 29 21:22:28 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];
----------------
farzonl wrote:
I'm not against adding custom type checking. That said it doesn't seem relevant to the matrix support. I've only seen this necessary for fixing issues with the scalar cases of the the hlsl clang builtins.
https://github.com/llvm/llvm-project/pull/195586
More information about the cfe-commits
mailing list