Merge pull request #3447 from bjorn3/remove_unused_inst_flags

Remove various unused things from the meta crate
This commit is contained in:
Chris Fallin
2021-10-13 11:31:31 -07:00
committed by GitHub
9 changed files with 24 additions and 126 deletions

View File

@@ -4,7 +4,6 @@ use crate::cdsl::instructions::{
AllInstructions, InstructionBuilder as Inst, InstructionGroupBuilder,
};
use crate::cdsl::operands::Operand;
use crate::cdsl::type_inference::Constraint::WiderOrEq;
use crate::cdsl::types::{LaneType, ValueType};
use crate::cdsl::typevar::{Interval, TypeSetBuilder, TypeVar};
use crate::shared::formats::Formats;
@@ -1815,8 +1814,7 @@ pub(crate) fn define(
&formats.unary,
)
.operands_in(vec![x])
.operands_out(vec![lo, hi])
.is_ghost(true),
.operands_out(vec![lo, hi]),
);
let Any128 = &TypeVar::new(
@@ -1851,8 +1849,7 @@ pub(crate) fn define(
&formats.binary,
)
.operands_in(vec![x, y])
.operands_out(vec![a])
.is_ghost(true),
.operands_out(vec![a]),
);
let c = &Operand::new("c", &TxN.as_bool()).with_doc("Controlling vector");
@@ -3520,8 +3517,7 @@ pub(crate) fn define(
&formats.unary,
)
.operands_in(vec![x])
.operands_out(vec![a])
.constraints(vec![WiderOrEq(Bool.clone(), BoolTo.clone())]),
.operands_out(vec![a]),
);
let BoolTo = &TypeVar::new(
@@ -3548,8 +3544,7 @@ pub(crate) fn define(
&formats.unary,
)
.operands_in(vec![x])
.operands_out(vec![a])
.constraints(vec![WiderOrEq(BoolTo.clone(), Bool.clone())]),
.operands_out(vec![a]),
);
let IntTo = &TypeVar::new(
@@ -3630,8 +3625,7 @@ pub(crate) fn define(
&formats.unary,
)
.operands_in(vec![x])
.operands_out(vec![a])
.constraints(vec![WiderOrEq(Int.clone(), IntTo.clone())]),
.operands_out(vec![a]),
);
let I16or32or64xN = &TypeVar::new(
@@ -3857,8 +3851,7 @@ pub(crate) fn define(
&formats.unary,
)
.operands_in(vec![x])
.operands_out(vec![a])
.constraints(vec![WiderOrEq(IntTo.clone(), Int.clone())]),
.operands_out(vec![a]),
);
ig.push(
@@ -3878,8 +3871,7 @@ pub(crate) fn define(
&formats.unary,
)
.operands_in(vec![x])
.operands_out(vec![a])
.constraints(vec![WiderOrEq(IntTo.clone(), Int.clone())]),
.operands_out(vec![a]),
);
let FloatTo = &TypeVar::new(
@@ -3912,8 +3904,7 @@ pub(crate) fn define(
&formats.unary,
)
.operands_in(vec![x])
.operands_out(vec![a])
.constraints(vec![WiderOrEq(FloatTo.clone(), Float.clone())]),
.operands_out(vec![a]),
);
ig.push(
@@ -3935,8 +3926,7 @@ pub(crate) fn define(
&formats.unary,
)
.operands_in(vec![x])
.operands_out(vec![a])
.constraints(vec![WiderOrEq(Float.clone(), FloatTo.clone())]),
.operands_out(vec![a]),
);
let F64x2 = &TypeVar::new(
@@ -4154,8 +4144,7 @@ pub(crate) fn define(
&formats.unary,
)
.operands_in(vec![x])
.operands_out(vec![lo, hi])
.is_ghost(true),
.operands_out(vec![lo, hi]),
);
let NarrowInt = &TypeVar::new(
@@ -4185,8 +4174,7 @@ pub(crate) fn define(
&formats.binary,
)
.operands_in(vec![lo, hi])
.operands_out(vec![a])
.is_ghost(true),
.operands_out(vec![a]),
);
// Instructions relating to atomic memory accesses and fences