================
@@ -20,17 +20,18 @@ namespace llvm {
namespace offloading {
using EntryArrayTy = std::pair<Constant *, Constant *>;
/// Wraps the input device images into the module \p M as global symbols and
-/// registers the images with the OpenMP or OpenACC Offloading runtime
-/// libomptarget or libacctarget.
+/// registers the images with the OpenMP (libomptarget) or OpenACC
+/// (libacctarget) offloading runtime, depending on \p Kind.
/// \param EntryArray Optional pair pointing to the begin and end of the
/// `__tgt_offload_entry` array.
/// \param Suffix An optional suffix appended to the emitted symbols.
/// \param Relocatable Indicate if we need to change the offloading section to
/// create a relocatable object.
+/// \param Kind The producer kind (either OpenMP or OpenACC).
LLVM_ABI llvm::Error
-wrapOmpAccBinaries(llvm::Module &M, llvm::ArrayRef<llvm::ArrayRef<char>>
Images,
- EntryArrayTy EntryArray, llvm::StringRef Suffix,
- bool Relocatable, object::OffloadKind Kind);
+wrapLLVMBinaries(llvm::Module &M, llvm::ArrayRef<llvm::ArrayRef<char>> Images,
----------------
ivanradanov wrote:
That makes sense. I reverted the names in the source code to OmpAcc
https://github.com/llvm/llvm-project/pull/239432
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits