[PATCH] D112493: [OpenMP][NFCI] Record the location string as part of the ident_t

Johannes Doerfert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 25 14:56:30 PDT 2021


jdoerfert created this revision.
jdoerfert added reviewers: tianshilei1992, jhuber6, JonChesterfield.
Herald added subscribers: ormris, guansong, bollu, hiraditya, yaxunl.
jdoerfert requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, sstefan1.
Herald added projects: clang, OpenMP, LLVM.

When we want to inspect ident_t objects from the device on the host we
need to copy the string over. So far we did not know how long the string
was which prevented an efficient way of copying it. Given that we have
two unused fields in the struct we can just store the string size.

NOTE: Tests will be adjusted shortly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112493

Files:
  clang/lib/CodeGen/CGOpenMPRuntime.cpp
  llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
  llvm/lib/Transforms/IPO/OpenMPOpt.cpp
  openmp/libomptarget/DeviceRTL/include/Types.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112493.382133.patch
Type: text/x-patch
Size: 24420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211025/06f03761/attachment-0001.bin>


More information about the cfe-commits mailing list