LLVM 23.0.0git
llvm::offloading::intel Namespace Reference

Functions

LLVM_ABI Error containerizeOpenMPSPIRVImage (std::unique_ptr< MemoryBuffer > &Binary, llvm::Triple Triple, StringRef CompileOpts="", StringRef LinkOpts="")
 Containerizes an OpenMP SPIR-V image into an OffloadBinary image.

Function Documentation

◆ containerizeOpenMPSPIRVImage()

Error llvm::offloading::intel::containerizeOpenMPSPIRVImage ( std::unique_ptr< MemoryBuffer > & Binary,
llvm::Triple Triple,
StringRef CompileOpts = "",
StringRef LinkOpts = "" )

Containerizes an OpenMP SPIR-V image into an OffloadBinary image.

Parameters
BinaryThe SPIR-V binary to containerize.
TripleThe target triple to be associated with the image.
CompileOptsOptional compilation options.
LinkOptsOptional linking options.

Definition at line 408 of file Utility.cpp.

References assert(), llvm::offloading::containerizeImage(), llvm::StringRef::empty(), llvm::Triple::getVendor(), llvm::object::IMG_SPIRV, llvm::Triple::Intel, llvm::Triple::isSPIRV(), and llvm::object::OFK_OpenMP.