jsjodin requested changes to this revision.
jsjodin added inline comments.
This revision now requires changes to proceed.


================
Comment at: llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h:817
+  /// LLVMModule.
+  llvm::Constant *getAddrOfDeclareTargetVar(
+      llvm::OffloadEntriesInfoManager::OMPTargetGlobalVarEntryKind
----------------
No llvm:: prefix needed.


================
Comment at: llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h:876
+      uint64_t Line, llvm::StringRef MangledName, llvm::Module *LlvmModule,
+      std::vector<llvm::GlobalVariable *> &GeneratedRefs, bool OpenMPSIMD,
+      bool OpenMPIsDevice, std::vector<llvm::Triple> TargetTriple,
----------------
Instead of passing in the various components I think it is better to pass in 
TargetRegionEntryInfo in case the inputs to create one changes. That way we 
avoid changing the parameters to this and the other functions.


================
Comment at: llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h:877
+      std::vector<llvm::GlobalVariable *> &GeneratedRefs, bool OpenMPSIMD,
+      bool OpenMPIsDevice, std::vector<llvm::Triple> TargetTriple,
+      std::function<llvm::Constant *()> GlobalInitializer,
----------------
Passing OpenMPISDevice shouldn't be necessary, the IsEmbedded flag in the 
Config should be used instead.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149162/new/

https://reviews.llvm.org/D149162

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to