LLVM 22.0.0git
OffloadWrapper.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Compiler.h"
#include <string>

Go to the source code of this file.

Classes

struct  llvm::offloading::SYCLJITOptions

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::offloading

Typedefs

using llvm::offloading::EntryArrayTy = std::pair<GlobalVariable *, GlobalVariable *>

Functions

LLVM_ABI llvm::Error llvm::offloading::wrapOpenMPBinaries (llvm::Module &M, llvm::ArrayRef< llvm::ArrayRef< char > > Images, EntryArrayTy EntryArray, llvm::StringRef Suffix="", bool Relocatable=false)
 Wraps the input device images into the module M as global symbols and registers the images with the OpenMP Offloading runtime libomptarget.
LLVM_ABI llvm::Error llvm::offloading::wrapCudaBinary (llvm::Module &M, llvm::ArrayRef< char > Images, EntryArrayTy EntryArray, llvm::StringRef Suffix="", bool EmitSurfacesAndTextures=true)
 Wraps the input fatbinary image into the module M as global symbols and registers the images with the CUDA runtime.
LLVM_ABI llvm::Error llvm::offloading::wrapHIPBinary (llvm::Module &M, llvm::ArrayRef< char > Images, EntryArrayTy EntryArray, llvm::StringRef Suffix="", bool EmitSurfacesAndTextures=true)
 Wraps the input bundled image into the module M as global symbols and registers the images with the HIP runtime.
LLVM_ABI llvm::Error llvm::offloading::wrapSYCLBinaries (llvm::Module &M, llvm::ArrayRef< char > Buffer, SYCLJITOptions Options=SYCLJITOptions())
 Wraps OffloadBinaries in the given Buffers into the module M as global symbols and registers the images with the SYCL Runtime.