Skip to content

Commit

Permalink
Encode limitations explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
iangneal committed Oct 10, 2023
1 parent 06ed0a0 commit e8ba2ed
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions compiler/src/intermediate_representation/constraint_bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ impl WriteLLVMIR for ConstraintBucket {
match self {
ConstraintBucket::Substitution(i) => {
let size = match i.as_ref() {
Instruction::Value(_) => todo!(),
Instruction::Load(_) => todo!(),
Instruction::Store(b) => b.context.size,
Instruction::Compute(_) => todo!(),
Instruction::Call(b) => {
for arg_ty in &b.argument_types {
if arg_ty.size > 1 {
Expand All @@ -129,15 +126,7 @@ impl WriteLLVMIR for ConstraintBucket {
}
1
},
Instruction::Branch(_) => todo!(),
Instruction::Return(_) => todo!(),
Instruction::Assert(_) => todo!(),
Instruction::Log(_) => todo!(),
Instruction::Loop(_) => todo!(),
Instruction::CreateCmp(_) => todo!(),
Instruction::Constraint(_) => todo!(),
Instruction::Block(_) => todo!(),
Instruction::Nop(_) => todo!(),
_ => unreachable!("Instruction {:#?} should not be used for constraint substitution", i),
};
assert_ne!(0, size, "must have non-zero size");
if size == 1 {
Expand Down

0 comments on commit e8ba2ed

Please sign in to comment.