[PATCH] D150860: [OpenMP] Change clang emitTargetDataCalls to use OMPIRBuilder

Jan-Patrick Lehr via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 08:09:34 PDT 2023


jplehr added inline comments.


================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:10412
+                          CGF.Builder.GetInsertPoint());
+  llvm::OpenMPIRBuilder::LocationDescription ompLoc(CodeGenIP);
 
----------------
capitalize here?


================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:10424
+  llvm::Value *IfCondVal = nullptr;
+  bool CondConstant;
+  if (IfCond) {
----------------
I think this can (and should be?) moved into the if in the following line as it is not used outside that scope


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150860



More information about the llvm-commits mailing list