[general] hmma baseline setup

This commit is contained in:
Philippe Tillet
2019-06-05 14:43:38 -07:00
parent 49fcfd6fc7
commit f58c9a4d2b
14 changed files with 50 additions and 33 deletions

View File

@@ -69,6 +69,12 @@ void node::implicit_cast(ir::builder &builder, ir::value *&lhs, ir::value *&rhs,
to_convert = explicit_cast(builder, to_convert, builder.get_float_ty());
is_float = true;
}
// One operand is half
else if(left_ty->is_half_ty() || right_ty->is_half_ty()){
ir::value *&to_convert = left_ty->is_half_ty()?rhs:lhs;
to_convert = explicit_cast(builder, to_convert, builder.get_half_ty());
is_float = true;
}
// Both operands are integers
else if(left_ty->is_integer_ty() && right_ty->is_integer_ty()){
is_int = true;