[PATCH] D89994: [libomptarget][nvptx] Undef, internal shared variables
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 22 17:12:58 PDT 2020
JonChesterfield added inline comments.
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:4794
CGM.getModule(), LLVMStaticTy,
- /*isConstant=*/false, llvm::GlobalValue::CommonLinkage,
- llvm::Constant::getNullValue(LLVMStaticTy),
+ /*isConstant=*/false, llvm::GlobalValue::InternalLinkage,
+ llvm::UndefValue::get(LLVMStaticTy),
----------------
Perhaps weak_any + undef?
Could use internal for symbols that may vary in size and weak_any for those that don't.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89994/new/
https://reviews.llvm.org/D89994
More information about the cfe-commits
mailing list