[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:58 PST 2025
================
@@ -781,14 +775,17 @@ void CGHLSLRuntime::emitEntryFunction(const FunctionDecl *FD,
}
const ParmVarDecl *PD = FD->getParamDecl(Param.getArgNo() - SRetOffset);
+ auto AttrBegin = PD->specific_attr_begin<HLSLAppliedSemanticAttr>();
+ auto AttrEnd = PD->specific_attr_end<HLSLAppliedSemanticAttr>();
----------------
s-perron wrote:
Could you move these into the else block closer to their use?
https://github.com/llvm/llvm-project/pull/166796
More information about the cfe-commits
mailing list