[clang] [clang] put EmitParmDecl in the target-requested AS (PR #181256)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 03:46:48 PST 2026
================
@@ -2706,14 +2700,16 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, ParamValue Arg,
bool DoStore = false;
bool IsScalar = hasScalarEvaluationKind(Ty);
bool UseIndirectDebugAddress = false;
+ LangAS DestLangAS = getLangOpts().OpenCL ? LangAS::opencl_private
----------------
arsenm wrote:
This shouldn't be modal on the language. Certainly not on OpenMP. The main sticking point in all of this stuff is that OpenCL was implemented incorrectly. OpenCL 1.x changes the behavior of deep types, instead of implicitly adding __private qualifiers like it should have
https://github.com/llvm/llvm-project/pull/181256
More information about the cfe-commits
mailing list