mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-09 09:38:24 +00:00
ok
This commit is contained in:
parent
bf13468214
commit
19c52009ab
|
@ -1,13 +1,13 @@
|
||||||
use std::{cell::Cell, collections::HashMap, error::Error};
|
use std::{collections::HashMap, error::Error};
|
||||||
|
|
||||||
use bumpalo::Bump;
|
use bumpalo::Bump;
|
||||||
use edlang_ast::{
|
use edlang_ast::{
|
||||||
ArithOp, AssignStmt, BinaryOp, Constant, Expression, Function, LetStmt, Module,
|
ArithOp, AssignStmt, BinaryOp, Constant, Expression, Function, LetStmt, Module,
|
||||||
ModuleStatement, ReturnStmt, Span, Statement, Struct, ValueExpr,
|
ModuleStatement, ReturnStmt, Statement, Struct, ValueExpr,
|
||||||
};
|
};
|
||||||
use edlang_session::Session;
|
use edlang_session::Session;
|
||||||
use melior::{
|
use melior::{
|
||||||
dialect::{arith, cf, func, memref},
|
dialect::{arith, func, memref},
|
||||||
ir::{
|
ir::{
|
||||||
attribute::{FlatSymbolRefAttribute, IntegerAttribute, StringAttribute, TypeAttribute},
|
attribute::{FlatSymbolRefAttribute, IntegerAttribute, StringAttribute, TypeAttribute},
|
||||||
r#type::{FunctionType, IntegerType, MemRefType},
|
r#type::{FunctionType, IntegerType, MemRefType},
|
||||||
|
@ -16,8 +16,6 @@ use melior::{
|
||||||
},
|
},
|
||||||
Context as MeliorContext,
|
Context as MeliorContext,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::context::Context;
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct LocalVar<'ctx, 'parent: 'ctx> {
|
pub struct LocalVar<'ctx, 'parent: 'ctx> {
|
||||||
pub ast_type: edlang_ast::Type,
|
pub ast_type: edlang_ast::Type,
|
||||||
|
|
Loading…
Reference in a new issue