[clang] [HLSL] Make HLSLAttributedResourceType canonical and add code paths to convert HLSL types to DirectX target types (PR #110327)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 13:13:53 PDT 2024


================
@@ -13672,6 +13690,9 @@ static QualType getCommonNonSugarTypeNode(ASTContext &Ctx, const Type *X,
         TX->getDepth(), TX->getIndex(), TX->isParameterPack(),
         getCommonDecl(TX->getDecl(), TY->getDecl()));
   }
+  case Type::HLSLAttributedResource: {
----------------
llvm-beanz wrote:

Do we expect these types to be sugared? It seems like we should maybe make these "sugar-free" above? The only case I can think of where we might have sugar would be if the component type was sugared... not sure.

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


More information about the cfe-commits mailing list