mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Bump dependencies
This commit is contained in:
@@ -13,7 +13,7 @@ use crate::ir::*;
|
||||
use crate::some_or;
|
||||
|
||||
/// TODO(document)
|
||||
#[derive(Debug, PartialEq, Error)]
|
||||
#[derive(Debug, PartialEq, Eq, Error)]
|
||||
pub enum DtypeError {
|
||||
/// For uncommon error
|
||||
#[error("{message}")]
|
||||
|
||||
@@ -295,7 +295,7 @@ impl Value {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Error)]
|
||||
#[derive(Debug, PartialEq, Eq, Error)]
|
||||
pub enum InterpreterError {
|
||||
#[error("current block is unreachable")]
|
||||
Unreachable,
|
||||
@@ -313,7 +313,7 @@ pub enum InterpreterError {
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Copy)]
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
pub struct Pc {
|
||||
pub bid: BlockId,
|
||||
pub iid: usize,
|
||||
|
||||
@@ -138,7 +138,7 @@ impl HasDtype for Declaration {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct FunctionSignature {
|
||||
pub ret: Dtype,
|
||||
pub params: Vec<Dtype>,
|
||||
@@ -162,7 +162,7 @@ impl HasDtype for FunctionSignature {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct FunctionDefinition {
|
||||
/// Memory allocations for local variables. The allocation is performed at the beginning of a
|
||||
/// function invocation.
|
||||
@@ -184,14 +184,14 @@ impl fmt::Display for BlockId {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct Block {
|
||||
pub phinodes: Vec<Named<Dtype>>,
|
||||
pub instructions: Vec<Named<Instruction>>,
|
||||
pub exit: BlockExit,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum Instruction {
|
||||
Nop,
|
||||
@@ -349,7 +349,7 @@ impl fmt::Display for Instruction {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum BlockExit {
|
||||
Jump {
|
||||
arg: JumpArg,
|
||||
@@ -431,7 +431,7 @@ impl fmt::Display for BlockExit {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct JumpArg {
|
||||
pub bid: BlockId,
|
||||
pub args: Vec<Operand>,
|
||||
|
||||
@@ -7,7 +7,7 @@ use crate::*;
|
||||
#[derive(Default, Debug)]
|
||||
pub struct Irgen {}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub struct IrgenError {}
|
||||
|
||||
impl fmt::Display for IrgenError {
|
||||
|
||||
Reference in New Issue
Block a user