Expand description
The LLVM backend. Queries of LLVM intrinsics, the host CPU and the CPUs and features of LLVM
targets, which libtvm_tirx_llvm_backend registers when it is loaded. Target-dependent
queries require an explicit target.
Functionsยง
- cpu_
has_ feature - Return whether the CPU of
targethas the featurefeature(codegen.llvm_cpu_has_feature). - get_
cpu_ archlist - Return the CPUs of the
-mtripleoftarget(codegen.llvm_get_cpu_archlist). - get_
cpu_ features - Return the CPU features of the
-mtriple,-mcpuand-mattroftarget(codegen.llvm_get_cpu_features). - get_
default_ target_ triple - Return the default LLVM target triple of the host (
tvm.codegen.llvm.GetDefaultTargetTriple). - get_
host_ cpu_ features - Return the features of the host CPU, each with a boolean saying whether it is enabled, or none
when LLVM cannot tell (
tvm.codegen.llvm.GetHostCPUFeatures). - get_
host_ cpu_ name - Return the LLVM name of the host CPU (
tvm.codegen.llvm.GetHostCPUName). - get_
intrinsic_ name - Return the name of the LLVM intrinsic
intrin_id(codegen.llvm_get_intrinsic_name). - get_
process_ triple - Return the LLVM target triple of the running process (
tvm.codegen.llvm.GetProcessTriple). - get_
system_ cpu - Return the LLVM name of the host CPU (
codegen.llvm_get_system_cpu). - get_
system_ triple - Return the default LLVM target triple of the host (
codegen.llvm_get_system_triple). - get_
system_ x86_ vendor - Return the vendor of the host x86 CPU:
intel,amd,unknown, orunimplementedon other CPUs (codegen.llvm_get_system_x86_vendor). - get_
targets - Return the targets LLVM was built with (
codegen.llvm_get_targets). - get_
vector_ width - Return the vector width of the CPU of
targetin bits, or -1 for a target that is notllvm(codegen.llvm_get_vector_width). - is_
valid_ cpu - Return whether LLVM knows the CPU
cpufor the target tripletriple(codegen.llvm_is_valid_cpu). - lookup_
intrinsic_ id - Return the id of the LLVM intrinsic
name, or 0 when there is none (codegen.llvm_lookup_intrinsic_id). - target_
enabled - Return whether LLVM can create a target machine for the target string
target, such as"llvm -mtriple=aarch64-linux-gnu"(codegen.llvm_target_enabled). - version_
major - Return the major version of LLVM (
codegen.llvm_version_major).