Return the major LLVM version, or 0 if LLVM is unavailable.
()
| 352 | |
| 353 | @functools.cache |
| 354 | def _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 | |
| 362 | def has_llvm_min_version(major: int) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…