aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-01-09 14:01:52 -0600
committerGitHub <noreply@github.com>2024-01-09 14:01:52 -0600
commitc7c68f1764ddd38d940946007c634b4bacb902b2 (patch)
treea26598b24df891365564b965722ff4fee701c589 /flang/lib/Frontend/CompilerInvocation.cpp
parentb6d1577071017f1ba3f12bfe30c1746ffaf5d98d (diff)
downloadllvm-c7c68f1764ddd38d940946007c634b4bacb902b2.zip
llvm-c7c68f1764ddd38d940946007c634b4bacb902b2.tar.gz
llvm-c7c68f1764ddd38d940946007c634b4bacb902b2.tar.bz2
[Libomptarget] Allow the CPU targets to be built without libffi (#77495)
Summary: The CPU targets currently rely on `libffi` to invoke the "kernel" functions. Previously we would not build these if this dependency was not found. This patch copies th eapproach used for things like CUDA and HSA to dynamically load this if it is not found. The one sketchy thing this does is hard-code the default ABI for the target. These are normally defined on a per-file basis in the FFI source, so I had to fish out the expected values. We only use two types, so ideally we will always be able to use the default ABI. It's possible we could remove this dependency entirely in the future as well.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions