aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-01-16 10:56:24 -0600
committerJoseph Huber <jhuber6@vols.utk.edu>2023-01-16 13:13:45 -0600
commitf6ace23172e5930be0e7cc602f50e1e9c54d7a9a (patch)
tree312e1c62a1521ccbb6708269e49565428242426f /llvm/lib/CodeGen/MachineFunction.cpp
parenta8be1a3dd3b61fb8aef19b5c14737edc6211c5b7 (diff)
downloadllvm-f6ace23172e5930be0e7cc602f50e1e9c54d7a9a.zip
llvm-f6ace23172e5930be0e7cc602f50e1e9c54d7a9a.tar.gz
llvm-f6ace23172e5930be0e7cc602f50e1e9c54d7a9a.tar.bz2
[amdgpu-arch] Dynamically load the HSA runtime if not found during the build
We use the `amdgpu-arch` tool to query the installed GPUs at runtime. One problem is that this tool is currently not build if the person building the LLVM binary does not have the HSA runtime on their system. This means that if someone built and distrubted an installation of LLVM without HSA, then the user will not be able to use it even if they have it on their system. This patch makes us build this tool unconditionally and adds extra logic to dynamically load HSA if it's present. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D141859
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions