pub fn build(
kind: &str,
module: impl IntoArg<IRModule>,
target: impl IntoArg<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.
crate::codegen::build_module picks the code generator of the target kind.
ยงErrors
Returns an error if the code generator is not built in, or the error it raises.