mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
remove F128
This commit is contained in:
parent
6f2e14cf18
commit
d287eafa3a
15 changed files with 7 additions and 73 deletions
|
@ -709,7 +709,6 @@ fn float_with_precision<'a, 'ctx, 'env>(
|
|||
match float_width {
|
||||
FloatWidth::F64 => env.context.f64_type().const_float(value).into(),
|
||||
FloatWidth::F32 => env.context.f32_type().const_float(value).into(),
|
||||
FloatWidth::F128 => todo!("F128 is not implemented"),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3034,7 +3033,6 @@ fn build_switch_ir<'a, 'ctx, 'env>(
|
|||
let int_type = match float_width {
|
||||
FloatWidth::F32 => env.context.i32_type(),
|
||||
FloatWidth::F64 => env.context.i64_type(),
|
||||
FloatWidth::F128 => env.context.i128_type(),
|
||||
};
|
||||
|
||||
builder
|
||||
|
|
|
@ -111,7 +111,6 @@ fn build_eq_builtin<'a, 'ctx, 'env>(
|
|||
use FloatWidth::*;
|
||||
|
||||
let name = match float_width {
|
||||
F128 => "eq_f128",
|
||||
F64 => "eq_f64",
|
||||
F32 => "eq_f32",
|
||||
};
|
||||
|
@ -276,7 +275,6 @@ fn build_neq_builtin<'a, 'ctx, 'env>(
|
|||
use FloatWidth::*;
|
||||
|
||||
let name = match float_width {
|
||||
F128 => "neq_f128",
|
||||
F64 => "neq_f64",
|
||||
F32 => "neq_f32",
|
||||
};
|
||||
|
|
|
@ -202,7 +202,6 @@ pub fn float_type_from_float_width<'a, 'ctx, 'env>(
|
|||
use FloatWidth::*;
|
||||
|
||||
match float_width {
|
||||
F128 => todo!("F128 is not implemented"),
|
||||
F64 => env.context.f64_type(),
|
||||
F32 => env.context.f32_type(),
|
||||
}
|
||||
|
|
|
@ -34,7 +34,6 @@ fn add_float_intrinsic<'ctx, F>(
|
|||
|
||||
check!(FloatWidth::F32, ctx.f32_type());
|
||||
check!(FloatWidth::F64, ctx.f64_type());
|
||||
// check!(IntWidth::F128, ctx.i128_type());
|
||||
}
|
||||
|
||||
fn add_int_intrinsic<'ctx, F>(
|
||||
|
|
|
@ -2124,13 +2124,6 @@ fn build_float_unary_op<'a, 'ctx, 'env>(
|
|||
"f64_to_f32",
|
||||
),
|
||||
(FloatWidth::F64, FloatWidth::F64) => arg.into(),
|
||||
(FloatWidth::F128, FloatWidth::F128) => arg.into(),
|
||||
(FloatWidth::F128, _) => {
|
||||
unimplemented!("I cannot handle F128 with Num.toFrac yet")
|
||||
}
|
||||
(_, FloatWidth::F128) => {
|
||||
unimplemented!("I cannot handle F128 with Num.toFrac yet")
|
||||
}
|
||||
}
|
||||
}
|
||||
NumCeiling => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue