tvm
|
namespace for target translation and codegen. More...
Functions | |
runtime::Module | Build (IRModule mod, Target target) |
Build a module from array of lowered function. More... | |
std::string | PackImportsToC (const runtime::Module &m, bool system_lib) |
Pack imported device library to a C file. Compile the C file and link with the host library will allow the DSO loader to automatically discover and import the dependency from the shared library. More... | |
runtime::Module | PackImportsToLLVM (const runtime::Module &m, bool system_lib, const std::string &target_triple) |
Pack imported device library to a LLVM module. Compile the LLVM module and link with the host library will allow the DSO loader to automatically discover and import the dependency from the shared library. More... | |
namespace for target translation and codegen.
runtime::Module tvm::codegen::Build | ( | IRModule | mod, |
Target | target | ||
) |
Build a module from array of lowered function.
mod | The Module to be built |
target | The target to be built. |
std::string tvm::codegen::PackImportsToC | ( | const runtime::Module & | m, |
bool | system_lib | ||
) |
Pack imported device library to a C file. Compile the C file and link with the host library will allow the DSO loader to automatically discover and import the dependency from the shared library.
m | The host module with the imports. |
system_lib | Whether expose as system library. |
runtime::Module tvm::codegen::PackImportsToLLVM | ( | const runtime::Module & | m, |
bool | system_lib, | ||
const std::string & | target_triple | ||
) |
Pack imported device library to a LLVM module. Compile the LLVM module and link with the host library will allow the DSO loader to automatically discover and import the dependency from the shared library.
m | The host module with the imports. |
system_lib | Whether expose as system library. |
target_triple | LLVM target triple |