[clang] [HLSL] add IsLineVectorLayoutCompatible type trait (PR #113730)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 30 11:11:40 PDT 2024
================
@@ -8459,6 +8460,12 @@ inline bool Type::isHLSLBuiltinIntangibleType() const {
false;
}
+inline bool Type::isHLSLLineVectorLayoutCompatibleType() const {
+#define HLSL_LINE_VECTOR_LAYOUT_COMPATIBLE_TYPE(Name, Id, SingletonId) \
+ is##Id##Type() ||
+ return isHLSLAttributedResourceType();
+}
----------------
hekota wrote:
This seems wrong.
https://github.com/llvm/llvm-project/pull/113730
More information about the cfe-commits
mailing list