[clang] [llvm] [Offload] Introduce the concept of "default streams" (PR #95371)

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 13 01:38:43 PDT 2024


================
@@ -1125,6 +1125,22 @@ void Clang::AddPreprocessingOptions(Compilation &C, const JobAction &JA,
     CmdArgs.push_back("__clang_openmp_device_functions.h");
   }
 
+  if (Args.hasArg(options::OPT_foffload_via_llvm)) {
+    // Add llvm_wrappers/* to our system include path.  This lets us wrap
+    // standard library headers and other headers.
+    SmallString<128> P(D.ResourceDir);
+    llvm::sys::path::append(P, "include");
+    llvm::sys::path::append(P, "llvm_offload_wrappers");
----------------
jdoerfert wrote:

Sorry, I pushed this first on top of old commits. This was fixed and I updated all my PRs.

Since I'm not able to do stacked commits, basically only review the latest one in each PR.

https://github.com/llvm/llvm-project/pull/95371


More information about the cfe-commits mailing list