forked from M-Labs/nac3
core/model: remove extra generic params
This commit is contained in:
parent
133e25de50
commit
5acba1c4ef
|
@ -164,7 +164,7 @@ impl IntModel<Bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> {
|
impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> {
|
||||||
pub fn s_extend_or_bit_cast<NewN: IntKind<'ctx>, G: CodeGenerator + ?Sized>(
|
pub fn s_extend_or_bit_cast<NewN: IntKind<'ctx>>(
|
||||||
&self,
|
&self,
|
||||||
tyctx: TypeContext<'ctx>,
|
tyctx: TypeContext<'ctx>,
|
||||||
ctx: &CodeGenContext<'ctx, '_>,
|
ctx: &CodeGenContext<'ctx, '_>,
|
||||||
|
@ -174,7 +174,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> {
|
||||||
IntModel(to_int_kind).s_extend_or_bit_cast(tyctx, ctx, self.value, name)
|
IntModel(to_int_kind).s_extend_or_bit_cast(tyctx, ctx, self.value, name)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn truncate<NewN: IntKind<'ctx>, G: CodeGenerator + ?Sized>(
|
pub fn truncate<NewN: IntKind<'ctx>>(
|
||||||
&self,
|
&self,
|
||||||
tyctx: TypeContext<'ctx>,
|
tyctx: TypeContext<'ctx>,
|
||||||
ctx: &CodeGenContext<'ctx, '_>,
|
ctx: &CodeGenContext<'ctx, '_>,
|
||||||
|
@ -185,7 +185,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn add<G: CodeGenerator + ?Sized>(
|
pub fn add(
|
||||||
&self,
|
&self,
|
||||||
ctx: &CodeGenContext<'ctx, '_>,
|
ctx: &CodeGenContext<'ctx, '_>,
|
||||||
other: Int<'ctx, N>,
|
other: Int<'ctx, N>,
|
||||||
|
@ -196,7 +196,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn sub<G: CodeGenerator + ?Sized>(
|
pub fn sub(
|
||||||
&self,
|
&self,
|
||||||
ctx: &CodeGenContext<'ctx, '_>,
|
ctx: &CodeGenContext<'ctx, '_>,
|
||||||
other: Int<'ctx, N>,
|
other: Int<'ctx, N>,
|
||||||
|
@ -207,7 +207,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn mul<G: CodeGenerator + ?Sized>(
|
pub fn mul(
|
||||||
&self,
|
&self,
|
||||||
ctx: &CodeGenContext<'ctx, '_>,
|
ctx: &CodeGenContext<'ctx, '_>,
|
||||||
other: Int<'ctx, N>,
|
other: Int<'ctx, N>,
|
||||||
|
@ -217,7 +217,7 @@ impl<'ctx, N: IntKind<'ctx>> Int<'ctx, N> {
|
||||||
self.model.believe_value(value)
|
self.model.believe_value(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn compare<G: CodeGenerator + ?Sized>(
|
pub fn compare(
|
||||||
&self,
|
&self,
|
||||||
ctx: &CodeGenContext<'ctx, '_>,
|
ctx: &CodeGenContext<'ctx, '_>,
|
||||||
op: IntPredicate,
|
op: IntPredicate,
|
||||||
|
|
Loading…
Reference in New Issue