arsenm added inline comments.
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:1996-1997
+ llvm::GlobalValue *GV) {
+ std::optional<OMPDeclareTargetDeclAttr *> ActiveAttr =
+ OMPDeclareTargetDeclAttr::getActiveAttr(FD);
+
----------------
not a huge fan of std::optional<pointer>
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:2017
+ /*isConstant=*/true,
+ llvm::GlobalValue::ExternalLinkage, GV,
Name);
+ Addr->setVisibility(llvm::GlobalValue::ProtectedVisibility);
----------------
target global address space
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:2022
+ OMPBuilder.OffloadInfoManager.registerDeviceGlobalVarEntryInfo(
+ Name, Addr, CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy) / 8,
+ llvm::OffloadEntriesInfoManager::OMPTargetGlobalVarEntryIndirect,
----------------
isn't there a store size?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157738/new/
https://reviews.llvm.org/D157738
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits