diff --git a/crates/concrete_ir/src/lowering.rs b/crates/concrete_ir/src/lowering.rs index 6cf620e..3528f2a 100644 --- a/crates/concrete_ir/src/lowering.rs +++ b/crates/concrete_ir/src/lowering.rs @@ -3,6 +3,7 @@ use std::collections::HashMap; use common::{BuildCtx, FnBodyBuilder, IdGenerator}; use concrete_ast::{ common::Span, + constants::ConstantDef, expressions::{ ArithOp, BinaryOp, BitwiseOp, CmpOp, Expression, FnCallOp, IfExpr, LogicOp, PathOp, PathSegment, ValueExpr, @@ -75,7 +76,9 @@ fn lower_module(mut ctx: BuildCtx, module: &Module, id: DefId) -> Result todo!(), + ModuleDefItem::Constant(info) => { + ctx = lower_constant(ctx, info, id)?; + } ModuleDefItem::Struct(info) => { ctx = lower_struct(ctx, info, id)?; } @@ -179,6 +182,14 @@ fn lower_module(mut ctx: BuildCtx, module: &Module, id: DefId) -> Result Result { + todo!() +} + fn lower_struct( mut ctx: BuildCtx, info: &StructDecl,