Function tvm::codegen::PackImportsToObjectFile#
Defined in File codegen.h
Function Documentation#
-
void tvm::codegen::PackImportsToObjectFile(const ffi::Module &mod, bool system_lib, const ffi::String &llvm_target_string, const ffi::String &file_name, const ffi::String &c_symbol_prefix = "")#
Pack imported device libraries into an object file using LLVM.
The generated object can be linked with the host library so that the DSO loader discovers its imported modules. Requires LLVM code generation support.
- Parameters:
mod – The host module with imports.
system_lib – Whether to expose the packed imports as a system library.
llvm_target_string – Full LLVM target specification, including cross-compilation options.
file_name – Output path; its extension selects the object format.
c_symbol_prefix – Optional blob symbol prefix, valid only for system libraries.