[clang] [HLSL] Make HLSLAttributedResourceType canonical and add code paths to convert HLSL types to DirectX target types (PR #110327)
Greg Roth via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 9 16:02:48 PDT 2024
================
@@ -11533,6 +11539,18 @@ QualType ASTContext::mergeTypes(QualType LHS, QualType RHS, bool OfBlockPointer,
return {};
return LHS;
}
+ case Type::HLSLAttributedResource: {
+ const HLSLAttributedResourceType *LHSTy =
+ LHS->castAs<HLSLAttributedResourceType>();
+ const HLSLAttributedResourceType *RHSTy =
+ RHS->castAs<HLSLAttributedResourceType>();
+
+ if (LHSTy->getWrappedType() == RHSTy->getWrappedType() &&
----------------
pow2clk wrote:
Not objecting so much as confirming I understand, but isn't the wrapped type always the same `__hlsl_resource_t`?
https://github.com/llvm/llvm-project/pull/110327
More information about the cfe-commits
mailing list