CHECK_EQ(from.lanes(), to.lanes());
CHECK_NOTNULL(target_machine_);
- const auto has_f16c = TargetHasFeature(*target_machine_, "f16c");
const auto has_avx512 = TargetHasFeature(*target_machine_, "avx512f");
if (from.lanes() >= 16 && has_avx512) {
});
}
+#if TVM_LLVM_VERSION <= 100
+ // The intrinsic x86_vcvtph2ps_256 was removed in LLVM 11.
+ const auto has_f16c = TargetHasFeature(*target_machine_, "f16c");
+
if (from.lanes() >= 8 && has_f16c) {
return CallVectorIntrin(
::llvm::Intrinsic::x86_vcvtph2ps_256, 8,
DataType::Int(16, from.lanes()), tir::CallNode::reinterpret, {op->value},
tir::CallNode::PureIntrinsic))});
}
+#endif
}
return CodeGenCPU::VisitExpr_(op);