MCPcopy Create free account
hub / github.com/apache/tvm / _llvm_version_major

Function _llvm_version_major

python/tvm/testing/env.py:354–359  ·  view source on GitHub ↗

Return the major LLVM version, or 0 if LLVM is unavailable.

()

Source from the content-addressed store, hash-verified

352
353@functools.cache
354def _llvm_version_major() -> int:
355 """Return the major LLVM version, or 0 if LLVM is unavailable."""
356 try:
357 return int(tvm.target.codegen.llvm_version_major())
358 except Exception: # pylint: disable=broad-except
359 return 0
360
361
362def has_llvm_min_version(major: int) -> bool:

Callers 1

has_llvm_min_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…