Stop pushing and popping names in the prologue that no CCCL header spells #12806
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 190 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.314
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12806"
general
weight: 0.35
Jacobfaib
Description
A macro can only break code that spells its name. No libcu++ or cudax header spells these names between
<cuda/std/__cccl/prologue.h>and<cuda/std/__cccl/epilogue.h>, so this PR stops pushing and popping them around every header to keep the prologue cheap:the
__declspecmodifiersappdomain,code_seg,dllexport,hybrid_patchable,jitintrinsic,naked,nothrow,novtable,no_sanitize_address,process,property,restrict,safebuffers,selectany,spectre, anduuidthe
[[msvc::...]]attributesflatten,forceinline,forceinline_calls,noinline_calls, andno_tls_guard__callback, which<sal.h>definesdllexportis only spelled by_CCCL_VISIBILITY_EXPORT, which only the C parallel library uses, outside of any prologue. The other names only appear in comments and string literals. Onlyminandmaxremain, because<windows.h>defines them and the headers call functions likenumeric_limits<T>::max().To double check, I defined each of the dropped names as a marker macro and preprocessed every public libcu++ and cudax header for host and device with nvcc 13.4. No marker ends up on a line of a CCCL header, while a control name like
__streamshows up in 75 of them.The prologue, the epilogue, and
prologue_epilogue.compile.pass.cppare regenerated withlibcudacxx/codegen/generate_prologue_epilogue.py.Checklist