tvm_tirx::target

Function build

Source
pub fn build(
    kind: &str,
    module: impl Into<IRModule>,
    target: impl Into<Target>,
) -> Result<Module>
Expand description

Generate the code of module with the code generator target.build.<kind>, such as llvm, c, cuda, cuda_host or nvptx; an error when it is not built in.

crate::codegen::build_module picks the code generator of the target kind.