tvm_tirx

Module codegen

Source
Expand description

Code generation: IR modules compiled into runtime modules.

Laid out like python/tvm_tirx/codegen/: the functions of its __init__.py are here, and the queries of the LLVM backend are in llvm. The code generator of one target kind is crate::target::build.

Modules§

  • The LLVM backend: intrinsics, the host system and the CPUs and features of LLVM targets.

Functions§

  • Compile module into a runtime module with the code generator of the kind of target (codegen.Build).
  • Whether the LLVM target target, or the current target, has the CPU feature feature; false for a target of another kind; an error when TIRx is built without LLVM, whose backend registers it (codegen.target_has_feature).