Skip to content

Commit

Permalink
refactor: move hir code to separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
junlarsen committed Feb 9, 2025
1 parent cf0d1cb commit 5940a47
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use std::collections::{BTreeMap, HashMap, HashSet};
use std::fmt::{Debug, Display};
use std::hash::{DefaultHasher, Hash, Hasher};

pub mod builder;

#[derive(Debug)]
pub enum HirExpr<'hir> {
IntegerLiteral(HirIntegerLiteralExpr<'hir>),
Expand Down
1 change: 0 additions & 1 deletion compiler/eight-middle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use eight_diagnostics::errors::mir::MirError;
pub mod builtin;
pub mod context;
pub mod hir;
pub mod hir_builder;
pub mod intern;
pub mod mir;
pub mod passes;
Expand Down
2 changes: 1 addition & 1 deletion compiler/eight-middle/src/passes/ast_lowering_pass/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::context::CompileContext;
use crate::hir::builder::HirBuilder;
use crate::hir::{
HirConstructExprArgument, HirExpr, HirExprStmt, HirFunction, HirFunctionParameterSignature,
HirFunctionSignature, HirInstance, HirInstanceSignature, HirLetStmt, HirLocalReferenceSymbol,
Expand All @@ -7,7 +8,6 @@ use crate::hir::{
HirTypeSignature,
};
use crate::hir::{HirReferenceSymbol, HirTy};
use crate::hir_builder::HirBuilder;
use crate::scope::Scope;
use crate::HirResult;
use crate::LinkageType;
Expand Down
2 changes: 1 addition & 1 deletion compiler/eight-middle/src/passes/hir_simplify_pass/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//! Simplification pass for HIR.
use crate::context::CompileContext;
use crate::hir::builder::HirBuilder;
use crate::hir::{
HirAddressOfExpr, HirAssignExpr, HirBlockStmt, HirBooleanLiteralExpr, HirBreakStmt,
HirCallExpr, HirConstantIndexExpr, HirConstructExpr, HirConstructExprArgument, HirContinueStmt,
HirDerefExpr, HirExpr, HirExprStmt, HirFunction, HirGroupExpr, HirIfStmt, HirInstance,
HirIntegerLiteralExpr, HirLetStmt, HirLoopStmt, HirModule, HirOffsetIndexExpr,
HirReferenceExpr, HirReferenceSymbol, HirReturnStmt, HirStmt,
};
use crate::hir_builder::HirBuilder;
use eight_diagnostics::ice;

pub struct HirSimplifyPass<'be> {
Expand Down

0 comments on commit 5940a47

Please sign in to comment.