[clang] [HLSL] Implement '__builtin_is_intangible' type trait (PR #104544)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 16 06:02:26 PDT 2024


================
@@ -660,6 +660,9 @@ KEYWORD(out                         , KEYHLSL)
 #define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) KEYWORD(Name, KEYHLSL)
 #include "clang/Basic/HLSLIntangibleTypes.def"
 
+// HLSL Type traits
+TYPE_TRAIT_1(__builtin_is_intangible, IsIntangibleType, KEYHLSL)
----------------
AaronBallman wrote:

Should this be named `__builtin_hlsl_is_intangible` so it's clear this is HLSL-specific?

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


More information about the cfe-commits mailing list