[PATCH] D139166: [OPENMP51] Codegen support for error directive.

Jennifer Yu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 8 10:47:31 PST 2022


jyu2 added inline comments.


================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.h:334
   llvm::Value *emitUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc,
-                                  unsigned Flags = 0);
+                                  unsigned Flags = 0, bool EmitLoc = false);
 
----------------
ABataev wrote:
> Why do you need this location? To output it for the user in the runtime library call?
Thanks Alexey!
Yes.  When run time emit error, the location will be presented like:

OMP: Warning #283: test_error_directive.cpp:6:1: Encountered user-directed warning: 2 or more procs required..

...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139166



More information about the cfe-commits mailing list