diff options
author | Joseph Huber <35342157+jhuber6@users.noreply.github.com> | 2023-09-27 16:18:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 16:18:55 -0500 |
commit | 381cc48a8e03e271e56cf3b97384c9077c3b214c (patch) | |
tree | b5489d1a1cfef77d2c5455154379a7c4e6e7a652 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 050bb26174cd9eb60c3c192476091494604f9a5d (diff) | |
download | llvm-381cc48a8e03e271e56cf3b97384c9077c3b214c.zip llvm-381cc48a8e03e271e56cf3b97384c9077c3b214c.tar.gz llvm-381cc48a8e03e271e56cf3b97384c9077c3b214c.tar.bz2 |
[OpenMP] Implicitly include the 'cgpu' and 'mgpu' libraries for OpenMP (#67557)
Summary:
[The LLVM C library for GPUs](https://libc.llvm.org/gpu/) supports
standard function calls on the GPU that users are familiar with.
Currently, this requires that users include these manually. The support
for this library is dependent upon whether or not associated LLVM build
was built with the GPU C library support. This patch implicitly adds
these for an OpenMP offloading compilation if we find that the toolchain
contains the GPU declarations that allow us to use this.
I do not know how to test this, given that it requires information from
the resource directory in the install. That means it won't be present
for any internal tests. It works when I test it and the idea is simple
enough so it should be simple enough.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions