tvm_tirx.codegen.llvm.cpu_has_features#
- tvm_tirx.codegen.llvm.cpu_has_features(cpu_features, target=None)#
Check CPU features for the target’s -mtriple and -mcpu and considering -mattr.
- Parameters:
target (Target) – The TVM target.
cpu_features (str or Array) – CPU Feature(s) to check.
- Returns:
has_features (bool) – True if target CPU has the feature(s).