aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__algorithm/remove.h
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2023-12-18 09:28:06 -0600
committerGitHub <noreply@github.com>2023-12-18 09:28:06 -0600
commit1580877555f91c5ab7eed7926bb984b2f6b70bb4 (patch)
treea4d754115dbec62593f9826b087890b78fc9429e /libcxx/include/__algorithm/remove.h
parent27767959a5e53ffa3e91ea011f8c44eeeaf59132 (diff)
downloadllvm-1580877555f91c5ab7eed7926bb984b2f6b70bb4.zip
llvm-1580877555f91c5ab7eed7926bb984b2f6b70bb4.tar.gz
llvm-1580877555f91c5ab7eed7926bb984b2f6b70bb4.tar.bz2
[Libomptarget] Remove bitcode image map used for JIT processing (#75672)
Summary: Libomptarget supports JIT by treating an LLVM-IR file as a regular input image. The handling here used a global map to keep track of triples once it was parsed. This was done to same time, however this created a global constructor as well as an extra mutex to handle it. This patch removes the use of this map. Instead, we simply use the file magic to perform a quick check if the input image is valid bitcode. If not, we then create a lazy module. This should roughly equivalent to the old handling that create an IR symbol table. Here we can prevent the module from materializing everything but the single triple metadata we read in later.
Diffstat (limited to 'libcxx/include/__algorithm/remove.h')
0 files changed, 0 insertions, 0 deletions