diff --git a/crates/concrete_ir/src/lib.rs b/crates/concrete_ir/src/lib.rs index 7be040f..75dc627 100644 --- a/crates/concrete_ir/src/lib.rs +++ b/crates/concrete_ir/src/lib.rs @@ -38,6 +38,7 @@ pub struct ProgramBody { /// This stores all the structs from all modules pub structs: BTreeMap, /// The function signatures. + pub constants: BTreeMap, pub function_signatures: HashMap, Ty)>, /// The file paths (program_id from the DefId) -> path. pub file_paths: HashMap, @@ -270,6 +271,13 @@ pub struct VariantDef { pub ty: Ty, } +#[derive(Debug, Clone)] +pub struct ConstBody { + pub id: DefId, + pub name: String, + pub value: ConstData, +} + // A definition id. #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] pub struct DefId {