Skip to content

Commit

Permalink
Add ConstatIndex to PlaceElem
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Apr 24, 2024
1 parent f8377ae commit 18c15b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/concrete_codegen_mlir/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ fn compile_rvalue<'c: 'b, 'b>(
}
PlaceElem::Field(_) => todo!(),
PlaceElem::Index(_) => todo!(),
PlaceElem::ConstantIndex(_) => todo!(),
}
}

Expand Down Expand Up @@ -1012,6 +1013,7 @@ fn compile_store_place<'c: 'b, 'b>(
}
}
PlaceElem::Index(_) => todo!(),
PlaceElem::ConstantIndex(_) => todo!(),
}
}

Expand Down Expand Up @@ -1083,6 +1085,7 @@ fn compile_load_place<'c: 'b, 'b>(
}
}
PlaceElem::Index(_) => todo!(),
PlaceElem::ConstantIndex(_) => todo!(),
}
}

Expand Down
2 changes: 2 additions & 0 deletions crates/concrete_ir/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ pub enum PlaceElem {
Field(FieldIndex),
/// array index
Index(LocalIndex),
/// constant array index
ConstantIndex(u64),
}

/// A local, akin to a variable, it can be user defined or compiler-introduced.
Expand Down

0 comments on commit 18c15b8

Please sign in to comment.