[clang] [HLSL] Implement `SpirvType` and `SpirvOpaqueType` (PR #134034)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 25 11:26:11 PDT 2025


================
@@ -4855,6 +4857,17 @@ LinkageInfo LinkageComputer::computeTypeLinkageInfo(const Type *T) {
     return computeTypeLinkageInfo(cast<HLSLAttributedResourceType>(T)
                                       ->getContainedType()
                                       ->getCanonicalTypeInternal());
+  case Type::HLSLInlineSpirv:
+    return LinkageInfo::external();
+    {
----------------
AaronBallman wrote:

I don't know enough about HLSL to know what the right answer is here, so hopefully @llvm-beanz can step in for that.

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


More information about the cfe-commits mailing list