tvm_tirx

Module target

Source
Expand description

Compilation targets.

The objects python/tvm_tirx/target/target.py defines. A Target has a TargetKind, keys, attributes and an optional host. The target functions of the Python package are here too: construction, the current target scope, the tag registry and the code generators of the kinds.

Structs§

  • Opaque: bytes [56, 152) of [24, 152) are not accounted for by reflected fields. Fields are read through the C ABI getters.
  • Opaque: bytes [72, 88) of [24, 88) are not accounted for by reflected fields. Fields are read through the C ABI getters.
  • The target, in effect as the current one while it is alive: Target::scope.

Functions§

  • 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.
  • The registered target tags, with their targets (target.TargetTagListTags).
  • Register the tag name for the target config describes, replacing a previous one only if override_, and return that target (target.TargetTagAddTag).