|
LLVM 24.0.0git
|
#include "llvm/Frontend/Offloading/OffloadWrapper.h"#include "llvm/ADT/ArrayRef.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringRef.h"#include "llvm/ADT/Twine.h"#include "llvm/BinaryFormat/Magic.h"#include "llvm/Frontend/Offloading/Utility.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/GlobalVariable.h"#include "llvm/IR/IRBuilder.h"#include "llvm/IR/LLVMContext.h"#include "llvm/IR/Module.h"#include "llvm/IR/Type.h"#include "llvm/Object/OffloadBinary.h"#include "llvm/Support/Error.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/TargetParser/Triple.h"#include "llvm/Transforms/Utils/ModuleUtils.h"#include <utility>Go to the source code of this file.
Functions | |
| static Error | wrapOmpAccBinaries (Module &M, ArrayRef< ArrayRef< char > > Images, offloading::EntryArrayTy EntryArray, StringRef Suffix, bool Relocatable, StringRef RegFuncName, StringRef UnregFuncName) |
| Wraps the images and registers them with the runtime through the given registration entry points. | |
|
static |
Wraps the images and registers them with the runtime through the given registration entry points.
Shared by the OpenMP and OpenACC wrappers, which differ only in the names of those entry points.
Definition at line 719 of file OffloadWrapper.cpp.
References llvm::createStringError(), llvm::inconvertibleErrorCode(), and llvm::Error::success().
Referenced by llvm::offloading::wrapOpenACCBinaries(), and llvm::offloading::wrapOpenMPBinaries().