tvm_tirx.codegen.llvm.is_valid_cpu#
- tvm_tirx.codegen.llvm.is_valid_cpu(cpu, triple)#
Check if a CPU name is valid for the given LLVM triple.
- Parameters:
cpu (str) – The CPU name to check (e.g. “apple-m1”).
triple (str) – The LLVM target triple (e.g. “arm64-apple-macos”).
- Returns:
is_valid (bool) – True if the CPU name is recognized by LLVM for the given triple.