tvm_tirx::codegen

Function target_has_feature

Source
pub fn target_has_feature(
    feature: &str,
    target: Option<&Target>,
) -> Result<bool>
Expand description

Whether the LLVM target target, or the current target, has the CPU feature feature; false for a target of another kind; an error when TIRx is built without LLVM, whose backend registers it (codegen.target_has_feature).