[Openmp-commits] [PATCH] D130927: [Libomptarget] Replace std::vector with llvm::SmallVector

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Aug 1 12:13:23 PDT 2022


jhuber6 created this revision.
jhuber6 added reviewers: JonChesterfield, tianshilei1992, jdoerfert, ronlieb.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

The runtime makes some use of `std::vector` data structures. We should
be able to replace these trivially with `llvm::SmallVector` instead.
This should allow us to avoid heap allocations in the majority of cases
now.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130927

Files:
  openmp/libomptarget/include/device.h
  openmp/libomptarget/include/rtl.h
  openmp/libomptarget/src/LegacyAPI.cpp
  openmp/libomptarget/src/omptarget.cpp
  openmp/libomptarget/src/private.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130927.449091.patch
Type: text/x-patch
Size: 8693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220801/87e77e6a/attachment.bin>


More information about the Openmp-commits mailing list