cranelift: Remove booleans (#5031)
Remove the boolean types from cranelift, and the associated instructions breduce, bextend, bconst, and bint. Standardize on using 1/0 for the return value from instructions that produce scalar boolean results, and -1/0 for boolean vector elements. Fixes #3205 Co-authored-by: Afonso Bordado <afonso360@users.noreply.github.com> Co-authored-by: Ulrich Weigand <ulrich.weigand@de.ibm.com> Co-authored-by: Chris Fallin <chris@cfallin.org>
This commit is contained in:
@@ -769,9 +769,6 @@ fn typeset_to_string(ts: &TypeSet) -> String {
|
||||
if !ts.floats.is_empty() {
|
||||
result += &format!(", floats={}", iterable_to_string(&ts.floats));
|
||||
}
|
||||
if !ts.bools.is_empty() {
|
||||
result += &format!(", bools={}", iterable_to_string(&ts.bools));
|
||||
}
|
||||
if !ts.specials.is_empty() {
|
||||
result += &format!(", specials=[{}]", iterable_to_string(&ts.specials));
|
||||
}
|
||||
@@ -804,7 +801,6 @@ pub(crate) fn gen_typesets_table(type_sets: &UniqueTable<TypeSet>, fmt: &mut For
|
||||
gen_bitset(&ts.dynamic_lanes, "dynamic_lanes", 16, fmt);
|
||||
gen_bitset(&ts.ints, "ints", 8, fmt);
|
||||
gen_bitset(&ts.floats, "floats", 8, fmt);
|
||||
gen_bitset(&ts.bools, "bools", 8, fmt);
|
||||
gen_bitset(&ts.refs, "refs", 8, fmt);
|
||||
});
|
||||
fmt.line("},");
|
||||
|
||||
Reference in New Issue
Block a user