OffloadWrapper.h 832 B

1234567891011121314151617181920
  1. //===- OffloadWrapper.h -------------------------------------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_CLANG_TOOLS_CLANG_LINKER_WRAPPER_OFFLOAD_WRAPPER_H
  9. #define LLVM_CLANG_TOOLS_CLANG_LINKER_WRAPPER_OFFLOAD_WRAPPER_H
  10. #include "llvm/ADT/ArrayRef.h"
  11. #include "llvm/IR/Module.h"
  12. /// Wrap the input device images into the module \p M as global symbols and
  13. /// registers the images with the OpenMP Offloading runtime libomptarget.
  14. llvm::Error wrapBinaries(llvm::Module &M,
  15. llvm::ArrayRef<llvm::ArrayRef<char>> Images);
  16. #endif