@@ -2,7 +2,7 @@ use astoir_hir::nodes::{HIRNode, HIRNodeKind};
22use astoir_mir:: { blocks:: refer:: MIRBlockReference , builder:: { build_static_array_const, build_static_array_one_const} , vals:: base:: BaseMIRValue } ;
33use diagnostics:: { DiagnosticResult , DiagnosticSpanOrigin , move_current_diagnostic_pos, unsure_panic} ;
44
5- use crate :: { MIRLoweringContext , arrays:: lower_hir_aray_index_access, casts:: lower_cast, funcs:: lower_hir_function_call, math:: lower_hir_math_operation, type_tools:: { lower_hir_unwrap_cond, lower_hir_unwrap_value} , values:: { booleans:: { lower_hir_boolean_operator, lowering_hir_boolean_condition} , consts:: lower_hir_literal, structs:: lower_hir_struct_init} , vars:: { lower_hir_variable_reference, lower_hir_variable_reference_value} } ;
5+ use crate :: { MIRLoweringContext , arrays:: lower_hir_aray_index_access, casts:: lower_cast, funcs:: lower_hir_function_call, lru :: lower_hir_lru , math:: lower_hir_math_operation, type_tools:: { lower_hir_unwrap_cond, lower_hir_unwrap_value} , values:: { booleans:: { lower_hir_boolean_operator, lowering_hir_boolean_condition} , consts:: lower_hir_literal, structs:: lower_hir_struct_init} , vars:: { lower_hir_variable_reference, lower_hir_variable_reference_value} } ;
66
77pub mod consts;
88pub mod booleans;
@@ -24,6 +24,7 @@ pub fn lower_hir_value(block: MIRBlockReference, node: Box<HIRNode>, ctx: &mut M
2424 HIRNodeKind :: UnwrapValue { .. } => lower_hir_unwrap_value ( block, node, ctx) ,
2525 HIRNodeKind :: UnwrapCondition { .. } => lower_hir_unwrap_cond ( block, node, ctx) ,
2626 HIRNodeKind :: CastValue { .. } => lower_cast ( block, node, ctx) ,
27+ HIRNodeKind :: StructLRU { .. } => lower_hir_lru ( block, node, ctx) ,
2728 HIRNodeKind :: ArrayVariableInitializerValue { .. } | HIRNodeKind :: ArrayVariableInitializerValueSameValue { .. } => lower_array_init ( block, node, ctx) ,
2829 HIRNodeKind :: FunctionCall { .. } => {
2930 let res = lower_hir_function_call ( block, node, ctx) ?;
0 commit comments