[Openmp-commits] [PATCH] D142569: [OpenMP] Introduce kernel environment
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Aug 4 19:16:03 PDT 2023
tianshilei1992 added inline comments.
================
Comment at: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:4065
+ Constant *KernelEnvironmentGV = new GlobalVariable(
+ M, KernelEnvironment, /* IsConstant */ true, GlobalValue::ExternalLinkage,
+ KernelEnvironmentInitializer, KernelEnvironmentName,
----------------
dhruvachak wrote:
> Is there a reason this has to be ExternalLinkage? Can we use GlobalValue::WeakAnyLinkage here? The external linkage leads to multiply defined linker errors downstream on test cases that have a target region in a header file. For some reason, the problem does not repro on the main branch.
> @tianshilei1992 @jdoerfert
It has been fixed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142569/new/
https://reviews.llvm.org/D142569
More information about the Openmp-commits
mailing list