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

Function has_llvm_min_version

python/tvm/testing/env.py:362–364  ·  view source on GitHub ↗

True if LLVM is available and its major version is at least ``major``.

(major: int)

Source from the content-addressed store, hash-verified

360
361
362def has_llvm_min_version(major: int) -> bool:
363 """True if LLVM is available and its major version is at least ``major``."""
364 return has_llvm() and _llvm_version_major() >= major
365
366
367@functools.cache

Callers

nothing calls this directly

Calls 2

has_llvmFunction · 0.85
_llvm_version_majorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…