[clang] [HLSL] Rework semantic handling as attributes (PR #166796)

Steven Perron via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 10 09:01:57 PST 2025


================
@@ -146,22 +146,26 @@ class CGHLSLRuntime {
 
   llvm::Value *emitSystemSemanticLoad(llvm::IRBuilder<> &B, llvm::Type *Type,
                                       const clang::DeclaratorDecl *Decl,
-                                      Attr *Semantic,
+                                      HLSLSemanticBaseAttr *Semantic,
----------------
s-perron wrote:

Why use the base? Shouldn't this only be needed for an applied semantic? 

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


More information about the cfe-commits mailing list