-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
114 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
use crate::backend::*; | ||
use crate::prelude::*; | ||
use inkwell::builder::Builder; | ||
use inkwell::context::Context; | ||
use inkwell::module::Module; | ||
|
||
struct LLVMBackendImpl<'ctx> { | ||
ctx: &'ctx Context, | ||
module: Module<'ctx>, | ||
builder: Builder<'ctx>, | ||
} | ||
|
||
pub struct LLVMBackend {} | ||
|
||
impl CodeGenBackend for LLVMBackend { | ||
type Label = (); | ||
|
||
fn new(mgr: UnitsManager, app: ModuleContext) -> Self { | ||
todo!() | ||
} | ||
|
||
fn gen_function(self, func: usize) -> Result<Box<dyn TargetCode>, CodeGenError> { | ||
todo!() | ||
} | ||
|
||
fn define_label<S: AsRef<str>>(&mut self, label: Option<S>) -> Self::Label { | ||
todo!() | ||
} | ||
|
||
fn gen_variable_load(&mut self, variable: &mut Variable) { | ||
todo!() | ||
} | ||
|
||
fn gen_operator(&mut self, operator: &mut OperatorExpression) { | ||
todo!() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters