tvm_tirx.codegen.llvm

Contents

tvm_tirx.codegen.llvm#

LLVM code generation and target information.

Functions#

lookup_intrinsic_id(name)

Lookup LLVM intrinsic id by name.

get_intrinsic_name(intrin_id)

Get the name of an intrinsic for a given id.

get_system_x86_vendor()

Get system x86 vendor info.

get_system_triple()

Get system host triple.

get_system_cpu()

Get system host cpu name.

get_targets()

Get LLVM target list.

get_cpu_archlist([target])

Get CPU architectures for the target's -mtriple.

get_cpu_features([target])

Get CPU features for the target's -mtriple and -mcpu and considering -mattr.

cpu_has_features(cpu_features[, target])

Check CPU features for the target's -mtriple and -mcpu and considering -mattr.

get_vector_width([target])

Get vector width from LLVM target's -mtriple and -mcpu and considering -mattr.

is_valid_cpu(cpu, triple)

Check if a CPU name is valid for the given LLVM triple.

version_major([allow_none])

Get the major LLVM version.